Skip to content

Instantly share code, notes, and snippets.


Griffin Qiu griffinqiu

  • Chengdu
View GitHub Profile
griffinqiu / vim
Last active Mar 30, 2018
Search and replace to add `params` in controller tests when upgrading rails to 5.1 in Vim
View vim
/\v^(\s+)(get|post|put|patch|destroy) :(\w+), ([^params].+[^,])$
:%s//\1\2 :\3, params: { \4 }/g
:%s/\v^(\s+)(get|post|put|patch|destroy) :(\w+), ([^params].+[^,])$/\1\2 :\3, params: { \4 }/g
griffinqiu / surge_main.conf
Created Nov 24, 2015 — forked from jason5ng32/surge.conf
Surge Configs ( Both 2 files are needed )
View surge_main.conf
loglevel = notify
skip-proxy =,,,,
bypass-tun =,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
griffinqiu /
Created Nov 24, 2015 — forked from janlay/
Yet another config for


  1. Modify index.txt with your output path and proxy info
  2. Use Text Builder to build configuration for Surge: $ text-builder -index /path/to/index.txt
  3. Import configuration via AirDrop/iTunes/Dropbox/iCloud

There are no guarantees, no any support. Use it at your own risk.