crmsh # crm configure show
pcs # pcs cluster cib
crmsh # crm_mon -1
pcs # pcs status
| #允许rpc | |
| enable-rpc=true | |
| #允许所有来源, web界面跨域权限需要 | |
| rpc-allow-origin-all=true | |
| #允许非外部访问 | |
| rpc-listen-all=true | |
| #RPC端口, 仅当默认端口被占用时修改 | |
| #rpc-listen-port=6800 | |
| #最大同时下载数(任务数), 路由建议值: 3 | |
| max-concurrent-downloads=5 |
| <VirtualHost *:80> | |
| ServerName forum.example.com | |
| Redirect permanent / https://forum.example.com | |
| </VirtualHost> | |
| <VirtualHost *:443> | |
| ServerName forum.example.com |
| function drips(){ | |
| docker ps -q | xargs -n 1 docker inspect --format '{{ .NetworkSettings.IPAddress }} {{ .Name }}' | sed 's/ \// /' | |
| } |
| #Source - http://www.haproxy.org/download/1.5/doc/configuration.txt | |
| # Section - 9.2. Unix Socket commands | |
| #show stat [<iid> <type> <sid>] | |
| # Dump statistics in the CSV format. By passing <id>, <type> and <sid>, it is | |
| # possible to dump only selected items : | |
| # - <iid> is a proxy ID, -1 to dump everything | |
| # - <type> selects the type of dumpable objects : 1 for frontends, 2 for | |
| # backends, 4 for servers, -1 for everything. These values can be ORed, | |
| # for example: |
| sudo apt-get install qemu-utils | |
| sudo modprobe nbd | |
| sudo qemu-nbd --connect=/dev/nbd0 /full/path/to/qcow2/image/file | |
| sudo mkdir /mnt/ubuntu | |
| sudo mount /dev/nbd0p1 /mnt/ubuntu |
| #!/usr/bin/ruby | |
| # Create display override file to force Mac OS X to use RGB mode for Display | |
| # see http://embdev.net/topic/284710 | |
| require 'base64' | |
| data=`ioreg -l -d0 -w 0 -r -c AppleDisplay` | |
| edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten | |
| vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten |
| ########################################### | |
| # IMPORTANT NOTE: | |
| # | |
| # As of asuswrt-merlin 380.67 Beta, you | |
| # can now configure SSL certificates from | |
| # the Webui, making these instructions | |
| # unnecessary. | |
| ########################################### | |
| Latency Comparison Numbers (~2012) | |
| ---------------------------------- | |
| L1 cache reference 0.5 ns | |
| Branch mispredict 5 ns | |
| L2 cache reference 7 ns 14x L1 cache | |
| Mutex lock/unlock 25 ns | |
| Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
| Compress 1K bytes with Zippy 3,000 ns 3 us | |
| Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
| Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |