Simplify extracting files in the commandline with this alias for your .bashrc file.
Aug 23rd
This is a straight forward example of using bash script’s to make everyday use so much easier.
Open your .bashrc file in your favorite editor and add this below the alias section.
-
extract () {
-
if [ -f $1 ] ; then
-
case $1 in
-
*.tar.bz2) tar xvjf $1 ;;
-
*.tar.gz) tar xvzf $1 ;;
-
*.bz2) bunzip2 $1 ;;
-
*.rar) rar x $1 ;;
-
*.gz) gunzip $1 ;;
-
*.tar) tar xvf $1 ;;
-
*.tbz2) tar xvjf $1 ;;
-
*.zip) unzip $1 ;;
-
*.Z) uncompress $1 ;;
-
*.7z) 7z x $1 ;;
-
*) echo "don't know how to extract '%1'…"
-
esac
-
else
-
echo "'$1' is not a valid file!"
-
fi
-
}
Now when you want to extract an archive in the terminal, just type in “extract filename” obviously replacing filename with your actual filename.extention and hit enter
Isn’t linux beautiful!?!
Record your soundcard using sox and this script :)
Aug 23rd
First we install sox.
-
sudo apt-get install sox
Next we build the recording script. I can’t remember where I got this from but it’s a great script!
In your home directory create a new blank file and open it with gedit or the likes.
-
#!/bin/bash
-
-
TIME=$(date +%d-%b-%y_%H%M-%Z)
-
-
# Get sink monitor:
-
MONITOR=$(pactl list | grep -A2 '^Source #' | \
-
grep 'Name: .*\.monitor$' | awk '{print $NF}' | tail -n1)
-
-
# Record it raw, and convert to a wav
-
echo "Recording. Ctrl-C or close window to stop"
-
parec -d "$MONITOR" | sox -t raw -r 44100 -sLb 16 -c 2 – ~/Music/Recordings/Taped_Recording_$TIME.wav
Of course you can set your own recording directory if you like.
Save and name the file.
Right click on it and choose “properties” then go to the permissions tab and check the box that says “Allow executing file as program” and let’s add a section in our .bashrc file.
Open .bashrc with gedit (or the likes) and add the following to your alias section:
-
alias tape="~/Documents/tape-recorder.sh"
Now when you have something playing through your soundcard that you’ld like to record, just open a terminal window and type in “tape” and it will begin recording!
Ninite make’s re-installing a plethora of apps a breeze!
Aug 22nd
(windows only)
Have you recently re-installed windows yet again, just to have to individually install all those apps you need and use every day all over again?
You need to go and check out ninite.com your one stop shop for most of the apps and codecs you’ll be needing with only one installer needed, as it’s automated the install for quite a few of your favorite apps.
Just visit the website, check in the boxes for the apps you want to download and install, and click the go button on the bottom of the page to get your own customized installer.
It will automatically install (without common annoying things like toolbars) the proper app for your system (32 or 64 bit) and in no time your system is back where you wanted it to be!
Awesome!
Matt saw his site
Aug 7th

So I went to darkness’s bon fire and raver was there.
Here’s his reaction.
Playstation 3 get’s Hulu!
Jul 27th
So from what I remember for a long time hulu didn’t want exactly this, hulu content played back on our TV’s. Well they must have finally seen the light, with a growing market for paid for options such as playon or TVersity and of course the awesome and free Boxee it’s time they turned to the dark side and realized that the newer generations are more into the pleasures of on-demand viewing, watching the content you want to watch, when you want to watch it!
It’s high time the networks realized this as well with item’s such as Tivo (and I’ve loved mine!) having been and succeeding in the market for years, that on demand viewing is what the customer wants, and almost every cable provider now offers there own DVR’s as well. Why not just have it streaming and instantly available without having to remember to record it?
Well the folks at Hulu have finally done just that, and are releasing (under special circumstances which I’ll get into in a bit) The “Hulu Plus (Preview)” it’s free (for a limited time I’m guessing) and you have to be both a hulu Plus Subscriber, as well as a Playstation Plus member (both of those are also pay for services) so all in all it’s not “Free” but eh, at least the app is looking like it’s going to see the light of day.
This is exciting! – Stay tuned! (I’m on the list for an invite to Hulu Plus, but if you have an invitation referral code, please feel free to contact me!)




