A reminder for myself how to batch rename files with spaces in bash.

This is how i rename files with space to have underscores instead. DO NOT blame me if this commando erases all your files :) I found several examples how to do this when googling but they all failed. Some of them did nothing and some erased half my filenames. SO IF YOU USE THIS, PLEASE TRY IT IN A FOLDER WITHOUT IMPORTANT FILES FIRST.

for f in *' '*; do mv "$f" "`echo $f | sed -e 's/ /_/g'`"; done


Posted in Linux, Note to self, Operatingsystem at October 20th, 2010. No Comments
Tagged with , , . Written by:

A couple of days ago my Terminal.app (console) got a really annoying feature. When launching the console or when I created a new tab it got stuck for about 5-10 seconds before I got my prompt.

If you are like me and are spending most of your time in Terminal.app you understand how annoying this is/was.

I tried to rename .profile, .inputrc and evey other startup script I had in my home folder but the problem did not go away.

Then I found an OSX user which had his Terminal crash when started. He solved his problem by cleaning up some OSX systemlogs. So I thought I try the same trick.

The logfiles which he removed where the asl files under /private/var/log/asl/

I read about them here: http://macosx.com/tech-support/can-i-deleteasl-log/24223.html

But I figured I’d just remove them all :)

sudo rm -rf /private/var/log/asl/*

When all asl files where removed my Terminal went back to normal again and I am sooooooo relieved.

This worked for me BUT I do not recommend you to remove anything if you do not know what you are doing!!!


Posted in Operatingsystem, Utilities at September 11th, 2009. 6 Comments
Tagged with , , , , . Written by:

I generate a loooot of passwords. I try out a lot of webservices and all those needs passwords. I control about 70-100 servers and all those have different services and accounts. So I generate a lot of passwords… and this post is about how I do it do make it as easy as possible.
Read More…

Posted in Mouseless, Operatingsystem at January 13th, 2009. 2 Comments
Tagged with , , . Written by:

We recently got in trouble with two Gentoo machines that where running under VMware ESX & ESXi.

The hosts froze randomly (Even the console in vmware froze). Especially when putting a little load on the machines. After hours of testing we found that removing virtual CPU’s from the host solved the problem. More that one CPU got the machine to freeze after some time.

!! Unsatisfied solution !! So after a couple of more hours we found a working solution….

Read More…

Posted in Hosting, Operatingsystem at November 5th, 2008. 2 Comments
Tagged with , , , , . Written by:

I’ve just released v0.5 of keyFinder. keyFinder is the simpliest frontend for OSX’s keychain that you can think of. Its basicly a little window that filters your passwords (live) as you type your keywords. Select the one you want and hit enter. The password then gets copied to your clipboard. 

More information can be found on the keyFinder page under my projects.


Posted in Projects, Utilities at August 3rd, 2008. No Comments
Tagged with , , , , , , . Written by:

FreeBSD come with a firewall software called IPFILTER (IPF).

I dare to say that almost any sysadmin have locked himself out when playing with firewall rules… .

This is a simple tip on how to prevent that from happening when working with IPF.

Read More…

Posted in Operatingsystem at March 28th, 2008. No Comments
Tagged with , . Written by:

It's past my bedtime is using WP-Gravatar