Check These Out
swap out "80" for your port of interest. Can use port number or named ports e.g. "http"
Great for finding which jar some pesky class is hiding in!
A null operation with the name 'comment', allowing comments to be written to HISTFILE. Prepending '#' to a command will *not* write the command to the history file, although it will be available for the current session, thus '#' is not useful for keeping track of comments past the current session.
Replace the with your URL, for example http://rublacklist.net/12348/ and it will show likes number
This is useful for example if you are on ssh in a server and the server goes down without letting you out.
This is part of a larget sets of escape sequences provided by ssh. You can find them with ~? Here's the list:
~. - terminate connection (and any multiplexed sessions)
~B - send a BREAK to the remote system
~C - open a command line
~R - request rekey
~V/v - decrease/increase verbosity (LogLevel)
~^Z - suspend ssh
~# - list forwarded connections
~& - background ssh (when waiting for connections to terminate)
~? - this message
~~ - send the escape character by typing it twice
(Note that escapes are only recognized immediately after newline.)
If you wish to launch the kde4 screen saver without the password prompt to exit, use this command:
$ qdbus org.freedesktop.ScreenSaver /ScreenSaver org.freedesktop.ScreenSaver.SetActive True
Also can be done with:
$ /usr/lib/kde4/libexec/kscreenlocker --forcelock
enable each bash completion that you have installed at your system, that's very nice ;)
Useful if you want get all the md5sum of files but you want exclude some directories. If your list of files is short you can make in one command as follow:
$ find . -type d \( -name DIR1 -o -name DIR2 \) -prune -o -type f -exec md5sum {} \;
Alternatively you can specify a different command to be executed on the resulting files.
Sometimes I just want to run a command quietly but all that keyboard shifting makes my fingers hurt. This little function does the job eg.:
$ if shh type less; then PAGER=less; fi
swap out "80" for your port of interest. Can use port number or named ports e.g. "http"