Skip to content

Instantly share code, notes, and snippets.

View mogigoma's full-sized avatar

Mak Kolybabi mogigoma

View GitHub Profile
@mogigoma
mogigoma / elnode-publish.el
Created August 11, 2012 06:25
A hack to publish any buffer exactly as it appears in Emacs on demand over HTTP.
(defvar mak/elnode-publish-port
4444
"The port for published buffers to be served on.")
(defvar mak/elnode-publish-buffers
(make-hash-table :test 'equal)
"List of the buffers to publish over HTTP.")
(defun mak/elnode-publish-handler (httpcon)
"Handler for buffers published by Elnode."
@mogigoma
mogigoma / parse-ssh-pubkey.el
Created July 25, 2012 04:11
Parse the binary portion of an SSH that's already decoded from Base64.
(require 'bindat)
(require 'format-spec)
(defvar dsa-pubkey-format-spec
"Parameter P: %p\nParameter Q: %q\nParameter G: %g\nParameter Y: %y\n"
"Output format for DSA public keys.")
(defvar dsa-pubkey-bindat-spec
'((:p-len u32)
(:p vec (:p-len))
class Acceptor
attr_reader :things
def initialize
@things = {}
yield self
end
def method_missing(s, a)
@things[s] = a
end
end
commit e61166ccab783dfdefc4a33c8239f926a48ea544
Author: Russ
Date: Wed Mar 24 09:32:23 2010 -0500
JSON changes:
- mak's segment squashing code
- refpts merged into segment structure
- rmnames structure changed to simple dict
- activity{delays, schedules, types} changed to simple list
- mak wanted a pony: