Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am adieu on github.
  • I am adieu (https://keybase.io/adieu) on keybase.
  • I have a public key whose fingerprint is 8917 0CFA 1962 9108 267C A7C9 07E0 63EF FC63 E8E6

To claim this, I am signing this object:

@adieu
adieu / conf.py
Created September 8, 2016 08:20
python db profiling
HOST = ''
USER = ''
PASSWORD = ''
DB = ''
WORKER = 20
COUNT = 10000
#### problem
13:33:05.145359 IP 10.140.0.2.56851 > 10.120.2.9.2333: Flags [S], seq 3479492489, win 28400, options [mss 1420,sackOK,TS val 309555602 ecr 0,nop,wscale 7], length 0
13:33:05.145492 IP 10.120.2.9.2333 > 10.140.0.2.56851: Flags [R.], seq 0, ack 3479492490, win 0, length 0
#### normal
13:34:56.927506 IP 10.140.0.2.57185 > 10.120.2.9.2333: Flags [S], seq 951034314, win 28400, options [mss 1420,sackOK,TS val 309583547 ecr 0,nop,wscale 7], length 0
13:34:56.927634 IP 10.120.2.9.2333 > 10.140.0.2.57185: Flags [S.], seq 3827434427, ack 951034315, win 28960, options [mss 1460,sackOK,TS val 291520250 ecr 309583547,nop,wscale 7], length 0
13:34:56.928122 IP 10.140.0.2.57185 > 10.120.2.9.2333: Flags [.], ack 1, win 222, options [nop,nop,TS val 309583547 ecr 291520250], length 0
13:34:56.928135 IP 10.140.0.2.57185 > 10.120.2.9.2333: Flags [P.], seq 1:80, ack 1, win 222, options [nop,nop,TS val 309583547 ecr 291520250], length 79
13:34:56.928170 IP 10.120.2.9.2333 > 10.140.0.2.57185: Flags [.], ack 80, win 22
@adieu
adieu / 1-etcd.sh
Last active January 13, 2017 15:06
Install Kubernetes
wget https://github.com/coreos/etcd/releases/download/v2.3.7/etcd-v2.3.7-linux-amd64.tar.gz
tar zxf etcd-v2.3.7-linux-amd64.tar.gz
mv etcd-v2.3.7-linux-amd64/* /usr/local/bin/
sudo sh -c 'echo "[Unit]
Description=etcd
Documentation=https://github.com/coreos
[Service]
ExecStart=/usr/local/bin/etcd \
--data-dir=/var/lib/etcd \
@adieu
adieu / README.md
Last active December 18, 2015 23:08 — forked from jpetazzo/README.md

Unionize: network superpowers for your docker containers

Unionize lets you connect together docker containers in arbitrarily complex scenarios.

Just check those examples.

LAMP stack with a private network between the MySQL and Apache containers

Let's create two containers, running the web tier and the database tier:

function doMouseOut(thisButton){
if (thisButton.style.background=='black'||thisButton.style.background=='BLACK'){
thisButton.style.background='#cdcdb4';
thisButton.style.color='black';
}
}
function doMouseOver(thisButton){
@adieu
adieu / gist:357768
Created April 6, 2010 16:17
Google Apps support patch for python-openid v2.1.1
diff --git a/consumer/consumer.py b/consumer/consumer.py
index e725da2..d57b9d3 100644
--- a/consumer/consumer.py
+++ b/consumer/consumer.py
@@ -724,7 +724,6 @@ class GenericConsumer(object):
"return_to does not match return URL. Expected %r, got %r"
% (return_to, message.getArg(OPENID_NS, 'return_to')))
-
# Verify discovery information: