Skip to content

Instantly share code, notes, and snippets.

@imcoddy
imcoddy / .cvimrc
Last active January 16, 2022 12:31 — forked from calorie/.cvimrc
set autoupdategist
set completeonopen
set defaultnewtabpage
set dimhintcharacters
set incsearch
set linkanimations
set localconfig
set noautofocus
set nochangelog
set nocncpcompletion
@imcoddy
imcoddy / surge_main.conf
Created October 26, 2015 02:45 — forked from jason5ng32/surge.conf
Surge Configs
// 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
@imcoddy
imcoddy / .gitignore
Created June 4, 2012 13:17
sina weibo OAuth with node-oauth for node.js+express
node_modules
config.js
@imcoddy
imcoddy / private.xml
Last active August 29, 2015 14:25 — forked from lucifr/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,
<?xml version="1.0"?>
<root>
<!-- 设备定义 -->
<devicevendordef>
<vendorname>FILCO_MINILA</vendorname>
<vendorid>0x0a5c</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>MINILA_KEYBOARD</productname>
<productid>0x8502</productid>
#!/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"
@imcoddy
imcoddy / .cVimrc
Last active August 29, 2015 14:20
" Settings
set noautofocus
set cncpcompletion
set nosmoothscroll
set nohud
set autohidecursor
set typelinkhints
let scrollduration = 10
let searchlimit = 40