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
lukemelia / README.md
Last active Mar 25, 2019
keyboard-shortcut element modifer
View README.md

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
  </button>
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))
end
iter.(list, func, iter)
@mikeal
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(`http://api.com${path}`).json
return res[propname]
}
@ddunbar
ddunbar / xcbuild-debugging-tricks.md
Last active Aug 26, 2019
Xcode new build system debugging tricks
View xcbuild-debugging-tricks.md

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>]
View CAA-adoption-notes.md
@ahupowerdns
ahupowerdns / lua.md
Last active Jan 31, 2018
The LUA record type for Lua-powered DNS records
View lua.md

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

GitHub branch -> https://github.com/ahupowerdns/pdns/tree/luarec

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
lua.br. IN      SOA     a.lua.br. nstld.verisign-grs.com. (
        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.
domain,ttl,aaaa-ttl,cname-ttl,miltiple-ttls,ns-root,ns-ttl,a-count,aaaa-count,a-records,aaaa-records,ns-records,cname
facebook.com,300,300,,false,facebook.com,128517,1,1,"31.13.66.36","2a03:2880:f113:83:face:b00c:0:25de","a.ns.facebook.com.,b.ns.facebook.com.",
twitter.com,300,,,false,dynect.net,42239,4,0,"199.16.156.102,199.16.156.198,199.16.156.70,199.16.156.230","","ns1.p34.dynect.net.,ns3.p34.dynect.net.,ns4.p34.dynect.net.,ns2.p34.dynect.net.",
google.com,300,300,,false,google.com,128501,1,1,"216.58.209.14","2a00:1450:4017:803:0:0:0:200e","ns3.google.com.,ns4.google.com.,ns1.google.com.,ns2.google.com.",
youtube.com,300,300,,false,google.com,128505,1,1,"216.58.209.206","2a00:1450:4017:803:0:0:0:200e","ns3.google.com.,ns4.google.com.,ns1.google.com.,ns2.google.com.",
wordpress.org,600,,,false,wordpress.org,54943,2,0,"66.155.40.249,66.155.40.250","","ns4.wordpress.org.,ns3.wordpress.org.,ns1.wordpress.org.,ns2.wordpress.org.",
linkedin.com,300,300,,false,dynect.net,47775,1,1,"108.174.10.10","2620:109:c002:
@bortzmeyer
bortzmeyer / dyn-attack-brazil-japan.md
Created Oct 21, 2016
Attack against Dyn seen from outside Europe/North America
View dyn-attack-brazil-japan.md
% atlas-resolve -r 100 -c JP github.com 
[TIMEOUT(S)] : 6 occurrences 
[ERROR: SERVFAIL] : 2 occurrences 
[192.30.253.113] : 25 occurrences 
[192.30.253.112 192.30.253.113] : 37 occurrences 
[192.30.253.112] : 23 occurrences 
Test #6891931 done at 2016-10-21T20:17:31Z

% atlas-resolve -r 100 -c BR github.com 
@bortzmeyer
bortzmeyer / attack-dyn-free.md
Created Oct 21, 2016
Attack against Dyn from Free (France)
View attack-dyn-free.md
% check-soa -i twitter.com
ns1.p34.dynect.net.
	208.78.70.34: OK: 2007130853 (22 ms)
	2001:500:90:1::34: ERROR: read udp [2001:500:90:1::34]:53: i/o timeout
ns2.p34.dynect.net.
	204.13.250.34: ERROR: read udp 204.13.250.34:53: i/o timeout
ns3.p34.dynect.net.
	208.78.71.34: OK: 2007130853 (28 ms)
	2001:500:94:1::34: ERROR: read udp [2001:500:94:1::34]:53: i/o timeout
@mcnees
mcnees / GaussianSurfaces.tex
Created Oct 18, 2016
Gaussian Surfaces with PGF/TikZ
View GaussianSurfaces.tex
%
% Send comments to rmcnees@luc.edu, or @mcnees on Twitter.
%
\documentclass[11pt]{article}
% ------------------------------------------------
% Specify the margins.
% ------------------------------------------------
\usepackage{vmargin}
\setmargrb{2cm}{1cm}{2cm}{2cm}
You can’t perform that action at this time.