Uniform Resource Locator
write the output of a command to /var/log/user.log… each line will contain $USER, making this easy to grep for.
2010/12/28
write the output of a command to /var/log/user.log… each line will contain $USER, making this easy to grep for. […] <td> <div class="text codecolorer"> log() { …
Empty a file
2010/12/26
<dd class="wp-caption-dd zemanta-img-attribution" style="font-size: 0.8em;"> Image via <a …
Take a screenshot of the window the user clicks on and name the file the same as the window title
2010/12/19
Take a screenshot of the window the user clicks on and name the file the same as the window title […] <td> <div class="text codecolorer"> sleep 4; xwd …
Free Home made calendar for December 2010.
2010/11/29
Hope you will like this 🙂
Make any command read line enabled (on *nix)
2010/11/25
Make any command read line enabled (on *nix) […] <td> <div class="text codecolorer"> rlwrap sqlite3 database.db </div> </td> </tr> Enable readline even …
intercept stdout/stderr of another process or disowned process
2010/11/23
The command is definately going to save your day if you have disowned the process by mistake. Only uses strace so might as well work on Solaris also, though not tried it. intercept stdout/stderr of …
Broadcast your shell thru port 5000
2010/11/20
Broadcast your shell thru port 5000 […] <td> <div class="text codecolorer"> mkfifo /tmp/fifo;(nc -q0 -l 5000 < /tmp/fifo &);script -f /tmp/fifo </div> …
Screen enable/disable logging in all windows
2010/11/19
If you use screen command a lot then this is something that you will like 🙂 Screen enable/disable loggin in all windows […] <td> <div class="text codecolorer"> bindkey ^l …
function for copy files with progress bar (using pv – pipe viewer)
2010/11/11
function for copy files with progress bar (using pv – pipe viewer) […] <td> <div class="text codecolorer"> cp_p() { if [ `echo "$2" | grep …
Print all environment variables, including hidden ones
2010/11/09
Print all environment variables, including hidden ones […] <td> <div class="text codecolorer"> for _a in {A..Z} {a..z};do _z=${!${_a}*};for _i in `eval echo …
cURL – Tutorial
2010/09/15
Here are linkw to two nice tutorials on curl and how to use curl to login before we try to fetch a page. Hope you find them useful. http://curl.haxx.se/docs/httpscripting.html …
15 (More) Awesome Conky Configurations
2010/09/13
15 (More) Awesome <a class="zem_slink" title="Conky (software)" rel="homepage" href="http://conky.sourceforge.net/">Conky Configurations You may have …