Check These Out
This shell function grabs the weather forecast for the next 24 to 48 hours from weatherunderground.com. Replace <YOURZIPORLOCATION> with your zip code or your "city, state" or "city, country", then calling the function without any arguments returns the weather for that location. Calling the function with a zip code or place name as an argument returns the weather for that location instead of your default.
To add a bit of color formatting to the output, use the following instead:
$weather(){ curl -s "http://api.wunderground.com/auto/wui/geo/ForecastXML/index.xml?query=${@:-}"|perl -ne '/([^
This let's you find out the total packages that have available upgrades. Usefull if you want to check or show the total available upgrades on your system.
That is useful to discover the start time of process older than 1 day.
You can also run:
$ ls -ld /proc/PID
That's returning the creation date of the proc files from the process. Some users reported that this way might show you a wrong date since any other process like cron, for example, could change this date.
Create a exact mirror of the local folder "/root/files", on remote server 'remote_server' using SSH command (listening on port 22)
(all files & folders on destination server/folder will be deleted)
generating self signed ssl certificate to use in dovecot postfix nginx
Self signed certificates can be used for private encryptions between server and client and must be manually accepted on browser/ client
It doesn't save your notes, but it's great for jotting something down quickly.
G - uses VT100 line drawing
a - shows command line arguments of process
p - prints PID of process
For other options, man pstree :)
This command will tell lynx to read keystrokes from the specified file - which can be used in a cronjob to auto-login on websites that give you points for logging in once a day *cough cough* (which is why I used -accept_all_cookies).
For creating your keystroke file, use:
$ lynx -cmd_log yourfile