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
| #disable | |
| SET FOREIGN_KEY_CHECKS=0; | |
| #reenable | |
| SET FOREIGN_KEY_CHECKS=1; |
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
| # run | |
| git config credential.helper store | |
| #then | |
| git pull | |
| # user credentials will be saved in ~/.git-credentials in PLAIN text | |
| # if user credentials are changed in the future, simply execute | |
| git pull | |
| # and provide a new password and it will work like before. |
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
| #see link: http://linuxcommand.org/lc3_wss0120.php | |
| # Positional args | |
| # $#: number of items on the command line in addition to the name of the command | |
| # $0: name of the command | |
| > some_program word1 word2 word3 | |
| # $# would be 3 | |
| # $0 would contain "some_program" |
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
| ssh -i ~/.ssh/[KEY_NAME].pem [REMOTE_USER]@[SERVER_IP_or_DNS] |
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
| sudo lshw | grep product |
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
| https://vsupalov.com/docker-arg-env-variable-guide/ |
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
| sudo lsof -i :8080 |
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
| ls -il [FILE_PATH] | |
| sudo find [PARENT_DIRETORY] -inum [FILE_INUM] -exec rm -i {} \; | |
| exemple: | |
| >ls -il test.txt | |
| 1135865 -rw-r--r-- 1 user user 4525 Nov 15 2017 test.csv | |
| >sudo find /home/user/folder -inum 1135865 -exec rm -i {} \; |
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
| ncdu |
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 for-each-ref --format='%(color:cyan)%(authordate)) %(color:yellow)%(authorname) %(color:reset)%(refname)' --sort=authorname refs/remotes |