Skip to content

Instantly share code, notes, and snippets.

Okke Timm okket

Block or report user

Report or block okket

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
lukemelia /
Last active Mar 25, 2019
keyboard-shortcut element modifer

An element modifier to attach a keyboard shortcut to an element that has a click method

Example usage:

  <button {{action 'doSomethingCool'}} {{keyboard-shortcut "D"}}>
    [D]o something cool
View scheme.exs
cons = fn (a, b) -> fn x -> x.(a, b) end end
car = fn (p) -> p.(fn (q, _) -> q end) end
cdr = fn (p) -> p.(fn (_, q) -> q end) end
each = fn (list, func) ->
iter = fn (list, func, next) ->
(fn (a, nil) -> func.(a)
(a, b) -> func.(a); next.(b, func, next)
end).(car.(list), cdr.(list))
iter.(list, func, iter)
mikeal / r2.js
Last active Sep 4, 2017
HTTP Client Comparison
View r2.js
const r2 = require('r2')
let doJsonThing = async (path, propname) => {
let res = await r2(`${path}`).json
return res[propname]
ddunbar /
Last active Aug 26, 2019
Xcode new build system debugging tricks

New Build System Tricks

Command Line

alias xcbuild=$(xcode-select -p)/../SharedFrameworks/XCBuild.framework/Versions/A/Support/xcbuild
# THIS DOESNT WORK YET: xcbuild openIDEConsole  # … then switch to Xcode ➡️
xcbuild showSpecs
xcbuild build <foo.pif> [—target <target>]
ahupowerdns /
Last active Jan 31, 2018
The LUA record type for Lua-powered DNS records

LUA Record Type for Lua-powered DNS records for standards based fail-over and geographical load balancing

GitHub branch ->

Recently, many zone owners could not migrate away from Dyn since they were benefiting from non-standardised DNS-based failover and geographical loadbalancing features. What you see below is an attempt to get standards based but flexible equivalents of these currently proprietary features. Here is a zone:

$TTL 60 IN      SOA (
        2016032300      ; Serial
        14400           ; Refresh
View top500-dns-ttl.csv
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 7.
bortzmeyer /
Created Oct 21, 2016
Attack against Dyn seen from outside Europe/North America
% atlas-resolve -r 100 -c JP 
[TIMEOUT(S)] : 6 occurrences 
[ERROR: SERVFAIL] : 2 occurrences 
[] : 25 occurrences 
[] : 37 occurrences 
[] : 23 occurrences 
Test #6891931 done at 2016-10-21T20:17:31Z

% atlas-resolve -r 100 -c BR 
bortzmeyer /
Created Oct 21, 2016
Attack against Dyn from Free (France)
% check-soa -i OK: 2007130853 (22 ms)
	2001:500:90:1::34: ERROR: read udp [2001:500:90:1::34]:53: i/o timeout ERROR: read udp i/o timeout OK: 2007130853 (28 ms)
	2001:500:94:1::34: ERROR: read udp [2001:500:94:1::34]:53: i/o timeout
mcnees / GaussianSurfaces.tex
Created Oct 18, 2016
Gaussian Surfaces with PGF/TikZ
View GaussianSurfaces.tex
% Send comments to, or @mcnees on Twitter.
% ------------------------------------------------
% Specify the margins.
% ------------------------------------------------
You can’t perform that action at this time.