Last active
August 29, 2015 14:10
-
-
Save liveashish/e7381c07f146d61e0875 to your computer and use it in GitHub Desktop.
Collection of random imporant snippets
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
1. | |
****truncate foreign key constrained table**** | |
SET FOREIGN_KEY_CHECKS = 0; | |
TRUNCATE table1; | |
SET FOREIGN_KEY_CHECKS = 1; | |
2. | |
**** Create SSH Key **** | |
ssh-keygen -t rsa -C "[email protected]" | |
3. | |
**** Copy a file to subdirectories *** | |
for d in */; do cp water.txt "$d"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment