Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am achernya on github.
  • I am achernya (https://keybase.io/achernya) on keybase.
  • I have a public key whose fingerprint is 3224 C446 9D7D F8F3 D6F4 1A02 BBC7 56DD BE59 5F6B

To claim this, I am signing this object:

@achernya
achernya / hs-to-in.js
Last active December 16, 2015 03:18
DNS HS to IN translator written in node.js to get a VAXstation 3100 to work in a modern MIT Athena environment
var dns = require('native-dns');
var server = dns.createServer();
server.on('request', function (request, response) {
var question = dns.Question({
name: request.question[0].name,
type: request.question[0].type,
});
@achernya
achernya / fedora-18-mdadm-lvm.ks
Last active December 15, 2015 23:50
Fedora 18 Kickstart with mdadm (RAID) and LVM
#version=DEVEL
# System authorization information
auth --useshadow --passalgo=sha512
# Install OS instead of upgrade
install
# Use CDROM installation media
cdrom
# Reboot after installation
reboot# Use text mode install
@achernya
achernya / resolver-demo.c
Last active December 15, 2015 13:28
Demonstration that OS X has working resolver(3) functions in its standard library.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
// Uncomment this and link with -lresolv
//#include <resolv.h>
#include <arpa/nameser_compat.h>
#include <arpa/inet.h>
// We want minimum headers for now, so define NS_QFIXEDSZ if needed
@achernya
achernya / resolver-test.c
Created March 28, 2013 21:35
Demonstration that OS X will compile and run a program that calls res_init()
int
main(int argc, char* argv[]) {
res_init();
return 0;
}
@achernya
achernya / .gitconfig
Created March 18, 2013 20:43
.gitconfig for pretty, colorized git log
[alias]
lola = log --graph --abbrev-commit --pretty=oneline --decorate
gl = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
[color]
ui = auto