Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| # Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
| VAGRANTFILE_API_VERSION = "2" | |
| Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
| config.vm.box = "precise64" | |
| config.vm.box_url = "http://files.vagrantup.com/precise64.box" | |
| config.vm.network :private_network, ip: "192.168.99.99" | 
| #!/bin/bash | |
| # dedupe-cacerts.sh | |
| # | |
| # De-duplicates a certificate authority bundle, such as cacerts.pem | |
| # or ca-bundle.crt. This will emit CA certificates in the order they | |
| # appeared, annotating them with full info on each certificate, | |
| # omitting any duplicate certificates. | |
| # | |
| # Usage: | |
| # | 
| #!/bin/bash | |
| if [ $# -ne 3 ] | |
| then | |
| echo "Delete keys from Redis matching a pattern using SCAN & DEL" | |
| echo "Usage: $0 <host> <port> <pattern>" | |
| exit 1 | |
| fi | |
| cursor=-1 | 
| # These are very quick & dirty notes on getting Icinga installed on Centos 6.5 via RPMs, | |
| # as most documentation seems to be based around source installation. It's mostly recovered from | |
| # my history as I worked it out, so no guarantees are offered. | |
| # Make EPEL available | |
| sudo rpm -Uvh http://mirror.bytemark.co.uk/fedora/epel/6/i386/epel-release-6-8.noarch.rpm | |
| # Install HTTPd | |
| sudo yum install httpd | |
| sudo service https start | 
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
| 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 | 
This is a quick guide to OAuth2 support in GitHub for developers. This is still experimental and could change at any moment. This Gist will serve as a living document until it becomes finalized at Develop.GitHub.com.
OAuth2 is a protocol that lets external apps request authorization to private details in your GitHub account without getting your password. All developers need to register their application before getting started.
| ################################## | |
| # MIT LICENSE | |
| # Copyright (C) 2012 Luke Bayes | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| # copies of the Software, and to permit persons to whom the Software is | |
| # furnished to do so, subject to the following conditions: | 
| ################################## | |
| # MIT LICENSE | |
| # Copyright (C) 2012 Luke Bayes | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| # copies of the Software, and to permit persons to whom the Software is | |
| # furnished to do so, subject to the following conditions: |