I use simple script for screenshots (bind on PrtSrc key). It saves picture of current screens in home directory. Usualy I want open the picture immediately. I created simple script that opens the youngest .jpg file in current directory (named gimp-last).Continue reading
In Android development I occasionally need test some separated functionality. Building the whole project takes time and may causes side-effects. That’s why I use command line compiler.Continue reading
By default in i3 there is a key shortcut MOD + SHIFT + e to open bar on top of your screen. If you click on Yes button, i3 terminates. But you have to use a mouse what is not comfortable. I rewrite the shortcut to use dmenu instead of the i3-nagbar.Continue reading
In Bash there are two well-known constructs named here-document and here-string. here-document is
wc << EOF > one two three > four five > EOF 2 5 24
and here-string is
bc <<< 5*4
Last upgrade of Google Chrome brings new feature – Tab Hover Crads. If you want disable it, go to chrome://flags/, search Tab Hover Cards and set to Disabled.
# Opens files in tabs vim -p file1 file2 # Open all searched files # :args to show file list # :n to open next file # :N to open prev file vim `find . -name "strings.xml"` # Re-sync syntax highlighting :syntax sync fromstart
$ ssh-keygen Enter file in which to save the key (/home/petr/.ssh/id_rsa): /home/petr/my.key Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/petr/my.key. Your public key has been saved in /home/petr/my.key.pub. The key fingerprint is: SHA256:t7oRcfThgNf5w8kXl+pg6Xgso/BJtBDt4T42vFUpZ7U petr@pc The key's randomart image is: +---[RSA 2048]----+ | . .o... .| | . o...+oo o.| | + o.. *+o.o| | . + + O E* .| | = S @ o o | | . O B = . | | = O = | | = o | | o. | +----[SHA256]-----+
To use this key you have 2 choices: run command
ssh -i ~/my.key posvic.eu
or edit SSH config file and specify IndetityFile for host. Then is no need to use parameter -i.
# ~/.ssh/config Host posvic.eu IdentityFile ~/my.key
I have notebook with Windows 10. I use it sometime and login via fingerprint. Today I realized I don’t know my password! Here are simple steps to change it without old password.Continue reading