View README.md

A quick workaround for a flask-bootstrap navbar with items at the right side, as requested at #126.

Bonus: ability to change navbar's style (navbar navbar-inverse in the example).

  • copy the flask-bootstrap sample app to a folder.
  • overwrite nav.py, __init__.py, and frontend.py with the files here.
View README.md

#Shelter1001's interactive [zenity] shell script for wifi qr-code generation.

Supports WPA [recommended] and open [sometimes useful] networks [no WEP support because duh].

Based on this [WPA only] commandlinefu.

party on, Garth

View index.html
<!DOCCTYPE html>
<html lang="he">
<head>
<meta charset='UTF-8'>
<title>התקווה 2K</title>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
</head>
<body>
<div class="container">
<div style="direction:rtl">
View fubase.sh
#!/bin/sh
# gpg to a keybase user or [unlike the keybase app] more than one
# Note: only encrypts. Doesn't do the usual metadata dance keybase is famous for
# **Example:** fubase.sh bob carol [< somefile]
# !!!!!!!!!!!!!!!!!!!!!!! uncomnent and change:
# export ME=alice
`(echo -n "gpg -u $ME@keybase.io -r $ME@keybase.io -eas " ; for r in $* ; do echo -n -r \""$r"\"\ ; done) | xargs` | xclip -sel clipboard
View panoptchik.sh
#!/bin/sh
# Launch http://www.lavrsen.dk/foswiki/bin/view/Motion/GMotionLive as sticky,always-on-top
# Usage: panoptchik.sh [N]
# N is webcam index (default is 1)
### Config me!
export WEBCAM_PREFIX=http://192.168.1.41:808 # port's last digit is [1 based] cam index
if [ "$1" == "" ] ; then
export CAM=1 # Cam 1, I presume
else
View README.md

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.
View README.md

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).

View README.md

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 ███████.

View index.html
<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>
View site_url.rb
# {% 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)