Skip to content

Instantly share code, notes, and snippets.

View adblock.conf
# Add below line to merge a basic configuration file
#!PROXY-OVERRIDE:adblock.conf
[General]
skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.0.0.0/8, localhost, *.local, e.crashlytics.com
bypass-tun = 10.0.0.0/8, 172.0.0.0/8, 0.0.0.0/8, 1.0.0.0/9, 1.160.0.0/11, 1.192.0.0/11, 10.0.0.0/8, 14.0.0.0/11, 14.96.0.0/11, 14.128.0.0/11, 14.192.0.0/11, 27.0.0.0/10, 27.96.0.0/11, 27.128.0.0/9, 36.0.0.0/10, 36.96.0.0/11, 36.128.0.0/9, 39.0.0.0/11, 39.64.0.0/10, 39.128.0.0/10, 42.0.0.0/8, 43.224.0.0/11, 45.64.0.0/10, 47.64.0.0/10, 49.0.0.0/9, 49.128.0.0/11, 49.192.0.0/10, 54.192.0.0/11, 58.0.0.0/9, 58.128.0.0/11, 58.192.0.0/10, 59.32.0.0/11, 59.64.0.0/10, 59.128.0.0/9, 60.0.0.0/10, 60.160.0.0/11, 60.192.0.0/10, 61.0.0.0/10, 61.64.0.0/11, 61.128.0.0/10, 61.224.0.0/11, 100.64.0.0/10, 101.0.0.0/9, 101.128.0.0/11, 101.192.0.0/10, 103.0.0.0/10, 103.192.0.0/10, 106.0.0.0/9, 106.224.0.0/11, 110.0.0.0/7, 112.0.0.0/9, 112.128.0.0/11, 112.192.0.0/10, 113.0.0.0/9, 113.128.0.0/11, 113.192.0.0/10, 114.0.0.0/9, 114.128.0.0/11, 114.192.0.
@imcoddy
imcoddy / leetcode-enhancer.js
Last active Nov 9, 2015
Enhance my leetcode experience
View leetcode-enhancer.js
// ==UserScript==
// @name Leetcode Enhancer
// @namespace http://www.github.com/imcoddy
// @version 0.1.1
// @description Enhance leetcode website
// @author imcoddy
// @match https://leetcode.com/problemset/algorithms/
// @match https://leetcode.com/problems/*
// @match https://leetcode.com/tag/*
// @grant none
View surge_main.conf
// DON'T FORGET TO IMPORT proxy.conf TOO
[General]
loglevel = notify
skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12,127.0.0.0/24
bypass-tun = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12,127.0.0.0/24
// DNS OVERRIDE, REMOVE # IF YOU NEED
# dns-server = 223.6.6.6,223.5.5.5,114.114.114.114,114.114.115.115
View private.xml
<?xml version="1.0"?>
<root>
<item>
<name>F19 to F19</name>
<appendix>(F19 to Hyper (ctrl+shift+cmd+opt) + F19 Only, F19)</appendix>
<identifier>private.f192f19</identifier>
<autogen>
--KeyOverlaidModifier--
KeyCode::F19,
KeyCode::COMMAND_L,
View keybase.md

Keybase proof

I hereby claim:

  • I am imcoddy on github.
  • I am imcoddy (https://keybase.io/imcoddy) on keybase.
  • I have a public key whose fingerprint is 82ED 90A8 3A64 2486 C5E4 D37A 2D1C D43D E844 33DF

To claim this, I am signing this object:

View Karabiner_Private_For_Filco_Minila.xml
<?xml version="1.0"?>
<root>
<!-- 设备定义 -->
<devicevendordef>
<vendorname>FILCO_MINILA</vendorname>
<vendorid>0x0a5c</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>MINILA_KEYBOARD</productname>
<productid>0x8502</productid>
View .cvimrc
set autoupdategist
set completeonopen
set defaultnewtabpage
set dimhintcharacters
set incsearch
set linkanimations
set localconfig
set noautofocus
set nochangelog
set nocncpcompletion
View osx_ramdisk.sh
#!/bin/bash
# Size at the end is * 2048 where 2048 = 1 MB, so 1572864 = 768 MB
#DISK=`/usr/bin/hdiutil attach -nobrowse -nomount ram://1572864`
DISK=`/usr/bin/hdiutil attach -nobrowse -nomount ram://2097152`
/usr/sbin/diskutil erasevolume HFS+ "RamDiskCache" $DISK
CACHEDIR="/Volumes/RamDiskCache/$USER"
View .cVimrc
" Settings
set noautofocus
set cncpcompletion
set nosmoothscroll
set nohud
set autohidecursor
set typelinkhints
let scrollduration = 10
let searchlimit = 40
View huobitrader.user.js
// ==UserScript==//
// @name Huobi Trade Enhancer
// @namespace https://www.huobi.com
// @version 0.3.1
// @include https://www.huobi.com/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// ==/UserScript==
// add fund in and out to calculate average price
var total_cny = 1024; //TODO set it to your total fund in.