This file contains hidden or 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
#ubuntu #apt 一行命令里同时安装删除多个软件 | |
$ sudo apt install xxx yyy ooo- zzz- | |
会安装 xxx、yyy 并删除 ooo、zzz | |
+ 表示安装 | |
+M 表示这次是因为别的包依赖而安装的,在将来没有其他包依赖他时会自动删除 | |
- 删除 | |
_ 彻底删除 | |
= 固定版本 |
This file contains hidden or 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
" 用 Alt+左右方向键 来切换多文件 | |
map <silent><A-Right> :bn<CR> | |
map <silent><A-Left> :bp<CR> | |
"要在命令行上实现 Emacs 风格的编辑操作: > | |
" 至行首 | |
cnoremap <C-A> <Home> | |
" 后退一个字符 | |
cnoremap <C-B> <Left> | |
" 删除光标所在的字符 |
This file contains hidden or 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
" atd 英语语法检查 https://bitbucket.org/shellexy/my-bin-script/src/tip/atd_grammar_checking.py | |
function! Atd_grammar_checking() | |
browse confirm up | |
let makeprg_=&makeprg | |
set makeprg=atd_grammar_checking.py\ % | |
silent make | |
copen | |
let &makeprg=makeprg_ | |
endfunction | |
map <F6> <ESC>:call Atd_grammar_checking()<CR> |
This file contains hidden or 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
local 192.168.1.101 #这里替换成你的vps的IP# | |
port 10037 #相应的端口 | |
proto udp | |
dev tun | |
ca /etc/openvpn/easy-rsa/2.0/keys/ca.crt | |
cert /etc/openvpn/easy-rsa/2.0/keys/server.crt | |
key /etc/openvpn/easy-rsa/2.0/keys/server.key | |
dh /etc/openvpn/easy-rsa/2.0/keys/dh1024.pem | |
ifconfig-pool-persist ipp.txt |
This file contains hidden or 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
dns = 8.8.8.8 | |
max-clients = 0 | |
max-same-clients = 5 | |
route = 172.68.2.0/255.255.255.0 | |
route = 3.0.0.0/255.0.0.0 | |
route = 4.0.0.0/255.0.0.0 | |
route = 8.0.0.0/255.0.0.0 | |
route = 17.0.0.0/255.0.0.0 | |
route = 198.0.0.0/255.0.0.0 |
This file contains hidden or 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or 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
## openvpn 路由 ## | |
server 10.168.2.0 255.255.255.0 #客户端使用的IP段,不要与你本机的网段冲突# | |
;push "redirect-gateway" | |
push "dhcp-option DNS 8.8.8.8" | |
push "dhcp-option DNS 8.8.4.4" | |
push "route 172.68.2.0 255.255.255.0 vpn_gateway" | |
push "route 3.0.0.0 255.0.0.0 vpn_gateway" | |
push "route 4.0.0.0 255.0.0.0 vpn_gateway" | |
push "route 8.0.0.0 255.0.0.0 vpn_gateway" |
This file contains hidden or 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
#!/usr/bin/python | |
# -*- coding: UTF-8 -*- | |
#@license: LGPL-3 | |
"""由 glade 文件生成 python 源码 | |
使用 i18n gettext 国际化 | |
i18n.py 示例: | |
-- |
This file contains hidden or 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
:not([class*=icon]) { | |
font-family: "Droid Sans Fallback", "WenQuanYi Micro Hei", "Microsoft Yahei Mono", "Microsoft Yahei", sans-serif, "Simsun" !important; | |
} |