Skip to content

Instantly share code, notes, and snippets.

View moenn's full-sized avatar
☃️
毕业设计!

moenn

☃️
毕业设计!
View GitHub Profile
@moenn
moenn / wsl_socks5.md
Last active August 12, 2022 14:32
为 windows wsl 配置 socks5 代理

windows代理软件需要开启允许LAN连接

1. 安装 polipo

sudo apt install polipo

2. 配置 polipo

vim /etc/polipo/config
在文件中写入如下内容:

socksParentProxy = "localhost:1080"
socksProxyType = socks5
@moenn
moenn / js.sublime-build.md
Last active January 13, 2019 14:37
javascript sublime-build
  1. install node
  2. Create JavaScript build system

Mac

{
  "cmd": ["/usr/local/bin/node", "$file"],
  "selector": "source.js"
}
@moenn
moenn / socks5.txt
Created December 16, 2018 13:50
requests using socks5
```
PROXIES = {
"http": "socks5h://127.0.0.1:1080",
"https": "socks5h://127.0.0.1:1080"
}
```
@moenn
moenn / open-html-in-browser.md
Last active October 21, 2018 08:39
sublime text 3 open html in browser

Windows

open in chrome
{
	"cmd": ["C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe", "$file"] 
}
open in firefox
@moenn
moenn / chez-scheme.sublime-build.md
Last active October 17, 2018 08:00
chez scheme 's sublime text build file
  1. Tools - Build System - New Build System,写入如下语句
{
    "cmd": ["scheme", "--script", "$file"],
    "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
}
  1. 新建一个包含 display 语句的文件,测试一下。
(display "hello")
@moenn
moenn / sublime_rd.md
Last active October 17, 2018 06:52
sublime 配置

Preference - Keybindings - User 中添加下面的代码,就能使用alt+方向键,将光标移动到行首,行尾.

{ "keys": ["alt+left"], "command": "move_to", "args": {"to": "bol", "extend": false} },
{ "keys": ["alt+right"], "command": "move_to", "args": {"to": "eol", "extend": false} }
@moenn
moenn / git_rd.md
Last active May 29, 2019 10:02
git 常用配置

设置用户名和邮箱

git config --global user.name "John Doe"
git config --global user.email [email protected]

添加 socks5 代理

git config --global http.proxy "http://127.0.0.1:1080"

git config --global https.proxy "https://127.0.0.1:1080"