I hereby claim:
- I am nelhage on github.
- I am nelhage (https://keybase.io/nelhage) on keybase.
- I have a public key whose fingerprint is C808 7020 87F6 8CD8 C818 F239 DFC1 CF0D A816 9ACF
To claim this, I am signing this object:
| >>>> | |
| +++++>>>>+++++>>>>+++++>>>>+++++>>>>++>>>>+++++>>>>+++++>>>>+++++>>>>+++++>>>>+++>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+++++++>>>>+++++++>>>>+++++++>>>>+++++++>>>>++>>>>++++>>>>+++>>>>++>>>>+++++++>>>>+++++++>>>>+++++++>>>>+++>>>>++++++>>>>++++++>>>>++++++>>>>++++++>>>>++>>>>++++++>>>>++++++>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>++>>>>+++++>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>++++++>>>>++++>>>>+++>>>>+++++>>>>+>>>>+++++>>>>++>>>>++++++>>>>+++++++>>>>++++++>>>>++++++>>>>+>>>>+++++>>>>+++++>>>>+++++>>>>++++>>>>+++>>>>++++++>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+>>>>+++++++>>>>+++++++>>>>+++++++>>>>+++++++>>>>+++++>>>>+>>>>+>>>>+>>>>+>>>>++>>>>++++>>>>++++++>>>>++++>>>>++++>>>>++++>> |
| [A simple Brainfuck quine. This program is not a quine, but if you run | |
| it, its output (which will be the same as the input, but stripped of | |
| all comments and whitespace) will be. | |
| We're going to represent things using four tape cells as one logical | |
| struct. Skip right four cells to leave an empty start-of-tape marker.] | |
| >>>> |
| [nelhage@aeronautique:~]$ time ruby -rbson -e1 | |
| real 0m0.281s | |
| user 0m0.233s | |
| sys 0m0.042s | |
| [nelhage@aeronautique:~]$ cd /tmp/ | |
| [nelhage@aeronautique:/tmp]$ cat > bson.go | |
| package main | |
| import _ "labix.org/v2/mgo/bson" | |
| func main() {} |
| package reader | |
| import "io" | |
| func getRead(r io.Reader) func([]byte) (int, error) { | |
| return r.Read | |
| } | |
| // partial output of `go tool 6g -S read.go`: | |
| // |
| class To | |
| def initialize(object) | |
| @object = object | |
| end | |
| def method_missing(method, *args) | |
| @object.public_send("to_#{method}", *args) | |
| end | |
| end |
| [nelhage@anarchique:~]$ sudo dpkg-divert --divert /usr/share/update-notifier/notify-reboot-required.orig --rename --add /usr/share/update-notifier/notify-reboot-required | |
| Adding 'local diversion of /usr/share/update-notifier/notify-reboot-required to /usr/share/update-notifier/notify-reboot-required.orig' | |
| [nelhage@anarchique:~]$ echo $'#!/bin/sh\nexit 0' | sudo tee /usr/share/update-notifier/notify-reboot-required | |
| #!/bin/sh | |
| exit 0 | |
| [nelhage@anarchique:~]$ sudo chmod +x /usr/share/update-notifier/notify-reboot-required | |
| [nelhage@anarchique:~]$ sudo rm /var/run/reboot-required* | |
| # -*- coding: utf-8 -*- | |
| class Charge | |
| def visit(obj, method, *args) | |
| obj.public_send(:"#{method}_for_charge", args) | |
| end | |
| end | |
| class Refund | |
| def visit(obj, method, *args) | |
| obj.public_send(:"#{method}_for_refund", args) |
| def is_in_eventmachine(pid) | |
| begin | |
| syscall = File.read("/proc/#{pid}/syscall") | |
| rescue Errno::ENOENT | |
| return false | |
| end | |
| words = syscall.split(" ") | |
| if words.length != 9 | |
| # Running, or in an fault handler |
I hereby claim:
To claim this, I am signing this object:
| module Golem::Mongo | |
| # Golem::Mongo::ReplSet is an abstraction around a mongo replica set | |
| # that provides methods for performing administrative functions. It | |
| # implements equivalents to a number of the rs.* helpers in the | |
| # mongo shell, as well as higher-level functions for operations such | |
| # as managing failovers | |
| class ReplSet | |