Skip to content

Instantly share code, notes, and snippets.

@thedod
thedod / README.md
Last active March 1, 2022 04:13
Gotcha - Simple Arduiono alarm system with "dead man switch" support

Lately, somebody started stealing from us. Took us time to figure it out. At first we thought things got lost. When they took a gas tank, it became obvious ;). As far as I know, it ain't over and it's no game. It's a lousy perimeter to defend, especially for old hippies who moved to the land of smiles because they got tired of saying "perimeter"[1].

But enough about me

This is a generic Arduino sketch that lets you whip up a simple and friendly alarm system from whatever sensors and controllers you've got lying around in cat-infested shoe boxes.

  • A sensor (PIR motion detector, magnetic door switch, weight sensor, etc.).
  • A controller (hidden button, keypad, RFID reader, etc.) to temporarily disable ("chill") the system.
  • A noisy device (buzzer, ghetto-blaster, tennis ball cannon aimed at a gong, GSM modem for sending SMS, etc.).
  • A LED.
@thedod
thedod / README.md
Last active August 29, 2015 14:23
TimelineJS3 (not 2!) converter json<->csv [not an "official csv standard", but easy to edit]

To convert json to csv:

./timeline_json2csv.py < goodtimes.json > goodtimes.csv

Edit the spreadsheet (with excel), then convert back:

./timeline_csv2json.py < goodtimes.csv > goodtimes.json

Note: We assume csv files are utf-16 encoded (like excel writes them), not utf-8 (like soffice would).

We've moved HERE

[This obsolete gist stays here because stuff might still link here]


DarkenedAges — a twister-based game of intrigue and bad crypto

Trust ██ like █████. Be ███████.

@thedod
thedod / index.html
Last active August 29, 2015 14:20
public-domain waiver
<p xmlns:dct="http://purl.org/dc/terms/" xmlns:vcard="http://www.w3.org/2001/vcard-rdf/3.0#">
<a rel="license"
href="http://creativecommons.org/publicdomain/zero/1.0/">
<img src="http://i.creativecommons.org/p/zero/1.0/88x31.png" style="border-style: none;" alt="CC0" />
</a>
<br />
To the extent possible under law,
<a rel="dct:publisher"
href="https://dubiousdod.org">
<span property="dct:title">ĎÚβĨŐÚŚ Dod</span></a>
@thedod
thedod / site_url.rb
Created April 1, 2015 09:45
Dumbest possible Jekyll plugin: prefix site.baseurl
# {% site_url /some/path/to/file.suffix %} is like {{ '/some/path/to/file.suffix' |:prefix site.baseurl }}
module Jekyll
class SiteUrl < Liquid::Tag
def initialize(name, url, tokens)
super
@url = url
end
def render(context)
@thedod
thedod / README.md
Last active August 29, 2015 14:17
.jekyll bookmarklet
@thedod
thedod / .gitignore
Last active December 22, 2021 23:38
Hyde Park - githubless gh-pages with gitolite
config.py
env-*
*.pyc
@thedod
thedod / README.md
Last active December 1, 2016 20:06
#BioCitationNeeded (a #no2bio project)

The #BioCitationNeeded project

We've moved here.

@thedod
thedod / keybase.md
Last active August 29, 2015 14:12
I am 4real. Honest.

Keybase proof

I hereby claim:

  • I am thedod on github.
  • I am thedod (https://keybase.io/thedod) on keybase.
  • I have a public key whose fingerprint is 5986 9F95 92CF B3B8 D72F 0555 385F A683 3F85 ED5E

To claim this, I am signing this object:

@thedod
thedod / README.md
Last active July 12, 2021 15:34 — forked from d3noob/.block
Twister daily traffic (D3 visualization of TwisterIO stats)