Skip to content

Instantly share code, notes, and snippets.

首先设置语言

cd /usr/share/locales
sudo ./install-language-pack zh_CN

安装RUBY必要的环境依赖

sudo apt-get update
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libpq-dev imagemagick libmagickwand-dev
@apprentice1988
apprentice1988 / gist:b8b3b059b48ad4f30fed
Created March 9, 2016 14:23
Add this to /etc/hosts to escape block
#######################################################################################
# Fork github highsee/Hosts
# __ __
# / \ / \
# \__/ | |
# __ | | __
# / \______| | ________ ________ __| |__ ________
# | ______ | / __ \ / _____| |__ __| / _____|
@apprentice1988
apprentice1988 / config.md
Last active October 10, 2016 06:08
aliyun 配置rails, nginx, unicorn环境

首先设置语言

cd /usr/share/locales
sudo ./install-language-pack zh_CN

安装RUBY必要的环境依赖

sudo apt-get update
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libpq-dev imagemagick libmagickwand-dev
@apprentice1988
apprentice1988 / keymap.txt
Created November 1, 2017 07:25
sublime Keymap - User
[
{ "keys": ["ctrl+j"], "command": "move_to", "args": {"to": "bol", "extend": false} },
{ "keys": ["ctrl+l"], "command": "move_to", "args": {"to": "eol", "extend": false} },
{ "keys": ["command+b"], "command": "erb" },
{ "keys": ["command+alt+n"], "command": "quick_create_file" },
{ "keys": ["command+k"], "command": "toggle_side_bar" },
{ "keys": ["ctrl+u"], "command": "delete_word", "args": { "forward": false, "sub_words": true } },
{ "keys": ["ctrl+'"], "command": "delete_word", "args": { "forward": true, "sub_words": true } },
{ "keys": ["ctrl+;"], "command": "scroll_lines", "args": {"amount": 10.0} },
{ "keys": ["ctrl+/"], "command": "scroll_lines", "args": {"amount": -10.0} },