Skip to content

Instantly share code, notes, and snippets.

View iqiancheng's full-sized avatar
🌴
On vacation

千橙 iqiancheng

🌴
On vacation
View GitHub Profile
{
"alignment_chars" : ["=", ":"]
}
@iqiancheng
iqiancheng / SwitchyOmega_Conditions_Auto_Swich_List.pac
Last active August 29, 2015 14:25
SwitchyOmega Conditions Auto Swich List
var FindProxyForURL = function(init, profiles) {
return function(url, host) {
"use strict";
var result = init, scheme = url.substr(0, url.indexOf(":"));
do {
result = profiles[result];
if (typeof result === "function") result = result(url, host, scheme);
} while (typeof result !== "string" || result.charCodeAt(0) === 43);
return result;
};
@iqiancheng
iqiancheng / SwitchyOmega_Switchy_Rules.txt
Last active November 3, 2018 04:56
this rule list for SwitchyOmega Named "Auto"
[SwitchyOmega Conditions]
@with result
*.googleusercontent.com +direct
*.google.com +Shadowsocks
*.ykimg.com +Shadowsocks
*.facebook.net +Shadowsocks
*.angularjs.org +Shadowsocks
*.kickresume.com +Shadowsocks
*.youtube-nocookie.com +Shadowsocks
https://github.com/search?l=Java&q=oauth-client&type=Repositories&utf8=%E2%9C%93
@iqiancheng
iqiancheng / script.js
Last active August 29, 2015 14:27 — forked from binux/script.js
// vim: set et sw=2 ts=2 sts=2 ff=unix fenc=utf8:
// Author: Binux<i@binux.me>
// http://binux.me
// Created on 2013-11-11 18:50:58
(function(){
function getOffset(elem) {
var top = 0;
var left = 0;
do {
// https://pac.itzmx.com
var proxy = "PROXY server01.pac.itzmx.com:25;";
var domains = {
"blogsmithmedia.com": 1,
"keepvid.com": 1,
"unblockdmm.com": 1,
"lvv2.com": 1,
"raw.githubusercontent.com": 1,
https://pac.itzmx.com/
主:https://pac.itzmx.com/abc.pac
备:https://pac.itzmx.com/adc.pac
#! /bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
#===============================================================================================
# System Required: Debian or Ubuntu (32bit/64bit)
# Description: Install Shadowsocks-libev server for Debian or Ubuntu
# Author: Teddysun <i@teddysun.com>
# Thanks: @m0d8ye <https://twitter.com/m0d8ye>
# Intro: https://teddysun.com/358.html
#===============================================================================================
@iqiancheng
iqiancheng / centos6.5_nginx
Created June 29, 2016 08:12 — forked from ifels/centos6.5_nginx
centos 6.5 nginx安装与配置
第一步,在/etc/yum.repos.d/目录下创建一个源配置文件nginx.repo:
cd /etc/yum.repos.d/
vim nginx.repo
填写如下内容:
[nginx]
name=nginx repo
git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
git config --global --unset http.proxy
git config --global --unset https.proxy
npm config delete proxy