This file contains 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
rsync -avz ubuntu@beta.xyz.com:/var/www/project_name/public/gst_information.csv . |
This file contains 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://www.liquidweb.com/kb/how-to-install-docker-on-ubuntu-14-04-lts/ | |
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-16-04 |
This file contains 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
to export dump(means create a .sql file to use) -> mysqldump -u root -p database_name > ~/Desktop/db.sql | |
to import dump(means use the given dump in database) -> mysql -u root -p database_name < ~/Desktop/db.sql | |
dump only 10 rows of every table in database - > mysqldump -u root -p --opt --where="1 limit 10" database_name > /home/dell/Desktop/ff.sql | |
This file contains 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
Reason- because of giving git permission to -> chmod 777 | |
git config core.autocrlf true | |
git config core.filemode false | |
https://github.com/Microsoft/WSL/issues/184 |
This file contains 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 update-index --assume-unchanged [path] |
This file contains 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://askubuntu.com/questions/153852/can-not-boot-initramfs-error | |
https://askubuntu.com/questions/781315/ubuntu16-04-boots-into-initramfs |
This file contains 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
erb -x -T '-' app/views/disease/show.erb | ruby -c |
This file contains 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
Upload file to remote server using SCP | |
scp /home/svnlabs.txt root@92.178.0.56:/home/ |
This file contains 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
Want to backup your MySQL database ? | |
MySQL provides a tool for dumping your database. | |
Use this command in your Rails Application. | |
mysqldump -uroot -p DB-NAME > backup.sql | |
DB-NAME is the name of your database. | |
This dumps your sql data into backup.sql file. |
This file contains 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 this | |
"sudo -u postgres psql" | |
in your terminal to get into postgres | |
postgres=# | |
Run "CREATE USER new_username;" | |
Note: Replace new_username with the user you want to create, |
NewerOlder