Skip to content

Instantly share code, notes, and snippets.

@irl
irl / gist:4229914
Created December 7, 2012 01:11
Reading SDF Chatter
import urllib2
import re
from xml.dom.minidom import parseString
class GUIDS:
guids = []
def __init__(self):
f = open("/meta/i/irl/.chatterguids")
@irl
irl / gist:4186207
Created December 2, 2012 00:52
SpaceBarOS/DCPU
;
; SpaceBarOS/DCPU
; (C) Iain R. Learmonth 2012. All rights reserved.
;
; Requires:
; DCPU-16
; LEM1802
;
; Tasks:
; Memory management
[2012-11-09 14:20:21] DEBUG: running gui
[2012-11-09 14:20:21] DEBUG: assigned color pair 1 to (4, 0)
[2012-11-09 14:20:21] DEBUG: assigned color pair 2 to (-1, -1)
[2012-11-09 14:20:21] DEBUG: assigned color pair 3 to (6, 0)
[2012-11-09 14:20:21] DEBUG: assigned color pair 4 to (1, -1)
[2012-11-09 14:20:21] DEBUG: configuring...
[2012-11-09 14:20:21] DEBUG: task version: 2.1.2
[2012-11-09 14:20:21] DEBUG: bind #0: key <ERR> (-1) bound to @(nil) tasklist - (null)(args: 0/(null))
[2012-11-09 14:20:21] DEBUG: bind #1: key <ERR> (-1) bound to @(nil) pager - (null)(args: 0/(null))
[2012-11-09 14:20:21] DEBUG: bind #2: key <resize> (410) bound to @0x407e50 (null)(args: 0/(null))
==12653== Memcheck, a memory error detector
==12653== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==12653== Using Valgrind-3.6.0 and LibVEX; rerun with -h for copyright info
==12653== Command: ../tasknc
==12653== Parent PID: 12652
==12653==
--12653--
--12653-- Valgrind options:
--12653-- --tool=memcheck
--12653-- --leak-check=full
@irl
irl / PlayWindows.bat
Created August 28, 2012 08:17
Startfile for @adventureloop's LD24 entry
@ECHO OFF
echo Starting game
java -Djava.library.path=lib/windows -jar LD24Game.jar
@irl
irl / README.md
Created August 26, 2012 05:08
La Cucina For JS/Linux

This is a base64 encoded archive containing a pre-compiled binary and supporting files; everything you need to run my game under JS/Linux.

Quick Start

@irl
irl / gif.php
Created August 20, 2012 18:05
Fetching a TCP stream for output over Gopher and HTTP
<?php
header('Content-Type: image/gif');
$fp = fsockopen("marang.room205.org", 8091, $errno, $errstr, 30);
if (!$fp) {
echo "$errstr ($errno)<br />\n";
} else {
while (!feof($fp)) {
@irl
irl / sdf-bind9.md
Created August 16, 2012 21:31
irl's writing in progress

Running a chrooted BIND9 server on a NetBSD VPS [SDF]

Note: This tutorial assumes you've already followed the NetBSD on SDF VPS tutorial to set up networking, the time zone and pkgsrc using the SDF VPS pkgsrc. It also assumes that you have followed the OpenLDAP on NetBSD tutorial and have a working OpenLDAP server. It also assumes that you have a domain name and have set your VPS as your nameserver. If you do not have a domain name, you should register one. AFAIK, you can register a domain for free from dot.tk which will allow you to configure your own nameserver.

A DNS server can, like LDAP, be used for an almost endless number of things. It is also a hierachical database. Primarily though, it is for storing information about hosts such as their addresses, where the mail should be sent and who is responsible for them. A common analogy for DNS is