Skip to content

Instantly share code, notes, and snippets.

Avatar
🔋
Battery about to die

Okke Timm okket

🔋
Battery about to die
View GitHub Profile
View LetsDestroyC.md

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
jvehent / age demo.md
Created Jan 6, 2020
age-encryption.org demo
View age demo.md

Download & install

$ wget https://github.com/FiloSottile/age/releases/download/v1.0.0-beta2/age-v1.0.0-beta2-linux-amd64.tar.gz
$ 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
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: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet
@lukemelia
lukemelia / README.md
Last active Apr 9, 2020
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>
@p7cq
p7cq / Fedora_Root_On_ZFS.md
Last active May 5, 2020
Fedora with Root on ZFS - installation notes
View Fedora_Root_On_ZFS.md

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))
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 12, 2020
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
You can’t perform that action at this time.