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
# 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 |
# 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 | |
``` |
# luna_pinyin.custom.yaml | |
# | |
# 在【朙月拼音】裏使用Emoji表情 | |
# | |
# 保存到Rime用戶文件夾後,重新部署生效 | |
# ~/.config/ibus/rime (linux) | |
# ~/Library/Rime (macos) | |
# %APPDATA%\Rime (windows) | |
# | |
# 如果目標文件已經包含其他修改內容,只需按照縮進合併 patch: 以下的部分 |
# luna_pinyin.custom.yaml | |
# | |
# 【朙月拼音】模糊音定製模板 | |
# 佛振配製 :-) | |
# | |
# 位置: | |
# ~/.config/ibus/rime (Linux) | |
# ~/Library/Rime (Mac OS) | |
# %APPDATA%\Rime (Windows) | |
# |
# 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 |
require 'rubygems' | |
require 'chinese_pinyin' | |
name = [] | |
cp = false | |
def p(z) | |
pinyin = Pinyin.t(z, splitter: '') | |
pinyin[0] = pinyin[0].upcase | |
pinyin |
require 'rubygems' | |
require 'chinese_pinyin' | |
name = [] | |
cp = false | |
def p(z) | |
pinyin = Pinyin.t(z, '') | |
pinyin[0] = pinyin[0].upcase | |
pinyin |
#apt-get install --yes apache2 php5 php5-json php5-gd php5-sqlite curl libcurl3 libcurl3-dev php5-curl php5-common php-xml-parser | |
apt-get install --yes apache2 php5 php5-json php5-gd php5-sqlite curl libcurl3 libcurl3-dev php5-curl php5-common | |
apt-get install --yes sqlite mp3info zip | |
wget http://download.owncloud.org/releases/owncloud-4.0.3.tar.bz2 | |
mv owncloud-4.0.3.tar.bz2 owncloud.tar.bz2 | |
tar -xjf owncloud.tar.bz2 | |
#cp -r owncloud /var/www |
一,安裝簡體->繁體映射碼表:(該項目由opencc維護:http://code.google.com/p/opencc) | |
文件1:http://code.google.com/p/rimeime/source/browse/trunk/misc/opencc/data/simp_to_trad_characters.ocd | |
文件2:http://code.google.com/p/rimeime/source/browse/trunk/misc/opencc/data/simp_to_trad_phrases.ocd | |
安裝位置:共享資料目錄 | |
如:/Library/Input Methods/Squirrel.app/Contents/SharedSupport/opencc | |
二,添加opencc簡繁配置文件: | |
詳見:zhs2zht.ini | |
安裝位置:共享資料目錄 | |
如:/Library/Input Methods/Squirrel.app/Contents/SharedSupport/opencc |