Skip to content

Instantly share code, notes, and snippets.

View 1a57danc3's full-sized avatar
⛱️
On vacation

Howard 1a57danc3

⛱️
On vacation
View GitHub Profile
@scturtle
scturtle / gist:3922633
Last active October 11, 2015 21:28
rss of “一个-韩寒”(ios)
# coding: utf-8
import os
import bottle
import requests
import PyRSS2Gen as gen
from datetime import timedelta, datetime
from multiprocessing.dummy import Pool
import urllib
import json
@shellexy
shellexy / fanfou.shellex.info.conf
Created June 6, 2012 14:57
nginx 反向代理推特官网移动版给 Chrome Lite/Mobile Safari 使用
# /etc/nginx/sites-available/fanfou.shellex.info
# 这儿假设的域名是 fanfou.shellex.info
# 请替换为实际的域名
server {
resolver 8.8.8.8;
listen 443;
server_name fanfou.shellex.info;
ssl on;
@hellerbarde
hellerbarde / latency.markdown
Created May 31, 2012 13:16 — forked from jboner/latency.txt
Latency numbers every programmer should know

Latency numbers every programmer should know

L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns             
Compress 1K bytes with Zippy ............. 3,000 ns  =   3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns  =  20 µs
SSD random read ........................ 150,000 ns  = 150 µs

Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs

@dpogue
dpogue / Custom.css
Created April 9, 2012 03:51
Google Chrome user style for Gnome 3.4 overlay scrollbars
html::-webkit-scrollbar {
background-color:#d6d6d6;
}
html::-webkit-scrollbar {
width:13px;
height:13px;
}
html::-webkit-scrollbar-button {
display:none;
}

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: