Skip to content

Instantly share code, notes, and snippets.

@luoph
luoph / zsh-custom-plugins
Created April 11, 2019 08:39
zsh-custom-plugins.gitmodules
[submodule "custom/plugins/zsh-completions"]
path = custom/plugins/zsh-completions
url = https://github.com/zsh-users/zsh-completions.git
[submodule "custom/plugins/zsh-syntax-highlighting"]
path = custom/plugins/zsh-syntax-highlighting
url = https://github.com/zsh-users/zsh-syntax-highlighting.git
[submodule "custom/plugins/zsh-autosuggestions"]
path = custom/plugins/zsh-autosuggestions
@luoph
luoph / jenkins-plugin-tsinghua-mirror.json
Last active April 8, 2019 08:34
Tsinghua mirror for Jenkins
This file has been truncated, but you can view the full file.
updateCenter.post(
@luoph
luoph / panda.conf
Last active April 9, 2016 06:08
Panda DNS for Surge Config
[General]
skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10, localhost, *.local
bypass-tun = 0.0.0.0/8, 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12
dns-server = 182.254.158.191, 120.27.30.176
loglevel = notify
[Host]
##################################################
# https://github.com/gongjianhui/AppleDNS/blob/master/List.md
###################################################
@luoph
luoph / nohost.conf
Last active March 7, 2016 03:45
Surge config without hosts
[General]
# warning, notify, info, verbose
loglevel = notify
bypass-system = true
skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, localhost, *.local, e.crashlynatics.com
bypass-tun = 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.0/10, 115.0.0.0/8, 116.0.0.0/8, 1
@luoph
luoph / update_surge_hosts_config.py
Last active March 7, 2016 03:44
update surge hosts config
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Update hosts for *nix
Author: [email protected]
Version: 0.0.1
Date: 2016-03-02
'''
import string
@luoph
luoph / 0_reuse_code.js
Created November 24, 2015 02:12
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@luoph
luoph / UpdateEnvironmentPlist.sh
Created November 23, 2015 07:27 — forked from SQiShER/UpdateEnvironmentPlist.sh
Two simple commands to resolve problems with Maven installed via Homebrew
defaults write ~/.MacOSX/environment.plist M2_HOME `brew --prefix maven`/libexec
defaults write ~/.MacOSX/environment.plist M2 `brew --prefix maven`/libexec/bin
export M2=`brew --prefix maven`/libexec/bin
export M2_HOME=`brew --prefix maven`/libexec
@luoph
luoph / reset-xcode-bundle-setting.sh
Created November 12, 2015 07:09
reset xcode bundle setting
defaults delete com.apple.dt.Xcode DVTPlugInManagerNonApplePlugIns-Xcode-7.1.1
@luoph
luoph / fix Errno::EPERM for EL Capitan
Created October 19, 2015 04:06
fix Errno::EPERM for EL Capitan
gem install 后面增加 -n /usr/local/bin:
sudo gem install -n /usr/local/bin cocoapods
@luoph
luoph / reset-xcode-settings.sh
Created August 22, 2015 08:17
reset xcode settings
defaults delete com.apple.dt.Xcode