Skip to content

Instantly share code, notes, and snippets.

View kuno's full-sized avatar

kuno kuno

View GitHub Profile
@kuno
kuno / gist:947846
Created April 29, 2011 04:41 — forked from jb55/gist:945731
replace nginx with connect
var connect = require('connect')
, proxy = require('http-proxy')
function redirect(loc) {
return connect.createServer(function(req, res){
res.writeHead(301, { "Location": loc });
res.end();
});
}
@kuno
kuno / nodeconf_2011.md
Created May 6, 2011 23:51 — forked from guybrush/nodeconf_2011.md
a list of slides from nodeconf 2011
@kuno
kuno / npm-debub.log
Created July 25, 2011 00:09
npm-debub.log
info it worked if it ends with ok
verbose cli [ 'node', '/usr/bin/npm', 'install', '-g', 'geoip' ]
info using npm@1.0.20
info using node@v0.4.10
verbose config file /root/.npmrc
verbose config file /usr/etc/npmrc
silly exec /usr/bin/node "/usr/lib/node_modules/npm/bin/npm-get-uid-gid.js" "kuno" 0
silly output from getuid/gid {"uid":1000,"gid":0}
silly output from getuid/gid
verbose into /usr/lib [ 'geoip' ]
@kuno
kuno / npm-debub.log
Created August 3, 2011 23:12
registry json errorl og
info it worked if it ends with ok
verbose cli [ 'node', '/usr/bin/npm', 'install', '-g', 'socket.io' ]
info using npm@1.0.22
info using node@v0.4.10
verbose config file /root/.npmrc
verbose config file /usr/etc/npmrc
silly exec /usr/bin/node "/usr/lib/node_modules/npm/bin/npm-get-uid-gid.js" "nobody" 0
silly output from getuid/gid {"uid":99,"gid":0}
silly output from getuid/gid
verbose into /usr/lib [ 'socket.io' ]
@kuno
kuno / PKGBUILD
Created September 12, 2011 00:23
v8-current with version
pkgname=v8-current
pkgbasename=v8
pkgver=3.6.2
pkgrel=1
pkgdesc='A fast and modern javascript engine'
arch=('i686' 'x86_64')
url='http://code.google.com/p/v8'
license=('BSD')
makedepends=('subversion' 'scons')
@kuno
kuno / dart.txt
Created September 22, 2011 23:00 — forked from paulmillr/dart.md
Leaked internal google dart email
---------- Forwarded message ----------
From: Mark S. Miller <erights@google.com>
Date: Tue, Nov 16, 2010 at 3:44 PM
Subject: "Future of Javascript" doc from our internal "JavaScript Summit"
last week
To: javascript-standard@google.com
On November 10th and 11th, a number of Google teams representing a variety
of viewpoints on client-side languages met to agree on a common vision for
the future of Javascript.
@kuno
kuno / amazon_sender.py
Created September 26, 2011 12:51 — forked from amix/amazon_sender.py
Amazon SES helper script using boto
# -*- coding: utf-8 -*-
"""
amazon_sender.py
~~~~~~~~
Python helper class that can send emails using Amazon SES and boto.
The biggest feature of this class is that encodings are handled properly.
It can send both text and html emails.
This implementation is using Python's standard library (which opens up for a lot more options).
import re
# http://atomboy.isa-geek.com/plone/Members/acoil/programing/double-metaphone
from metaphone import dm as double_metaphone
# get the Redis connection
from jellybean.core import redis
import models
# Words which should not be indexed
# Author: Pieter Noordhuis
# Description: Simple demo to showcase Redis PubSub with EventMachine
#
# Update 7 Oct 2010:
# - This example does *not* appear to work with Chrome >=6.0. Apparently,
# the WebSocket protocol implementation in the cramp gem does not work
# well with Chrome's (newer) WebSocket implementation.
#
# Requirements:
# - rubygems: eventmachine, thin, cramp, sinatra, yajl-ruby