sobota 13. marca 2010

unrar all rar files in dir

for i in `ls *.rar`; do unrar e $i && rm -f $i;done

nedeľa 24. januára 2010

change year timestamp on all files in dir

#!/bin/bash
#change year on files
#created by Rado
ls -l |grep -v total |while read prava malecislo user grupa cislo datum cas subor; do
#echo $datum
YY=`echo $datum|cut -d - -f 1`
MM=`echo $datum|cut -d - -f 2`
DD=`echo $datum|cut -d - -f 3`
HH=`echo $cas|cut -d : -f 1`
min=`echo $cas|cut -d : -f 2`
# change only files from year 2008
if [ "$YY" = 2008 ]; then
# Change 09 to year wich is requested, where 09 is 2009
touch -t 09$MM$DD$HH$min $subor
echo "changed file:" $subor $YY
else
echo "not valid file" $subor $YY
fi
done

sobota 26. decembra 2009

nedeľa 20. decembra 2009

nieco na pocuvanie

Danky:
http://www.poo.sk/angakkut_-_syrinx.mp3
http://www.poo.sk/one_div_x_-_sleeping_with_cuts.mp3
http://www.poo.sk/angakkut_-_white_fog.mp3

pondelok 30. novembra 2009

Mounting Samba share

mount -t smbfs -o username=,password= //sambashare /mountpoint

smbfs will be repalced by cifs

mount -t cifs -o username=,password= //sambashare /mountpoint

nedeľa 29. novembra 2009

mount iso image

mount -o loop -t iso9660 /path/to/iso/Image.iso /mnt/ddd

piatok 6. novembra 2009

GkrellM basic setup

Proc: \w88\a$p\f procs\n\e$u\f users
Disk : $r\r$w\n\fR\r\fW
Net : $r\r$t\n\fR\r\fT