Skip to content

Instantly share code, notes, and snippets.

Avatar
🌴
On vacation

千橙 iqiancheng

🌴
On vacation
View GitHub Profile
@iqiancheng
iqiancheng / git.md
Created Jul 8, 2016 — forked from suziewong/git.md
Git的多账号如何处理? 1.同一台电脑多个git(不同网站的)账号 2.同一台电脑多个git(同一个网站的比如github的)多个账号
View git.md

1.同一台电脑可以有2个git账号(不同网站的)

首先不同网站,当然可以使用同一个邮箱,比如我的github,gitlab,bitbucket的账号都是monkeysuzie[at]gmail.com 这时候不用担心密钥的问题,因为这些网站push pull 认证的唯一性的是邮箱 比如我的windows 上 2个账号一个gitlab 一个github (用的都是id_rsa)

host github
  hostname github.com
  Port 22
host gitlab.zjut.com
View gist:715c30b409943c673649406a1c0c011b
package com.foocoders.text;
import java.text.AttributedCharacterIterator;
import java.text.DateFormatSymbols;
import java.text.FieldPosition;
import java.text.NumberFormat;
import java.text.ParseException;
import java.text.ParsePosition;
import java.text.SimpleDateFormat;
import java.util.Calendar;
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
@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 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
#===============================================================================================
View pac科学上网
https://pac.itzmx.com/
主:https://pac.itzmx.com/abc.pac
备:https://pac.itzmx.com/adc.pac
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 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 search oauth2 client in java code
https://github.com/search?l=Java&q=oauth-client&type=Repositories&utf8=%E2%9C%93
@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;
};