As of 2013-05-16, you can generate API Access Tokens via the Web UI or via the GitHub API. All other authorization methods is deprecated.
-
Account Settings -> Personal access tokens -
"Generate new token" under "Personal access tokens"
As of 2013-05-16, you can generate API Access Tokens via the Web UI or via the GitHub API. All other authorization methods is deprecated.
Account Settings -> Personal access tokens
"Generate new token" under "Personal access tokens"
get_latest_release_number() { | |
curl --silent "https://github.com/$1/releases/latest" | sed 's#.*tag/\(.*\)".*#\1#' | |
} | |
# Usage | |
# $ get_latest_release_number "creationix/nvm" | |
# v0.34.0 |
#!/bin/bash | |
iconset_dir=tmp-$RANDOM.iconset | |
mkdir $iconset_dir | |
## 全部拷贝到命令行回车执行,执行结束之后去tmp.iconset查看十张图片是否生成好 | |
sips -z 16 16 $1 --out $iconset_dir/icon_16x16.png &> /dev/null | |
sips -z 32 32 $1 --out $iconset_dir/[email protected] &> /dev/null | |
sips -z 32 32 $1 --out $iconset_dir/icon_32x32.png &> /dev/null | |
sips -z 64 64 $1 --out $iconset_dir/[email protected] &> /dev/null |
Proxy 一般有2种协议,一种是 HTTP/HTTPS 协议,一种是 SOCKS 协议。优先使用 SOCKS 协议的 SOCKS5 版本。[2种协议的区别 待补充外部引用]
一般各平台的代理客户端除了提供一个本地的 socks5 Proxy ,还会提供一个本地的 http Proxy 。 在客户端相应设置中查看 socks5 协议监听的端口,HTTP Proxy 设置中查看 http 协议监听的端口。
注意:不少客户端提供混合模式,即
socks5
和http
端口号是同一个,所以不用费尽心思在软件设定中找单独的 http 端口设置功能了。
export PATH="/usr/local/sbin:$PATH:$HOME/bin" | |
export ZSH="$HOME/.oh-my-zsh" | |
ZSH_THEME="agnosterzak_black" | |
# 大小写敏感 | |
# CASE_SENSITIVE="true" | |
# Uncomment the following line to use hyphen-insensitive completion. |
var I18N = {}; | |
I18N.conf = { | |
/** | |
* 要翻译的页面正则 | |
*/ | |
rePageClass: /\b(vis-public|page-(dashboard|profile|account|new-repo|create-org)|homepage|signup|session-authentication|oauth)\b/, | |
/** | |
* 匹配 pathname 页面的正则 |
#!/bin/bash | |
cd ~/Library/Preferences/ | |
cp com.apple.HIToolbox.plist com.apple.HIToolbox.plist.bak | |
alias plistbuddy='/usr/libexec/PlistBuddy' | |
dict=$(plistbuddy -c "Print AppleEnabledInputSources" com.apple.HIToolbox.plist| grep -c "Dict") | |
for i in {0..$dict};do | |
if [ "$(plistbuddy -c "Print AppleEnabledInputSources:$i:KeyboardLayout\ Name" com.apple.HIToolbox.plist 2>/dev/null)" = "ABC" ] |
inoreader.com##.ad_title | |
inoreader.com##.ad_footer_remove | |
inoreader.com##[id^="leaderboard_ad-"] | |
inoreader.com###all_gad_57994 | |
以下规则能够隐藏"AdBlock Detected"弹出框,但是快捷键会失效 | |
inoreader.com##[id$=_wrapper].inno_dialog_modal:not([id*=dialog]):not(#xconfirm_wrapper) | |
inoreader.com##[id$=_modal_overlay].inno_dialog_modal_overlay:not([id*=dialog]) | |
注意: |