Check These Out
Takes an mpeg video and coverts it to a youtube compatible flv file.
The -r 25 sets the frame rate for PAL, for NTSC use 29.97
Same as other command, however uses youtube-dl internal search (thanks to qoxxxx mentioning this)
It does however seem to be a little buggy and youtube-dl crashes sometimes.
##
pyt 'Stairway to heaven - Led Zeppelin'
pyt 'brain damage - Pink Floyd'
No web browser or even X needed. Just a cli and internet connection!
mplayer is pauseable and can skip ahead
This may break if youtube changes their search html.
extracts the debian-package $debfile to $extractdir, including all packaging-information. to repack the package, just type:
$dpkg-deb -b $extractdir
ry4an@four:~$ echo $SHLVL
1
ry4an@four:~$ ${0/-/}
ry4an@four:~$ echo $SHLVL
2
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"
}
This command allows you to see a preview of a picture via the terminal. It can be usefull when you are ssh'ing your server without X-forwarding.
To have en example of the output you can get with this command see http://www.vimeo.com/3721117
Download at http://inouire.net/image-couleur.html
Sources here: http://inouire.net/archives/image-couleur_source.tar.gz
If you're like some individuals who rely on ndiswrapper and cannot use kismet, this command may be of service.
watch -n .5 "iwlist wlan0 scan | egrep 'ESSID|Encryption'"
Or...
watch -n .5 "iwlist wlan0 scan | egrep 'ESSID|Encryption' | egrep 'linksys'"
:-) Hopefully you'll find some dd-wrt compatible routers.
Convert a camelCase string into snake_case.
To complement senorpedro's command.
This command puts all the flags of the USE variable actually used by the packages you emerged to the file "use", and those which are unused but available to the file "notuse"