most of these require logout/restart to take effect
# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
# Set a shorter Delay until key repeat| TotalTerminal | |
| Quake style dropdown terminal. [website] | |
| Add key "LSUIElement" with value "1" to "/Applications/Utilities/Terminal.app/Contents/Info.plist" to hide dock icon and alt+tab icon | |
| Run the command "defaults write com.apple.Terminal TotalTerminalCloseWindowsOnStart -bool YES" to hide the initial window on total terminal startup |
| require 'rubygems' | |
| require 'chinese_pinyin' | |
| name = [] | |
| cp = false | |
| def p(z) | |
| pinyin = Pinyin.t(z, '') | |
| pinyin[0] = pinyin[0].upcase | |
| pinyin |
| require 'rubygems' | |
| require 'chinese_pinyin' | |
| name = [] | |
| cp = false | |
| def p(z) | |
| pinyin = Pinyin.t(z, splitter: '') | |
| pinyin[0] = pinyin[0].upcase | |
| pinyin |
| # Rime alternative settings | |
| # encoding: utf-8 | |
| # | |
| # difference from default settings: | |
| # 1. ascii-style punctuation in half-shape mode | |
| # 2. [ ] as paging keys | |
| # | |
| # save this file as: | |
| # (Linux) ~/.config/ibus/rime/alternative.yaml | |
| # (Mac OS) ~/Library/Rime/alternative.yaml |
| # luna_pinyin.custom.yaml | |
| # | |
| # 【朙月拼音】模糊音定製模板 | |
| # 佛振配製 :-) | |
| # | |
| # 位置: | |
| # ~/.config/ibus/rime (Linux) | |
| # ~/Library/Rime (Mac OS) | |
| # %APPDATA%\Rime (Windows) | |
| # |
| # luna_pinyin.custom.yaml | |
| # | |
| # 在【朙月拼音】裏使用Emoji表情 | |
| # | |
| # 保存到Rime用戶文件夾後,重新部署生效 | |
| # ~/.config/ibus/rime (linux) | |
| # ~/Library/Rime (macos) | |
| # %APPDATA%\Rime (windows) | |
| # | |
| # 如果目標文件已經包含其他修改內容,只需按照縮進合併 patch: 以下的部分 |
| # Basic Strongswan ikev2 server setup | |
| * paltform: atlantic.net ubuntu 14.04 x64 | |
| * the commands below are run with root account | |
| ## Strongswan | |
| ``` | |
| apt-get install strongswan | |
| apt-get install iptables iptables-persistent | |
| ``` |
| # remove | |
| /usr/libexec/PlistBuddy -c 'Add :LSUIElement bool true' /Applications/iTerm.app/Contents/Info.plist | |
| # restore | |
| /usr/libexec/PlistBuddy -c 'Delete :LSUIElement' /Applications/iTerm.app/Contents/Info.plist |