https://www.rackaid.com/blog/linux-screen-tutorial-and-how-to/
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
find path/to/folder -name "somenameorpattern*" -mtime +numberofdays -print (if you want to see it) -exec rm {} \; | |
Do ls first before rm just to make sure you don't delete the universe. | |
find ./ -name "*" -mtime +300 -print -exec rm {} \; |
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
To list the top 10 largest files from the current directory: du . | sort -nr | head -n10 | |
To list the largest directories from the current directory: du -s * | sort -nr | head -n10 | |
To list the largest directories from the current directory in human readable format: | |
du -sh * | sort -hr | head -n10 | |
Credit: http://unix.stackexchange.com/questions/37221/finding-files-that-use-the-most-disk-space | |
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 apt-get install libssl-dev | |
sudo apt-get install python-dev | |
sudo pip install pycrypto --upgrade | |
sudo pip install paramiko --upgrade |
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
/** | |
* HTTP Server Settings | |
* (sails.config.http) | |
* | |
* Configuration for the underlying HTTP server in Sails. | |
* Only applies to HTTP requests (not WebSockets) | |
* | |
* For more information on configuration, check out: | |
* http://sailsjs.org/#!/documentation/reference/sails.config/sails.config.http.html | |
*/ |