Check These Out
It looks for files that contains the given word as parameter.
* case insensitive
* matches files containing the given word.
Edit the pdf file foo.pdf's metadata.
-overwrite_original overwrites the original file (w/o it exiftool creates a new file)
You can use any dictionary you want, in any language.
This command will output all single-word annotations that you have underlined in your Kindle device (provided the file) given a list of language-specific words.
If you want to learn vocabulary, this command is ideal.
Draw a telephone keyboard, using just a shell built-in command.
look at /boot/grub/menu.lst for somethig like:
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
## defoptions=vga=795
# defoptions=vga=873
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(verbose mode) vga=775 debug
# altoptions=(console mode) vga=ask
# altoptions=(graphic mode) quiet splash
# altoptions=(recovery mode) single
vga=(decimal value) is framebuffer mode
At client side:
tar c myfile | nc localhost 7000 ##Send file myfile to server
tar c mydir | nc localhost 7000 ## Send directory mydir to server
You can install filterous with
$ sudo apt-get install libxslt1-dev; sudo easy_install -U filterous
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.)
Converts any number of seconds into days, hours, minutes and seconds.
sec2dhms() {
declare -i SS="$1"
D=$(( SS / 86400 ))
H=$(( SS % 86400 / 3600 ))
M=$(( SS % 3600 / 60 ))
S=$(( SS % 60 ))
[ "$D" -gt 0 ] && echo -n "${D}:"
[ "$H" -gt 0 ] && printf "%02g:" "$H"
printf "%02g:%02g\n" "$M" "$S"
}