Skip to content

Instantly share code, notes, and snippets.

Avatar
🌴
On vacation

千橙 iqiancheng

🌴
On vacation
View GitHub Profile
@iqiancheng
iqiancheng / SwitchyOmega_Conditions_Auto_Swich_List.pac
Last active Aug 29, 2015
SwitchyOmega Conditions Auto Swich List
View SwitchyOmega_Conditions_Auto_Swich_List.pac
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 Nov 3, 2018
this rule list for SwitchyOmega Named "Auto"
View SwitchyOmega_Switchy_Rules.txt
[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
View search oauth2 client in java code
https://github.com/search?l=Java&q=oauth-client&type=Repositories&utf8=%E2%9C%93
View 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 {
View pac_gfw
// 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,
View pac科学上网
https://pac.itzmx.com/
主:https://pac.itzmx.com/abc.pac
备:https://pac.itzmx.com/adc.pac
View shadowsocks-libev-debian.sh
#! /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 Jun 29, 2016 — forked from ifels/centos6.5_nginx
centos 6.5 nginx安装与配置
View centos6.5_nginx
第一步,在/etc/yum.repos.d/目录下创建一个源配置文件nginx.repo:
cd /etc/yum.repos.d/
vim nginx.repo
填写如下内容:
[nginx]
name=nginx repo
View git 设置和取消代理
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