Skip to content

Instantly share code, notes, and snippets.

Waiting for autumn

Wang Dàpéng wong2

Waiting for autumn
View GitHub Profile
mynameisfiber / gist:2853066
Created Jun 1, 2012
Golang http close body blocking problem
View gist:2853066
package main
import (
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:


start new with session name:

tmux new -s myname
piscisaureus /
Created Aug 13, 2012
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url =

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

lepture /
Last active Oct 8, 2015





反攻 反攻 反攻大陸去

nikcub /
Created Oct 4, 2012
Facebook PHP Source Code from August 2007
ravageralpha /
Created Oct 27, 2012
shell script get subtitle from
# Author: RA <>
echo "Usage:$(basename $0) [eng] files..."
[ $# -eq 0 ] && USAGE && exit 0
olasitarska /
Created Nov 18, 2012
Builds epub book out of Paul Graham's essays.
# -*- coding: utf-8 -*-
Builds epub book out of Paul Graham's essays:
Author: Ola Sitarska <>
Copyright: Licensed under the GPL-3 (
This script requires python-epub-library:
dypsilon /
Last active Sep 3, 2021
A badass list of frontend development resources I collected over time.
JoelBesada /
Last active Nov 22, 2020
Backtick Example Command

This is an example command for Backtick. A Backtick command consists of some executable JavaScript and a bit of metadata in JSON.

Here are the required steps to create a command:

  1. Create a new Gist with a command.js and command.json file, or simply fork this one.

  2. Write your JavaScript in command.js. This will be injected into and executed on the page the user is currently on when they run it.

  3. Add some metadata to the command.json file:

  • name: The name of the command.
bomberstudios /
Last active Sep 4, 2021
A list of Sketch plugins hosted at GitHub, in no particular order.