Skip to content

Instantly share code, notes, and snippets.


Griffin Qiu griffinqiu

Block or report user

Report or block griffinqiu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
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.

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 / 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
You can’t perform that action at this time.