wma2mp3 with mplayer and lame

| April 16th, 2008

So we all have friends that have tried sharing wma files with us. here is a script to change them into mp3s!

#!/bin/bash
# wma2mp3
for i in *.wma
do
if [ -f "$i" ]; then
rm -f “$i.wav”
mkfifo “$i.wav”
mplayer -quiet -vo null -vc dummy -af volume=0,resample=44100:0:1 -ao pcm:waveheader:file=”$i.wav” “$i” &
dest=`echo “$i”|sed -e ’s/wma$/mp3/’`
lame -V0 -h -b 160 –vbr-new “$i.wav” “$dest”
rm -f “$i.wav”
fi
done

This is a stupidly simple script for sending microblogs to twitter.com using curl and spell checking them with aspell along the way. it looks like this:


#!/bin/bash
# tweet - A command line twitter with spellcheck - me@phrog.org
echo $@ > /tmp/tweet
aspell -c /tmp/tweet
TWIT=$(cat /tmp/tweet)
curl -u USERNAME:PASSWD -d status="$TWIT" http://twitter.com/statuses/update.xml
rm /tmp/tweet
exit 0

Save the code as “tweet” and use it like this:

you@yourprompt:~$ tweet testing my tweet script

It should spit out some success xml. You just sent a tweet to twitter.

Of course you will need to edit the USERNAME and PASSWD to your username and password at twitter.com. If you don’t like copy and paste you can grab it as a file here. Hope you find it useful.

irc with irssi and a blowjob

| February 1st, 2008

Some install notes, thats all :)

If you don’t know what irc is or irssi or blowjob.pl do not waste your time trying to understand this. Move along.. Don’t Waste your time.

apt-get install irssi irssi-scripts

Try to load blowjob in irssi

/load blowjob.pl

poop, im missing something.


11:06 ,--[ScriptAssist]
11:06 | The perl module Crypt::CBC is missing on your system.
11:06 | Please ask your administrator about it.
11:06 | You can also check CPAN via ‘/scriptassist cpan Crypt::CBC’.
11:06 `–->

Guessing I need libcrypt-cbc-perl and im thinking, libcrypt-blowfish-perl

apt-get install libcrypt-cbc-perl libcrypt-blowfish-perl

Next load blowfish in irssi

/load blowjob.pl

Loaded :)

Set a test key with someone your irc’ing with, and blow something.

/setkey foobar
/blow yo testing
“Ciphertext does not begin with a valid header for ’salt’

Shit still not working! Seems the script is old. It needed to be updated for the newer Crypt:CBC. I changed a couple lines and came up with this fixed blowjob.pl

Working now!

Someone asked me this morning about browsing the web and masking the IP of the origin. The most effective way to do this is with tor and privoxy. These are my notes on setting this up with a debian or ubuntu linux desktop.
more »

Ampache install notes

| October 14th, 2007

Today i’m installing ampache with a nerd in training on his ubuntu laptop heres the notes

install required stuff
sudo apt-get install apache2 php5 phpmyadmin mysql-server
Go to http://localhost to see if “It Works!” if so then apache2 is running.
Then try http://localhost/phpmyadmin if it loads then ya have php5 working with apache2! requirements done. Let’s move on

more »

Dell is pushing LinuxWhat are all you Windows computer guys going to do when everyone figures out windows sucks and you have been screwing them for years? Check out this screen shot.

Nymserv install notes

| May 12th, 2007

If you know what a nymserver is then you may also know there is little or no documentation on getting one installed. Its a bitch. These are my notes from the install. They are quite brief but I figured they may be helpful if your working with nymserver.pl and are stuck on something, so I’m sharing.

more »

If your on an etree.org mailing list then you know the server has been borked for a while. Well I upgraded the server to a 1Ghz machine yesterday. you can keep an eye on it here.

The tech commission is ready to spend some money. They have lots of it burning holes in pockets, Wait an idea! Let’s buy some really expensive software that will need constant spending to keep updated. Then we can spend all that tax money and everyone will feel great!

This could really happen.
Read this article from the pilot

So I have an Openwrt install and wanted to use ez-ipupdate to update my DynDNS account however it would only send the IP of the wlan0 and since I’m behind a router already the IP on wlan0 is for my LAN. So I made a quick hack to get the internet IP I wanted to DynDNS. Here it is. more »

  • --------------------------

  • What I'm Doing...

    Posting tweet...

  • Stuff

  • Recent Comments

  • Iraq War Cost

    ###
  • Topics

  • Archives

  • Feeds


  • Peace Through Wiff
    please visit our sponsors