Skip to content

Instantly share code, notes, and snippets.

Battery about to die

Okke Timm okket

Battery about to die
View GitHub Profile

Let's Destroy C

I have a pet project I work on, every now and then. CNoEvil.

The concept is simple enough.

What if, for a moment, we forgot all the rules we know. That we ignore every good idea, and accept all the terrible ones. That nothing is off limits. Can we turn C into a new language? Can we do what Lisp and Forth let the over-eager programmer do, but in C?

jvehent / age
Created Jan 6, 2020 demo
View age

Download & install

$ wget
$ tar -xzvf age-v1.0.0-beta2-linux-amd64.tar.gz
$ sudo cp age/* /usr/local/bin/

Generate a keypair

$ age-keygen -o ~/.age/(date +%s)-(hostname).key
IanColdwater / twittermute.txt
Last active Aug 10, 2020
Here are some terms to mute on Twitter to clean your timeline up a bit.
View twittermute.txt
Mute these words in your settings here:
lukemelia /
Last active Apr 9, 2020
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
p7cq /
Last active May 5, 2020
Fedora with Root on ZFS - installation notes

Fedora: Root on ZFS

  • Fedora: 28
  • ZFS on Linux: 0.7.9

A. Prepare source

  1. Download Fedora Workstation network installer image.
  2. Boot live media by adding inst.gpt at the end of the boot line and set up with:
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 12, 2020
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
You can’t perform that action at this time.