Oktolight 16 is ready

full new design. now on atxmega128a1u and atxmega128a1 . 1khz pwm. same size and price as oktolight 8 sizes: 106 mm x 63 mm x 23 mm smallest as possible oktolight for 16 channels so far. specially the height with 2,3 cm is amazing, you can squeeze it now everywhere in 🙂 so no master… Continue reading Oktolight 16 is ready

Published
Categorized as Oktolight

backup via bash

#!/bin/bash SERVER=”192.168.0.142″ #nice -n 20 dd if=/dev/mmcblk0p1 of=/media/iomega/sheeva_sicherung/mmcblockp1_`date +%d-%m-%Y` bs=1M count=16K cd / echo -e “checking if server is mounted… \033[60G [ \033[1;32m`date` \033[0;37m ]” mount_chk=`cat /proc/mounts | grep cifs| grep $SERVER|cut -f3 -d”/”` if [ $mount_chk!=$SERVER ]; then echo “no mount, Please mount manually ” dte=”Y”; read -p “shall we mount it? Y/N [Y]”… Continue reading backup via bash

Published
Categorized as bash

plist binary file: view or edit without additional software :-)

whenever you install itunes || co, you will have installed al required stuff already. so to view the content of your plist file use following batch file: you need plutil in the folder %commonprogramfiles(x86)%\Apple\Apple Application Support then you can also convert back to binary with that tool. show_plist.bat [plist-file] cd %commonprogramfiles(x86)%\Apple\Apple Application Support echo now… Continue reading plist binary file: view or edit without additional software 🙂

linux server adm – decrease / monitor hd access

first install apt-get install inotify-tools maybe also screen to have inotify running with screen in the background then monitor what is going on. directories after a @ are ignored. inotifywait -m -r / @/dev @/media @/mnt @/opt @/proc @/root @/sbin @/sys @/tmp @/usr @/bin @/etc @/lib @/var/run/samba/ @/var/cache/samba/ case “$1” in start) log_daemon_msg “Starting Samba… Continue reading linux server adm – decrease / monitor hd access

Published
Categorized as bash

bash: if else with floats in bash , for i s, arrays

arr=(“as” “df” 5 kkk “uz z t”); for ((i=0; i<10; i++)); do echo ${arr[$i]}; done OUTPUT: as df 5 kkk uz z t calc if else with floats a=1.6;b=1.7;if [[ $a < $b ]];then echo $a smaller than $b;fi numbers: i=0 $((i+2)) >> 2

Published
Categorized as bash

time lapse with ffmpeg

create single images every 25 pic: ffmpeg -i $1 -r 1 -f image2 out/%05d.png assemble back all together: ffmpeg -i out/%05d.png -sameq $2 and as bash script #!/bin/bash #create a dir named out by hand, now to lazy rm out/* #every 250 /300 one image (10 sec approx) ffmpeg -i “$1” -r 0.1 -f image2… Continue reading time lapse with ffmpeg

Published
Categorized as bash

font’s in xterm

xterm -fn 9×15 list of fonts available :  xlsfonts letters belonging to a given font: xfd

Published
Categorized as bash

mount image file’s partition

fdisk -ul image.img You must set cylinders. You can do this from the extra functions menu. Disk image-sda: 0 MB, 0 bytes 255 heads, 63 sectors/track, 0 cylinders, total 0 sectors Units = sectors of 1 * 512 = 512 bytes Device Boot Start End Blocks Id System image.img * 63 78140159 39070048+ 7 HPFS/NTFS… Continue reading mount image file’s partition

Published
Categorized as bash, linux