Skip to content

Instantly share code, notes, and snippets.

@lstoll
lstoll / memcache.js
Created February 23, 2010 15:19 — forked from jespern/memcache.js
var tcp = require('tcp'),
sys = require('sys');
var crlf = "\r\n";
var crlf_len = crlf.length;
var error_replies = ['ERROR', 'NOT_FOUND', 'CLIENT_ERROR', 'SERVER_ERROR'];
var reply_indicators = {
'get' : ['VALUE', 'END'],
@lstoll
lstoll / get_nab_account_balances.rb
Created February 6, 2012 13:50 — forked from wezm/get_nab_account_balances.rb
Update for current NAB IB
require 'rubygems'
require 'nokogiri'
require 'mechanize'
require 'logger'
module BankBalance
class NabFetcher
def fetch(client_number, password)
@lstoll
lstoll / gist:2411499
Created April 18, 2012 06:41 — forked from lclarkmichalek/gist:1657284
Flymake mode for golang
(require 'flymake)
(defun flymake-go-init ()
(let* ((temp-file (flymake-init-create-temp-buffer-copy
'flymake-create-temp-inplace))
(local-file (file-relative-name
temp-file
(file-name-directory buffer-file-name))))
(list "go" (list "build" "-o" "/dev/null" temp-file))))
@lstoll
lstoll / downloader.rb
Created April 30, 2012 03:34 — forked from chrisjm/s3-delete-bucket.rb
fork of s3-delete-files.rb -- Used for downloading a bucket with lots of files.
#!/usr/bin/env ruby
require 'rubygems'
require 'thread'
require 'fog'
# Ensure a bucket is specified
if ARGV.count < 4
raise "Specify a key, secret, bucket and output dir (eg ./downloader.rb key secret my-bucket '~/out')"
return