sudo update-alternatives --config editor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# nginx – this script starts and stops the nginx daemon | |
# | |
# chkconfig: - 85 15 | |
# description: Nginx is an HTTP(S) server, HTTP(S) reverse \ | |
# proxy and IMAP/POP3 proxy server | |
# processname: nginx | |
# config: /opt/nginx/conf/nginx.conf | |
# pidfile: /opt/nginx/logs/nginx.pid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
patch: | |
schema_list: | |
- schema: boshiamy_t # 嘸蝦米中文模式 | |
- schema: boshiamy_j # 嘸蝦米日文模式 | |
switches: | |
- name: ascii_mode | |
reset: 0 | |
states: [ 中文, 西文 ] | |
ascii_composer: | |
good_old_caps_lock: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Squirrel settings | |
# encoding: utf-8 | |
config_version: "0.22" | |
us_keyboard_layout: false | |
# for veteran chord-typist | |
chord_duration: 0.1 # seconds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
upstream [project name]_unicorn_socket { | |
server unix:/home/deploy/[project name]/shared/tmp/sockets/unicorn.sock fail_timeout=0; | |
} | |
server { | |
listen 80; | |
server_name 192.168.3.103; | |
root /home/deploy/[project name]/current/public; | |
client_max_body_size 5M; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# deb cdrom:[Ubuntu-Server 12.04 LTS _Precise Pangolin_ - Release i386 (20120424.1)]/ precise main restricted | |
#deb cdrom:[Ubuntu-Server 12.04 LTS _Precise Pangolin_ - Release i386 (20120424.1)]/ precise main restricted | |
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to | |
# newer versions of the distribution. | |
deb http://tw.archive.ubuntu.com/ubuntu/ precise main restricted | |
deb-src http://tw.archive.ubuntu.com/ubuntu/ precise main restricted |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ mysql -u adminusername -p | |
Enter password: | |
Welcome to the MySQL monitor. Commands end with ; or \g. | |
Your MySQL connection id is 5340 to server version: 3.23.54 | |
Type 'help;' or '\h' for help. Type '\c' to clear the buffer. | |
mysql> CREATE DATABASE databasename; | |
Query OK, 1 row affected (0.00 sec) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if &term =~ "xterm.*" | |
let &t_ti = &t_ti . "\e[?2004h" | |
let &t_te = "\e[?2004l" . &t_te | |
function XTermPasteBegin(ret) | |
set pastetoggle=<Esc>[201~ | |
set paste | |
return a:ret | |
endfunction | |
map <expr> <Esc>[200~ XTermPasteBegin("i") | |
imap <expr> <Esc>[200~ XTermPasteBegin("") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# install xcode command tool | |
xcode-select --install | |
# check | |
xcode-select -p | |
# install brew | |
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" | |
# check brew |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Upgrade | |
/opt/local/bin/pip2.7 install --upgrade flexget | |
#IOError: [Errno 28] No space left on device | |
mount -o remount,size=64M /tmp |
OlderNewer