Skip to content

Instantly share code, notes, and snippets.

@Arion-Dsh
Arion-Dsh / fonts.conf
Created June 4, 2015 15:43
ubunto字体设置
<fontconfig>
<match target="pattern">
<test qual="any" name="family">
<string>serif</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Noto Sans CJK SC</string>
<string>Noto Sans CJK JP</string>
<string>Noto Sans CJK KR</string>
</edit>
@Arion-Dsh
Arion-Dsh / nginx.conf
Last active December 21, 2015 15:28
nginx 配置文件范例
user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
use epoll;
}
@Arion-Dsh
Arion-Dsh / supervisord.conf
Last active December 21, 2015 15:19
supervisor配置文件
# -*- conf -*-
[include]
files = *.supervisor
[supervisord]
[supervisorctl]
serverurl = unix://supervisord.sock
# memcached requires libevent
cd /usr/local/src
curl -L -O http://cloud.github.com/downloads/libevent/libevent/libevent-2.0.17-stable.tar.gz
tar -xvzf libevent-2.0.17-stable.tar.gz
cd libevent-2.0.17-stable*
./configure
make
sudo make install
# Compile memcached utility