A few years ago I kicked around the idea of a Steamboat Springs Linux Users Group. The domain I purchased for this project has sat quite dormant until just recently, some other Linux users in the Steamboat area have shown some interest. So, here it is.. finally.. The Steamboat Springs Linux Users Group. If you a Steamboat Springs local and a Linux geek also. please visit and create your login.
Posted in day to day, geek speak | No Comments »
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
Posted in geek speak, golf | No Comments »
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.
Posted in geek speak | 1 Comment »
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!
Posted in geek speak, golf, instal notes | 1 Comment »