As configured in my dotfiles.
start new:
tmux
start new with session name:
| /* | |
| 12306 Auto Query => A javascript snippet to help you book tickets online. | |
| Copyright (C) 2011 Jingqin Lynn | |
| Includes jQuery | |
| Copyright 2011, John Resig | |
| Dual licensed under the MIT or GPL Version 2 licenses. | |
| http://jquery.org/license | |
| Includes Sizzle.js |
| 王 | |
| 江 | |
| 周 | |
| 胡 | |
| 刘 | |
| 李 | |
| 吴 | |
| 毛 | |
| 温 | |
| 习 |
| <?php | |
| $tel_no = $_GET['hm']; | |
| $c = $_GET['c']?$_GET['c']:0; | |
| $c++; | |
| ?> | |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>迷你轰炸台 - 短信炸弹 - BETA!</title> | |
| <?php |
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| Vagrant::Config.run do |config| | |
| config.vm.box = "lucid32" | |
| # config.vm.box_url = "http://files.vagrantup.com/lucid32.box" | |
| config.vm.forward_port 80, 8080 | |
| config.vm.network :hostonly, "192.168.10.10" |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| #ack is a tool like grep, designed for programmers with large trees of heterogeneous source code | |
| #to install ack, see http://betterthangrep.com/ | |
| #to use ack, launch terminal (mac osx) and type 'ack <some_keywords>' | |
| #ack will search all files in the current directory & sub-directories | |
| #here's how I have my config file setup. this file is located on mac osx here | |
| # ~/.ackrc | |
| # Always sort the files |
| //author: Sun, Junyi (weibo.com/treapdb) | |
| //usage: node --nouse-idle-notification --expose-gc --max-old-space-size=8192 memcached.js | |
| var config ={ | |
| port: 11211, | |
| max_memory: 300 // default 100M bytes | |
| } | |
| var net = require('net'); | |
| var LRU = function (max) { // this LRU implementaion is based on https://github.com/chriso/lru |
| import httplib | |
| import ssl | |
| import socket | |
| import sys | |
| import urllib2 | |
| class HTTPSConnectionV3(httplib.HTTPSConnection): | |
| def __init__(self, *args, **kwargs): | |
| httplib.HTTPSConnection.__init__(self, *args, **kwargs) |
| # Monitor HTTP requests being made from your machine with a one-liner.. | |
| # Replace "en1" below with your network interface's name (usually en0 or en1) | |
| sudo tcpdump -i en1 -n -s 0 -w - | grep -a -o -E "Host\: .*|GET \/.*" | |
| # OR.. to be able to use as "httpdump" from anywhere, drop this into ~/.bash_profile: | |
| # (again replace "en1" with correct network interface name) | |
| alias httpdump='sudo tcpdump -i en1 -n -s 0 -w - | grep -a -o -E "Host\: .*|GET \/.*"' | |
| # All the above tested only on OS X. |