Skip to content

Instantly share code, notes, and snippets.

@kysnm
kysnm / install.sh
Created May 28, 2012 03:42 — forked from cloud8421/install.sh
Install tmux 1.6 on Ubuntu 10.04 with checkinstall
wget -q -O - https://raw.github.com/gist/2204072/4fe9d4a62921865005ab19ee4f90c67f27ec58cb/install_tmux_1.6_on_ubuntu_10.04.sh | sudo bash
@kysnm
kysnm / hello.js
Created December 3, 2012 06:51 — forked from shigeki/hello.js
第1回Node.js入門勉強会 レポート課題
var http = require('http');
server = http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\n');
server.close();
});
server.listen(8080, 0, function () {
console.log('Server running at http://localhost:8080/');
});
@kysnm
kysnm / pre-commit
Last active August 29, 2015 14:10 — forked from naoty/pre-commit
#!/usr/bin/env ruby
# filter by extension
def extname_filter(files, extnames = ['.rb'])
files.split($/).select do |path|
extnames.include?(File.extname(path))
end
end
# grep 'binding.pry' (avoid a comment out)