Skip to content

Instantly share code, notes, and snippets.

@jonniedarko
jonniedarko / .inputrc
Last active September 25, 2015 13:46
"\e[A": history-search-backward
"\e[B": history-search-forward
set show-all-if-ambiguous on
set completion-ignore-case on
[[ $- = *i* ]] && bind TAB:menu-complete
@jonniedarko
jonniedarko / reverse-proxy-server.js
Last active August 29, 2015 14:26
A very basic reverse proxy server
var http = require('http'),
httpProxy = require('http-proxy'),
proxy = httpProxy.createProxyServer({});
var url = require('url');
http.createServer(function (req, res) {
var pathname = url.parse(req.url).pathname;
console.log('pathname', pathname);
var conversationsPath = '/api/conversations';
var discoverPath = '/api/discover';
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'