This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # set custom keymap | |
| setxkbmap cz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # rename origin | |
| git remote rename origin old-origin | |
| # add new origin | |
| git remote add origin git@xxxxxxxxxxxx.git | |
| # push | |
| git push -u origin --all | |
| git push -u origin --tags | |
| ####### nebo ####### | |
| git remote set-url origin git@xxxxxxxxxxxx.git #git://new.url.here |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pkill -f my_pattern | |
| #nebo | |
| ps -ef | grep 'my_pattern' | grep -v grep | awk '{print $2}' | xargs -r kill -9 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # su - postgres | |
| $ psql | |
| # \conninfo | |
| # \list #seznam databází | |
| # \c dtb_name #připojení k databázi | |
| # \dt #seznam tabulek | |
| # \d+ #seznam tabulek s velikostí | |
| # select * from table_name; | |
| #SQL dotaz (zakončený středníkem!) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| df -hT # vybrat zařízení | |
| sudo dd if=/home/bob/Downloads/Linux_Mint_19_XFCE.iso of=/dev/sd<?> bs=1M status=progress |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pandoc README.md | lynx -stdin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| !conda install --yes --prefix {sys.prefix} <moduleName> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sed -i 's/original/new/g' file.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git clone git@gitlab.vsb.cz:sam029/p000-sam029-test.git temp | |
| mv temp/.git test/.git | |
| rm -rf temp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| inxi -Fxz |