仅为 GitHub 设置代理
git 代理
设置 git config --global http.https://github.com.proxy socks5://127.0.0.1:1086
设置完成后, ~/.gitconfig
文件中会增加以下条目:
[http "https://github.com"]
proxy = socks5://127.0.0.1:1086
设置 git config --global http.https://github.com.proxy socks5://127.0.0.1:1086
设置完成后, ~/.gitconfig
文件中会增加以下条目:
[http "https://github.com"]
proxy = socks5://127.0.0.1:1086
for i in `gem list --no-versions`; do sudo gem uninstall -aIx $i; done |
{ | |
"all": [ | |
{ "z y": "{repo}/branches/yours" }, | |
{ "z c": "{repo}/" }, | |
{ "z r": "{repo}/releases" }, | |
{ "z t": "{repo}/tags" }, | |
{ "z q": "{repo}/pulls" }, | |
{ "z b": "{repo}/branches" } | |
] | |
} |
sublime text 3:
1.plugins
2.C build
3.keymap
4.preferences
5.OS X command line tool
6.header omment snippet
{ | |
"all": [ | |
{ "f1": "#hotkey-settings" } | |
], | |
"{repo}": [ | |
{ "z b y": "{repo}/branches/yours" }, | |
{ "z b a": "{repo}/branches" }, | |
{ "z r": "{repo}/releases" }, | |
{ "z c": "{repo}" }, | |
{ "z p": "{repo}/pulls" } |
browser.tabs.insertAfterCurrent = true | |
browser.tabs.insertRelatedAfterCurrent = true | |
browser.tabs.loadBookmarksInTabs = true | |
browser.urlbar.openintab = true |
#!/usr/local/bin/python3 | |
# | |
# -d : no '-' in pwd | |
# | |
import random | |
import sys | |
pwdStrPool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
poolSize = len(pwdStrPool) |
//if循环中, 替代变量名来忽略对值的访问 | |
let base = 3 | |
let power = 10 | |
var answer = 1 | |
for _ in 1...power { | |
answer *= base | |
} | |
print("\(base) to the power of \(power) is \(answer)") | |
Atom Settings |
<key>Custom</key> | |
<dict> | |
<key>Delete Current Line</key> | |
<string>selectLine:, deleteBackward:</string> | |
<key>Duplicate Current Line</key> | |
<string>selectLine:, copy:, moveToEndOfLine:, insertNewline:, paste:, deleteBackward:</string> | |
</dict> |