shell

Recoding files to Ogg Vorbis using gst-launch in a shell script

Here is a stupid, small but working recode script. It recodes flac, mpc, mp3 and m4a to Ogg Vorbis using gstreamer, after recoding the files are placed in the 'old' directory. Really simple, but if you have a large collection of mp3 files you want to recode into low quality Ogg Vorbis files, here is one way to do it.

Downloading MMS streams (like the ones on uitzendinggemist.nl)

In the old days, Linux fans where not able to see the M$ video streams, and although it is still a problematic format downloading it has become easier.

What you need is: gstreamer, totem-gstreamer and all the good, bad and ugly plugins for gstreamer (not sure which the mmssrc plugin is part of)

Deleting files to the trash in the shell

Somebody on Ubuntu brainstorm wanted to have rm throw files into the trash. This is not really a good idea, because it will probably end up confusing you when you start using SSH to other machines or try the same thing at your neighbors new Ubuntu installation.

The solution is the following:
1) Open a terminal
2) Run the command:

echo alias del=gvfs-trash >> ~/.bashrc

Remove 30 day old files from you GNOME trash


Currently this is outdated and will not work! See http://log.logfish.net/node/43

Removing 30 day old files from you gnome trash can be done with the following magic line:

find ~/.local/share/Trash/files/ -type f -mtime +30 -printf '%P\000'  |xargs -n1 -I {} -0 gvfs-rm trash:///_{}

Now, what if you want to do this every day? Simple: add a crontab entry to do it all: run crontab -e and insert the following:

Download more of The Daily Show then you can look at

The Daily Show can be viewed online. Most pieces of the program are online, and appart from having more ad space, I can't see why they split up the episodes.
However, if you don't want to keep clicking, you can just download most of the early daily shows...

Show the places you logged in from

I only use a few locations to log into the shell accounts I have, so looking at whether an unfamiliar host has used logged in can help heighten security. Only the time of the last login can help me detect whether somebody has been using one of the machines I've been using to access my account without my knowledge, so it's a good idea to also show the last login with the date and time.

Syndicate content