Archive > November 2007

Bash scripting

Before I forget it again, a quick and dirty way to have a shell script do some stuff parallel (forking off and having the parent wait till they are all done)
forked=”/var/tmp/f${RANDOM}.tmp”
touch $forked
chmod 600 $forked
cat /dev/null > $forked
for a in `whatever`
do
something with $a &
echo $! >> $forked
done
len=`wc -l $forked|awk ‘{print $1}’`
checkpid=0
while [[ $len -gt 0 ]]
do
lastpid=$checkpid
checkpid=`head [...]

Continue reading

PSP Radio

Yeah, having a bit of fun with the program PSP Radio. For those who don’t know the program, its a homebrew application for the PSP that allows you to listen to radio streams from the Internet (surf over to shoutcast.com for a nice listing of many stations).
So anyway, while I was in the kitchen today [...]

Continue reading

Synchronizing files over the internet

I have some files I like to keep current between my 2 computers. The problem is that those 2 computers are about 30km apart from each other. Simply copying the files to a USB Stick manually was out of the question since the files in question are configuration/plugins/… from an application and a) I have [...]

Continue reading

Chocolate Chip Cookies

I found a new recipe for chocolate chip cookies and mixed in some of the ideas into the recipe I normally use, turned out pretty good.
They were a little dry so next time I’ll substitute the majority of the butter with sour creme and see if it turns out ok.

But they look good

Continue reading

VIM Settings

Here are my vim settings, makes working with vim a whole lot easier. Vim doesn’t have to be a pain in the butt, it’s just configured to be that way by default due to backwards compatibility to vi.
/etc/vim/vimrc.local or /etc/vim/vimrc.local
syntax on
filetype plugin on
set showcmd
set showmatch
set autowrite
set mouse=a
set pastetoggle=<F12>
map <F9> :source /etc/vim/vimrc.numbertoggle^M

/etc/vim/vimrc.numbretoggle
” number-toggle script
” [...]

Continue reading