Saturday, April 19, 2014

Recursively md5 checksum a folder

find * -iname '*' -exec md5sum '{}' \; > ~/output.txt

Change to md5 for osx

Wednesday, April 16, 2014

PS2 Guitar hero world tour drums on linux

The drums are treated like a joystick and buttons are translated to keyboard strokes.

This works on Debian squeeze
Install joy2key
Install hydrogen (program to convert keystrokes to drums)

make .joy2key in your home folder


START hydrogen
-thresh 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
-X
-buttons q w d c s x a z

Plugin USB receiver. Press LED until it blinks
Press PS key on drums (install batteries). It should select one of four controller settings, 1 LED on drums is lit solid.

Start hydrogen

joy2key -dev /dev/input/js0 -config hydrogen

Select hydrogen window to direct keyboard events from drums

Use correct joystick setting (js0 here)

Linux 2.6.32-5-amd64
joy2key Version: 1.6.3
Hydrogen Drum Machine 0.9.4
(All default installs)

Also worked with a slight change on Debian 8 Jessie (2016/11)

.joy2keyrc instead of .joy2key (per initial error message)

Linux cdreams04b 3.16.0-4-amd64
joy2key Version: 1.6.3
Hydrogen Drum Machine 0.9.6.1
(All default installs)

Wednesday, April 9, 2014

7Z to split, merge files

7Zip fun

copy dont compress, make 10k files
7z a a.7z ./out.a -mx=0 -v10k

make the full file, input first in series
7z x a.7z.001

Sunday, March 16, 2014

Android 4.x pictures snafus

One way on a Mac:
enable MTP on phone
Use android file transfer

On linux:
enable MTP on phone
install mtp-tools
mtpfs to mount to a folder


May need USB debugging enabled