Author name: stubbi

find | xargs

Today cron doesn’t want to regexp my “cp [a-Z]* …”. Even if i set SHELL=/bin/bash in the crontab it got the error “cp: cannont stat [a-Z]*: No such file or directory”. Manually on the shell there is no problem with regexp (it’s locales fault; cron uses the POSIX locale and here I should use [a-zA-Z] […]

find | xargs Read More »

udev rules

Looks like Linux 3.8 has a stupid bug. The e1000e driver for Intel NICs does not work correctly (ref. here). In short: The powersaving prevents the NIC from comming up correctly. So I wrote a udev rule to always power on my NIC. In fact there are only a little chances I won’t need it:

udev rules Read More »

Brightness Control with Nvidia

My hopefully last challenge was to get the brightness control working with the hardware buttons and even with software. The proprietary Nvidia driver needs an additional config entry. Add under “Device section”: Option “RegistryDwords” “EnableBrightnessControl=1” Now you should control your brightness via software and via hardware on most Laptops

Brightness Control with Nvidia Read More »

Cleanup…

Cleaned up the download section. I removed old versions of DarX. The download statistics told me that only the most resent version is downloaded. So there should be no need of older version. Even if you needed them it is too late. No files, no backup, no old versions. Grab the source code and build

Cleanup… Read More »

nDarx-0.1

Three months ago I promised to write a Linux pendant for DarX Now it is time to release the first version. Nothing special. Just x01 with stats and highscore Quick instruction: The next releases will contain adjustable settings from within the menu and cricket (my favourite game).

nDarx-0.1 Read More »

SSH tunnel

From time to time I need a different IP with full webaccess for testing purpose. So I start an SSH tunnel to my server and configure my webbrowser to use a socksproxy at port 8080: ssh -D 8080 -C -q -N host.tld

SSH tunnel Read More »

Playlist for mpd

Here is a little script to generate playlists from folders for mpd. Execute this Skript with the folders name under your music folder. if [ -z “$1″ ] then echo $0 folder else cd /mnt/data/ find music/”$1″ -name ‘*.mp3’ > /mnt/data/playlists/”$1”.m3u fi

Playlist for mpd Read More »

Copy flashvideos to disk

So if you want to save flashvideos from certain websites, you can use this little script. Flash saves all his files in /tmp but deletes them instantly from the filesystem. No file is just deleted immediate from the disk while the application, which creates the file, is running. The file is still accessible through procfs.

Copy flashvideos to disk Read More »