Skip to content

Instantly share code, notes, and snippets.

View chenshengzhi's full-sized avatar

Neil chenshengzhi

  • Xiamen, Fujian, China
View GitHub Profile
@chenshengzhi
chenshengzhi / github_custom_hotkyes.json
Last active April 13, 2024 13:40
Github Custom Hotkeys
{
"all": [
{ "z z": "#hotkey-settings" },
{ "z y": "{repo}/branches/yours" },
{ "z c": "{repo}/" },
{ "z r": "{repo}/releases" },
{ "z t": "{repo}/tags" },
{ "z q": "{repo}/pulls" },
{ "z b": "{repo}/branches" },
{ "r r": "{repo}/releases/new" }
@chenshengzhi
chenshengzhi / git_ssh_proxy.md
Last active November 8, 2024 08:31
git ssh 代理设置

仅为 GitHub 设置代理

git 代理

设置 git config --global http.https://git.521000.best.proxy socks5://127.0.0.1:1086
设置完成后, ~/.gitconfig 文件中会增加以下条目:

[http "https://github.com"]
    proxy = socks5://127.0.0.1:1086
@chenshengzhi
chenshengzhi / github_custom_hotkey_settings.json
Last active January 28, 2019 02:21
GitHub Custom Hotkey Settings
{
"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
@chenshengzhi
chenshengzhi / XcodeCustomKeyBinding.plist
Last active June 27, 2016 05:39
Xcode duplicate and delete line
<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>
@chenshengzhi
chenshengzhi / random_password.py
Last active February 10, 2017 11:41
random password
#!/usr/local/bin/python3
#
# -d : no '-' in pwd
#
import random
import sys
pwdStrPool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
poolSize = len(pwdStrPool)
Atom Settings
@chenshengzhi
chenshengzhi / .zshrc
Last active February 17, 2016 03:32
.zshrc
# Path to your oh-my-zsh installation.
export ZSH=~/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="robbyrussell"
# Uncomment the following line to use case-sensitive completion.
@chenshengzhi
chenshengzhi / gemUninstallAllPackets.sh
Created November 6, 2015 01:46
卸载所有gem包
for i in `gem list --no-versions`; do sudo gem uninstall -aIx $i; done
@chenshengzhi
chenshengzhi / macHideDockParameters.sh
Created November 5, 2015 00:58
mac dock 自动隐藏延迟设置
//不延迟
defaults write com.apple.Dock autohide-delay -float 0 && killall Dock
//恢复默认
defaults delete com.apple.Dock autohide-delay && killall Dock