File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -501,3 +501,62 @@ pip 安装 gnureadline 报错: /usr/bin/ld: cannot find -lncurses
501501$ sudo apt-cache search ncurses- | grep ncurses
502502$ sudo apt-get install libncurses5-dev
503503```
504+
505+ 帅气终端(亮点是快速分屏)
506+ ```
507+ $ apt-get install terminator
508+ ```
509+ 首先设置等宽字体 mono 12号
510+
511+ 然后可以设置背景图片 透明度
512+
513+
514+ 杀掉当前所有的MySQL连接
515+ ```
516+ MariaDB [(none)]> select concat('KILL ',id,';') from information_schema.processlist where user='www' and db='test';
517+ ```
518+
519+
520+ shadowsocks(python)
521+
522+ [ shadowsocks project] ( https://github.com/shadowsocks/shadowsocks/tree/master )
523+
524+ [ shadowsocks wiki] ( https://github.com/shadowsocks/shadowsocks/wiki )
525+
526+ ```
527+ pip install shadowsocks
528+ ```
529+
530+ [ server config file] ( https://github.com/shadowsocks/shadowsocks/wiki/Configuration-via-Config-File )
531+ ```
532+ {
533+ "server":"my_server_ip",
534+ "server_port":8388,
535+ "local_address": "127.0.0.1",
536+ "local_port":1080,
537+ "password":"mypassword",
538+ "timeout":300,
539+ "method":"aes-256-cfb",
540+ "fast_open": false
541+ }
542+ ```
543+
544+ To run in the foreground:
545+ ```
546+ ssserver -c /etc/shadowsocks.json
547+ ```
548+ To run in the background:
549+ ```
550+ ssserver -c /etc/shadowsocks.json -d start
551+ ssserver -c /etc/shadowsocks.json -d stop
552+ ```
553+
554+ 桌面版系统也可以安装图形版 shadowsocks-qt5
555+
556+ [ shadowsocks-qt5 wiki] ( https://github.com/shadowsocks/shadowsocks-qt5/wiki )
557+ ```
558+ sudo add-apt-repository ppa:hzwhuang/ss-qt5
559+ sudo apt-get update
560+ sudo apt-get install shadowsocks-qt5
561+ ```
562+
You can’t perform that action at this time.
0 commit comments