Skip to content

Instantly share code, notes, and snippets.

@emacsist
emacsist / mac-emacs-chinese-font.md
Created December 5, 2015 16:36 — forked from liuyix/mac-emacs-chinese-font.md
mac emacs 字体设置
Nginx:
aptitude -y install build-essential libc6 libpcre3 libpcre3-dev libpcrecpp0 libssl0.9.8 libssl-dev zlib1g zlib1g-dev lsb-base
<?xml version="1.0" encoding="UTF-8" ?>
<configuration>
<!-- 控制台输出 -->
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<layout class="ch.qos.logback.classic.PatternLayout">
<Pattern>%-10(%C{40}.%M %L) [%date{yyyy-MM-dd HH:mm:ss}] [%level]: %m%ex%n</Pattern>
</layout>
</appender>
<root level="info">
<appender-ref ref="STDOUT"/>
#!/usr/bin/env bash
sudo apt-get update -y
sudo apt-get install libpcre3-dev libssl-dev perl make build-essential curl wget -y
OPENSSL_VERSION="openssl-1.1.0h"
OPENRESTY_VERSION="openresty-1.13.6.2"
BASE_DIR="${HOME}/nginx"
OPENRESTY_PATH=${BASE_DIR}/${OPENRESTY_VERSION}
#!/usr/bin/env bash
OPENSSL_VERSION="openssl-1.1.0h"
# wget http://nginx.org/download/nginx-1.13.12.tar.gz .
NGINX_VERSION="nginx-1.13.12"
# 旧版的 nginx 路径
OLD_NGINX_PATH="${HOME}/nginx/nginx-1.2.2"
BASE_DIR="${HOME}/nginx"
-- 全局字典
local access = ngx.shared.access
-- Nginx中的 host 主机
local host = "host"
-- 响应的状态码
local status = ngx.var.status
-- 客户端发送的字节数
local body_bytes_sent = ngx.var.body_bytes_sent
local access = ngx.shared.access
local args = ngx.req.get_uri_args()
local host = "host"
local one_minute_ago = tonumber(os.date("%s")) - 60
local now = tonumber(os.date("%s"))
local status_fail_total = 0
local flow_total = 0
local reqt_total = 0
local req_total = 0
#user nobody;
worker_processes auto;
worker_cpu_affinity auto;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
#!/usr/bin/env bash
IFS_OLD="${IFS}"
IFS='' read -r -d '' String <<"EOF"
grant codebase "file:${java.home}/../lib/tools.jar" {
permission java.security.AllPermission;
};
EOF
#!/usr/bin/env bash
grep -q sse4_2 /proc/cpuinfo && echo "SSE 4.2 supported" || echo "SSE 4.2 not supported"
grep -q sse4_2 /proc/cpuinfo || exit 1
sudo echo "deb http://repo.yandex.ru/clickhouse/deb/stable/ main/" > /etc/apt/sources.list.d/clickhouse.list
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv E0C56BD4 -y