Skip to content

Instantly share code, notes, and snippets.

border / Makefile
Created Jan 12, 2011
json example in golang
View Makefile
include $(GOROOT)/src/
GOFMT=gofmt -spaces=true -tabindent=false -tabwidth=4
$(GC) jsontest.go
$(LD) -o jsontest.out jsontest.$O
$(GOFMT) -w jsontest.go
pksunkara / config
Last active Jul 6, 2022
Sample of git config file (Example .gitconfig) (Place them in $XDG_CONFIG_HOME/git)
View config
name = Pavan Kumar Sunkara
email =
username = pksunkara
defaultBranch = master
editor = nvim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
pager = delta
michiel / cors-nginx.conf
Created Jul 5, 2011
Wide-open CORS config for nginx
View cors-nginx.conf
# Wide-open CORS config for nginx
location / {
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' '*';
artero / launch_sublime_from_terminal.markdown
Last active Jan 21, 2022 — forked from olivierlacan/launch_sublime_from_terminal.markdown
Launch Sublime Text 2 from the Mac OS X Terminal
View launch_sublime_from_terminal.markdown

Launch Sublime Text 2 from the Mac OS X Terminal

Sublime Text 2 ships with a CLI called subl (why not "sublime", go figure). This utility is hidden in the following folder (assuming you installed Sublime in /Applications like normal folk. If this following line opens Sublime Text for you, then bingo, you're ready.

open /Applications/Sublime\ Text\

You can find more (official) details about subl here:



Stevey's Google Platforms Rant

I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.

I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't real

simme / Install_tmux
Created Oct 19, 2011
Install and configure tmux on Mac OS X
View Install_tmux
# First install tmux
brew install tmux
# For mouse support (for switching panes and windows)
# Only needed if you are using (iTerm has mouse support)
Then install
# More on mouse support
View htmlemailboilerplate.html
<html><head><title></title><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
* ========================================================================
* Some cross-device, client-specific styles, courtesy of CampaignMonitor
* ========================================================================
#outlook a { padding: 0; } /* Force Outlook to provide a "view in browser" button. */
body { width: 100% !important; }
mourner / codility-demo.js
Created Jan 7, 2012
Codility demo tests solutions
View codility-demo.js
// 100-score solution for
function equi(array) {
var i,
len = array.length,
sum = 0,
leftSum = 0,
for (i = 0; i < len; i++) {
anonymous / db.go
Created Jan 24, 2012
Go SDK for Dropbox
View db.go
package dropbox
import (
View app.js
var application_root = __dirname,
express = require("express"),
path = require("path"),
mongoose = require('mongoose');
var app = express.createServer();
// database