Skip to content

Instantly share code, notes, and snippets.

@qiaoliu78
qiaoliu78 / nginx.conf
Last active November 20, 2020 05:08
nginx.conf
user nobody;
daemon on;
worker_processes 112;
#worker_cpu_affinity auto;
error_log error.log;
events {
worker_connections 65535;
use epoll;
}
@qnnnnez
qnnnnez / issue.sh
Created February 24, 2019 12:01
nginx configuration for tls-alpn-01
# using https://github.com/Neilpang/acme.sh
acme.sh --issue -d your.domain.1 --alpn --tlsport 30443
@bjne
bjne / crc32c.lua
Created January 10, 2019 21:38
crc32c and zstd for luajit/openresty
-- Copyright (C) by Bjørnar Ness <bjornar.ness@gmail.com>
local ffi = require "ffi"
local cast = ffi.cast
local bxor = bit.bxor
local bnot = bit.bnot
local band = bit.band
local rshift = bit.rshift
@djoreilly
djoreilly / ovs-cheat.md
Last active June 13, 2024 17:05
OVS cheat sheet

DB

ovs-vsctl list open_vswitch
ovs-vsctl list interface
ovs-vsctl list interface vxlan-ac000344
ovs-vsctl --columns=options list interface vxlan-ac000344
ovs-vsctl --columns=ofport,name list Interface
ovs-vsctl --columns=ofport,name --format=table list Interface
ovs-vsctl -f csv --no-heading --columns=_uuid list controller
ovs-vsctl -f csv --no-heading -d bare --columns=other_config list port
@ck-on
ck-on / ocp.php
Last active May 18, 2024 22:35
OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP)#ocp #php #opcache #opcode #cache #zend #optimizerplus #optimizer+
<?php
/*
OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP)
Author: _ck_ (with contributions by GK, stasilok)
Version: 0.1.7
Free for any kind of use or modification, I am not responsible for anything, please share your improvements
* revision history
0.1.7 2015-09-01 regex fix for PHP7 phpinfo
0.1.6 2013-04-12 moved meta to footer so graphs can be higher and reduce clutter