From 73148a42ca8554f473f66a26295ab4461596d59f Mon Sep 17 00:00:00 2001 From: rockylin Date: Mon, 13 Aug 2018 10:52:42 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E5=85=AC=E5=85=B1=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Common.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Common.md diff --git a/Common.md b/Common.md new file mode 100644 index 0000000..c8ef307 --- /dev/null +++ b/Common.md @@ -0,0 +1,14 @@ +Centos +1. 备份原文件 +2. 下载新的Centos-Base.repo 到 /etc/yum.repos.d/ +3. 生成缓存 + +``` +mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak + +#CentOS 7 +wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo + +yum makecache +``` + From 2f6ca9452a8bb1055898ce958784ec35b782e7cf Mon Sep 17 00:00:00 2001 From: rockylin Date: Tue, 14 Aug 2018 09:35:33 +0800 Subject: [PATCH 2/5] add NPM settings --- Common.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Common.md b/Common.md index c8ef307..43f7d68 100644 --- a/Common.md +++ b/Common.md @@ -12,3 +12,7 @@ wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos- yum makecache ``` +NPM + +npm install -g cnpm -registry=https://registry.npm.taobao.org + From 6c0442ff030ab1591e4e402358bb6170ad9e3c47 Mon Sep 17 00:00:00 2001 From: rockylin Date: Sun, 19 Aug 2018 15:03:43 +0800 Subject: [PATCH 3/5] add Visual Studio Code Settings --- Common.md | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/Common.md b/Common.md index 43f7d68..5580ff9 100644 --- a/Common.md +++ b/Common.md @@ -1,4 +1,4 @@ -Centos +## Centos 1. 备份原文件 2. 下载新的Centos-Base.repo 到 /etc/yum.repos.d/ 3. 生成缓存 @@ -6,13 +6,34 @@ Centos ``` mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak -#CentOS 7 +# CentOS 7 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo yum makecache ``` -NPM +## NPM npm install -g cnpm -registry=https://registry.npm.taobao.org +## Visual Studio Code + +```json +{ + "[ruby]":{ + "editor.tabSize": 2, + "editor.detectIndentation": false, + "editor.insertSpaces": true, + "files.trimTrailingWhitespace": true + }, + "files.eol": "\n", + // "sublimeTextKeymap.promptV3Features": true, + "editor.multiCursorModifier": "ctrlCmd", + "editor.snippetSuggestions": "top", + "editor.formatOnPaste": true, + "window.zoomLevel": 0, + "extensions.ignoreRecommendations": false, + "git.ignoreMissingGitWarning": true, + "editor.fontSize": 16 +} +``` From 7610a9be50e6b85bc708b6421496d43a09509b77 Mon Sep 17 00:00:00 2001 From: loaderlin Date: Tue, 21 Aug 2018 09:29:31 +0800 Subject: [PATCH 4/5] Shadowsocks Settings Note --- Common.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Common.md b/Common.md index 5580ff9..a803c77 100644 --- a/Common.md +++ b/Common.md @@ -37,3 +37,13 @@ npm install -g cnpm -registry=https://registry.npm.taobao.org "editor.fontSize": 16 } ``` + +## ShadowsocksR + +部署Shadowsocks服务器时,注意配置防火墙开放端口访问 + +```sh +service iptables status +/sbin/iptables -I INPUT -p tcp --dport 1099 -j ACCEPT +service iptables save +``` \ No newline at end of file From e76aed81a059d3ea7a55a6a94f29ee4064bc09c1 Mon Sep 17 00:00:00 2001 From: loaderlin Date: Sun, 26 Aug 2018 11:13:36 +0800 Subject: [PATCH 5/5] update VS Code Settings --- Common.md | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/Common.md b/Common.md index a803c77..82a62d3 100644 --- a/Common.md +++ b/Common.md @@ -18,6 +18,7 @@ npm install -g cnpm -registry=https://registry.npm.taobao.org ## Visual Studio Code +用户设置 ```json { "[ruby]":{ @@ -38,6 +39,47 @@ npm install -g cnpm -registry=https://registry.npm.taobao.org } ``` +快捷键设置 +```json +// 将键绑定放入此文件中以覆盖默认值 +[ + { + // "key": "ctrl+shift+alt+up", + "key": "shift+alt+up", + "command": "cursorColumnSelectUp", + "when": "editorTextFocus" + }, + { + // "key": "ctrl+shift+alt+down", + "key": "shift+alt+down", + "command": "cursorColumnSelectDown", + "when": "editorTextFocus" + }, + { + // "key": "ctrl+r", + "key": "ctrl+alt+o", + "command": "workbench.action.openRecent" + }, + { + // "key": "ctrl+shift+o", + "key": "ctrl+r", + "command": "workbench.action.gotoSymbol" + }, + { + // "key": "shift+alt+down", + "key": "ctrl+shift+d", + "command": "editor.action.copyLinesDownAction", + "when": "editorTextFocus && !editorReadonly" + }, + { + // "key": "shift+alt+up", + "key": "ctrl+shift+alt+up", + "command": "editor.action.copyLinesUpAction", + "when": "editorTextFocus && !editorReadonly" + } +] +``` + ## ShadowsocksR 部署Shadowsocks服务器时,注意配置防火墙开放端口访问