blue-tether: Allow bluetooth adapter to be specified

Signed-off-by: Ian Munsie <darkstarsword@gmail.com>
git-am-tool: remove "function" keyword

Used to work... bashism?

Signed-off-by: Ian Munsie <darkstarsword@gmail.com>
git-am-tool: Allow specifying patch & optionally ignore untracked files

This way the script can be used when we only have a simple patch file
and not something that git-am can process.

The option to ignore untracked files is because I now have a per-tree
build.sh script in a lot of my git trees that would not be appropriate
to commit since it just automates some of my local build setup that
doesn't apply to anyone else.

Signed-off-by: Ian Munsie <darkstarsword@gmail.com>
sup-mail: Add patches to save an entire thread

I wrote these patches ages ago and never finished. They really need some
work, but since I don't know Ruby and they are working well enough for
me I'll just put them out there.

Signed-off-by: Ian Munsie <darkstarsword@gmail.com>
vimrc: Re-add set filetype=diff shortcut

Useful for reviewing patch series in mbox format.

Signed-off-by: Ian Munsie <darkstarsword@gmail.com>
xResources: Disable scrolling on TTY output

I often turn off scroll on TTY output manually, so I'm going to try it
as the default for a while.

Signed-off-by: Ian Munsie <darkstarsword@gmail.com>
Xresources: Throw a couple of xterm fast scroll options in

Again just trying these out for now.

Signed-off-by: Ian Munsie <darkstarsword@gmail.com>
Workaround for Serious Sam 3 "_NET_WM_STATE_HIDDEN can't be obtained" bug

See this thread for explanation:
http://steamcommunity.com/app/221410/discussions/0/846938351017179389/

Signed-off-by: Ian Munsie <darkstarsword@gmail.com>
Steam depotcache decoder

Signed-off-by: Ian Munsie <darkstarsword@gmail.com>
Simple Steam acf parser

Signed-off-by: Ian Munsie <darkstarsword@gmail.com>
Simplify Steam acf parser

Signed-off-by: Ian Munsie <darkstarsword@gmail.com>
Add an old python TTY UI class I wrote

The original idea here was that I would create a consistent API that
could be used to abstract whether the app was running in in a TTY or had
curses to do things like displaying coloured text, asking a y/n
question, etc.

I never got around to writing the curses implementation and never
stabilised the API, so this just ended up being a quick n' dirty way to
add some fancy output to some scripts.

I'm about to use it again, so I'll add it here.

If I ever get around to working on this again expect the API to change.

Signed-off-by: Ian Munsie <darkstarsword@gmail.com>
Add script to find some problems with Steam acf games

- Lists games that have no "MountedDepots" (No files)
- List missing files (highlighted with a red background)
- List files with mismatches in their path capitalisation (mismatches
  are highlighted with a yellow background)

You may pass extra levels of verbosity (currently up to 3) to get more
information.

Note: If the script reports that the manifest files are not found it
can only do a few checks (in particular it cannot check the files within
the game) - you will need to "verify integrity of game cache" manually
from within steam to download the manifest files and try again.

Does not:
- List bad CDR entries ("invalid app config" / "missing executable")
- Pay attention to the state of a game (ie, games currently being
  downloaded or updated will be listed as bad)

Will do in the future:
- Rename files with mismatched case to correspond with the filenames
  in the file manifests.
- List files found in the game directories that are not listed in the
  file manifest, and optionally delete them.

Pipe dreams:
- Compare multiple manifest files to e.g. find what changed in an
  update, look for differences between Windows & Linux versions, detect
  identical / similar files that have different filenames.
- Actually use the verification data in the manifest files to locate
  corrupt files. I'd need to work out what algorithm they use first, so
  this is unlikely.

Signed-off-by: Ian Munsie <darkstarsword@gmail.com>
Steam acf game checker: cleanup code, add rename & delete support

Signed-off-by: Ian Munsie <darkstarsword@gmail.com>
Utility to recursively rename files to lower case

For verifying check_acf.py, Steam & Steam games.

Signed-off-by: Ian Munsie <darkstarsword@gmail.com>
dev_one: Add option to only write data that isn't already 0xff

Will be slower in many cases - intended for use to re-wipe a device that
is still mostly uninitialised.

Signed-off-by: Ian Munsie <darkstarsword@gmail.com>
check_acf: Add option to mark games with bad acf files as uninstalled

Signed-off-by: Ian Munsie <darkstarsword@gmail.com>
check_acf: Handle missing ManagedDepots

The ManagedDepots field disappeared after today's update, so handle the
case where it does not exist.

Signed-off-by: Ian Munsie <darkstarsword@gmail.com>
Track some Arduino sketches

These are a couple of sketches I've written for the LeoStick Arduino
over the past year.

press_me is basically a glorified hello world for an LCD display and a
button and was one of the first sketches I wrote for the LeoStick.

_7seg contains a library to draw arbitrary text (with a font of my own
creation) or other test patterns on a 4 digit 7 segment display,
optionally using a serial to parallel shift register to reduce the
number of pins on the arduino that have to be connected to the display.
One of it's test patterns also operates a stepper motor - hey, I didn't
want to pull everything off my breadboard ;-)

logicgate is a sketch I wrote while I was learning how to build logic
gates out of diodes and transistors. Attach the A and B PINs to the
inputs of a logic gate and the result pin to the output and it will
display what kind of logic gate it is on a seven segment display (using
the code from _7seg - I really need to re-split that back out and
properly librarify it).

remote is a work in progress to control some RF remote controlled
power boards / sockets using a 433.92MHz ASK transmitter. It can already
work with the dimmers from Aldi, I still need to hook up an oscilloscope
to my Heller remote for the power boards to capture their codes.  I also
plan on making it receive IR codes and relay them to the computer.

Signed-off-by: Ian Munsie <darkstarsword@gmail.com>
Arduino: Support masquerading as Heller 433MHz remote

Adds the timing used by that remote to the Arduino sketch. I've decoded
all the signals, but haven't yet hooked it up in the python code, so the
packets have to be manually entered for the moment.

Signed-off-by: Ian Munsie <darkstarsword@gmail.com>