Warning: array_keys() expects parameter 1 to be array, null given in /usr/www/users/mattmets/cibomahto/wp-content/plugins/wp-syntax/geshi/geshi.php on line 3618
Warning: Invalid argument supplied for foreach() in /usr/www/users/mattmets/cibomahto/wp-content/plugins/wp-syntax/geshi/geshi.php on line 3618
Warning: array_keys() expects parameter 1 to be array, null given in /usr/www/users/mattmets/cibomahto/wp-content/plugins/wp-syntax/geshi/geshi.php on line 3626
Warning: Invalid argument supplied for foreach() in /usr/www/users/mattmets/cibomahto/wp-content/plugins/wp-syntax/geshi/geshi.php on line 3626
Warning: array_keys() expects parameter 1 to be array, null given in /usr/www/users/mattmets/cibomahto/wp-content/plugins/wp-syntax/geshi/geshi.php on line 3629
Warning: Invalid argument supplied for foreach() in /usr/www/users/mattmets/cibomahto/wp-content/plugins/wp-syntax/geshi/geshi.php on line 3629
Warning: array_keys() expects parameter 1 to be array, null given in /usr/www/users/mattmets/cibomahto/wp-content/plugins/wp-syntax/geshi/geshi.php on line 1904
Warning: Invalid argument supplied for foreach() in /usr/www/users/mattmets/cibomahto/wp-content/plugins/wp-syntax/geshi/geshi.php on line 1904
Warning: Invalid argument supplied for foreach() in /usr/www/users/mattmets/cibomahto/wp-content/plugins/wp-syntax/geshi/geshi.php on line 2257
Warning: Invalid argument supplied for foreach() in /usr/www/users/mattmets/cibomahto/wp-content/plugins/wp-syntax/geshi/geshi.php on line 3206
Warning: implode() [function.implode]: Argument must be an array in /usr/www/users/mattmets/cibomahto/wp-content/plugins/wp-syntax/geshi/geshi.php on line 3258
Warning: array_keys() expects parameter 1 to be array, null given in /usr/www/users/mattmets/cibomahto/wp-content/plugins/wp-syntax/geshi/geshi.php on line 3289
Warning: Invalid argument supplied for foreach() in /usr/www/users/mattmets/cibomahto/wp-content/plugins/wp-syntax/geshi/geshi.php on line 3289
Warning: array_keys() expects parameter 1 to be array, null given in /usr/www/users/mattmets/cibomahto/wp-content/plugins/wp-syntax/geshi/geshi.php on line 3332
Warning: Invalid argument supplied for foreach() in /usr/www/users/mattmets/cibomahto/wp-content/plugins/wp-syntax/geshi/geshi.php on line 3332
Warning: array_keys() expects parameter 1 to be array, null given in /usr/www/users/mattmets/cibomahto/wp-content/plugins/wp-syntax/geshi/geshi.php on line 3477
Warning: Invalid argument supplied for foreach() in /usr/www/users/mattmets/cibomahto/wp-content/plugins/wp-syntax/geshi/geshi.php on line 3477
I wrote a couple of scripts to help me remember how to do things, and I wanted to document them somewhere.
First are some scripts to change the sound mixer so that sound only comes out of the headphones or the speakers. They basically just call amixer with the proper options:
useheadphones.sh:
#!/bin/sh amixer set 'Amp Mode' 'Headphones'
usespeakers.sh:
#!/bin/sh amixer set 'Amp Mode' 'Stereo Speakers'
Next is a script to fade the screen in and out, just for fun:
fade.sh:
#!/bin/sh echo 0 > /sys/class/backlight/gta01-bl/power for i in `seq 0 100 5000`; do echo $i > /sys/class/backlight/gta01-bl/brightness done for i in `seq 0 100 5000`; do let "o = 5000 - $i" echo $o > /sys/class/backlight/gta01-bl/brightness done sleep 3 echo 5000 > /sys/class/backlight/gta01-bl/brightness
Thats all for now.