standard way of installing font like monaco:
将 Unicode Truetype 的 Monaco 字体复制到 /usr/share/fonts/truetype/ 目录下
然后sudo fc-cache -fv
就可以在 pycharm 中看到这款字体
This file contains 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
defaults | |
timeout connect 5s | |
timeout client 24h | |
timeout server 24h | |
global | |
log /dev/log local0 | |
frontend ssl | |
log global |
This file contains 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
# lsb_release -a | |
No LSB modules are available. | |
Distributor ID: Debian | |
Description: Debian GNU/Linux 8.9 (jessie) | |
Release: 8.9 | |
Codename: jessie | |
Installing telegram-send | |
# pip install telegram-send |
This file contains 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
https://raw.githubusercontent.com/gfwlist/gfwlist/master/gfwlist.txt |
This file contains 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
XDG_RUNTIME_DIR=/run/user/1000; export XDG_RUNTIME_DIR | |
/usr/bin/mpg123 --list $HOME/list.lst -z |
This file contains 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
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
- function foo()
+ function bar()
sudo dd if=/dev/zero of=/swapfile bs=1024 count=524288
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
在VPS上执行完耗内存程序再关闭
sudo swapoff /swapfile
dpkg -l | grep 'nginx'
or
sudo aptitude
openwrt,用于缓存服务器
其web控制界面位于http://192.168.1.1:8123/polipo/
# polipo daemon configuration
config 'polipo' 'daemon'
# daemonise polipo (fork in background)
option 'daemonise' '1'
# where polipo will store its process pid
option 'pidFile' '/var/run/polipo.pid'