crmsh # crm configure show
pcs # pcs cluster cib
crmsh # crm_mon -1
pcs # pcs status
| <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 |
| ### INSTALLATION NOTES ### | |
| # 1. Install Homebrew (https://github.com/mxcl/homebrew) | |
| # 2. brew install zsh | |
| # 3. Install OhMyZsh (https://github.com/robbyrussell/oh-my-zsh) | |
| # 4. brew install reattach-to-user-namespace --wrap-pbcopy-pbpaste && brew link reattach-to-user-namespace | |
| # 5. Install iTerm2 | |
| # 6. In iTerm2 preferences for your profile set: | |
| # Character Encoding: Unicode (UTF-8) | |
| # Report Terminal Type: xterm-256color | |
| # 7. Put itunesartist and itunestrack into PATH |