A repository of miscellaneous hacks.
This repository is so named because I usually only have free time at night
after the kids are in bed.
The inspiration for this repository is largely entertainment: sometimes I
get burned out, and one tempting way to unwind is to play some sort of
game. The problem is, although it's useful for unwinding, most games aren't
productive, so I feel that my limited time is wasted.
I found that my burnout isn't necessarily related to programming or research
as an act in itself---the burnout is caused from doing too similar of things
for extended periods of time. But hacking is enjoyable, and can easily be
considered a game; as long as it's different than what caused me to burn
out, then it's a suitable alternative to playing games, and more rewarding.
On top of that, it can produce examples that are useful for others to learn
from. I hope you find some of these as entertaining as I did.
: The term ``hacking'' refers to playful creativity, not breaking
security (which we refer to as ``cracking''). For a good overview of
the distinction, see <https://stallman.org/articles/on-hacking.html>.
I constrain myself to these criteria:
1. The hack should be something that I wouldn't normally do;
2. It has to have hack value; and
3. It should be able to be done in small (e.g. 30m) increments.
#3 is particularly important so that these small hacks don't turn into
projects. If it gets to that point, then they should be forked as such
rather than continuing to live here.
There may be much easier ways of accomplishing some of the hacks in this
repository. For example, rather than a sed script trying to treat text as a
character matrix using regular expressions, I could write a trivial (and
significantly faster) C program. But that wouldn't be a hack---it'd be a
trivial C program doing what C is good at doing.
All programs in this repository are free/libre software. See COPYING and
the header of each program for more information.
Free software refers to freedom, not price.
Copyright (C) 2018 Mike Gerwitz
This file is released under the Creative Commons Attribution-ShareAlike 4.0
International License. See COPYING.CCBYSA for more information.