Skip to content

Instantly share code, notes, and snippets.

View edef1c's full-sized avatar

edef edef1c

View GitHub Profile
@edef1c
edef1c / binfmt_dispatch.go
Last active January 22, 2016 22:43
NixOS module: dispatch PE execution to either WINE or Mono based on whether it is a CLR executable
package main
import (
"debug/pe"
"errors"
"fmt"
"os"
"syscall"
)
@edef1c
edef1c / config-security
Last active September 27, 2024 11:02
Sane security defaults for SSH clients. Disables everything old and nasty.
# vim: ft=sshconfig
# Sane security defaults for SSH clients. Disables everything old and nasty.
# Unfortunately, SSH appears to provide no way to *exclude* old protocols,
# so we have a list of known-secure key exchange algorithms, symmetric ciphers,
# and message authentication codes.
# Config taken from [https://stribika.github.io/2015/01/04/secure-secure-shell.html]
Host *
KexAlgorithms [email protected],diffie-hellman-group-exchange-sha256
Ciphers [email protected],[email protected],[email protected],aes256-ctr,aes192-ctr,aes128-ctr
@edef1c
edef1c / talk-proposal.md
Last active August 29, 2015 14:07
Talk Proposal: Rethinking the bedrock of computers

Computing has changed a lot in the past 50 years, but we're still programming computers like it's 1970. Especially our operating systems suffer from this, but our programming languages aren't far off either.

We've made huge advances in managing modularity, and package management has moved forward to match. In node-land, we've moved with that, even actively driven innovation in these areas. We already have extreme modularity, good ways of handling versioning, and isolating concerns.

To fully take advantage of this, and to build computer systems that embody this, we need to rethink our entire stack from the ground up. The goal is to remove as many assumptions as possible from the lowest layers of our stack, and rethink even the fundamentals of operating systems.

In this mad science modular future, nothing is sacred. Drop the filesystem, and replace it with a database — or even a decentralised block storage system!

@edef1c
edef1c / Makefile
Last active May 4, 2017 13:55
Multiple inheritance with ES6 proxies, in both ES6 and CoffeeScript. Literate.
%.coffee: %.coffee.md
sed -n -e '/^ \{4\}/s/^ \{4\}//p' $< > $@
%.js: %.js.md
sed -n -e '/^ \{4\}/s/^ \{4\}//p' $< > $@
%.js: %.coffee
coffee -cb $<
all: multi-inherit.coffee multi-inherit.future.js
clean: