I hereby claim:
- I am elasticdog on github.
- I am elasticdog (https://keybase.io/elasticdog) on keybase.
- I have a public key whose fingerprint is 5FC9 160D A643 E0E9 B83A F4BB 5E34 0427 C31E 7946
To claim this, I am signing this object:
stderr: E: Failed to fetch http://us-east-1.ec2.archive.ubuntu.com/ubuntu/pool/universe/a/arpack/libarpack2_3.1.5-2_amd64.deb 403 Forbidden |
I hereby claim:
To claim this, I am signing this object:
javascript:(function(){var%20ps=document.getElementsByTagName("pre");for(var%20i=0;i<ps.length;i++){ps[i].style.whiteSpace="pre-wrap";ps[i].style.width="600px";}})(); |
#!/bin/bash | |
# System Colors | |
for line in {0..7}; do | |
for col in {0..1}; do | |
code=$(( $col * 8 + $line )) | |
printf $'\e[38;05;%dm %03d' $code $code | |
done | |
echo | |
done |
#!/bin/bash | |
# attach to an existing tmux session, or create one if none exist | |
# also set up access to the system clipboard from within tmux when possible | |
if [[ $OSTYPE == darwin* && -x $(command -v reattach-to-user-namespace) ]]; then | |
# on OS X force tmux's default command to spawn a shell in the user's namespace | |
# https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard | |
tweaked_config=$(cat $HOME/.tmux.conf <(echo 'set-option -g default-command "reattach-to-user-namespace -l $SHELL"')) |
[alias] | |
ap = add --patch | |
br = branch | |
ci = commit --verbose | |
co = checkout | |
df = diff | |
ds = diff --stat | |
empty-tree-sha1 = hash-object -t tree /dev/null | |
gone = git log --diff-filter=D --summary | |
lc = log ORIG_HEAD.. --stat --no-merges |
Two nodes, alice and bob that are set up to be redundant load balancers using | |
HAProxy. There are two floating IP address resources that need to be on the | |
machine for HAProxy to bind to (so only one machine will be running the HAProxy | |
resource at a time). Both machines are x86_64 CentOS 6.1 running corosync 1.4.1 | |
and pacemaker 1.1.6. | |
alice.example.com = 172.16.32.10/24 (eth1) | |
bob.example.com = 172.16.32.11/24 (eth1) |
#!/usr/bin/gawk -f | |
### samp | |
### Efficiently sample lines from a large file or infinite pipe. | |
### Table of Contents: | |
## * Copyright & Licensing | |
## * Script Documentation | |
## * Acknowledgments |
defmodule HttpRequester do | |
use GenServer | |
def start_link(_) do | |
GenServer.start_link(__MODULE__, nil, []) | |
end | |
def fetch(server, url) do | |
# Don't use cast: http://blog.elixirsips.com/2014/07/16/errata-dont-use-cast-in-a-poolboy-transaction/ | |
timeout_ms = 10_000 |
{ | |
"Version": "2008-10-17", | |
"Id": "http referer policy", | |
"Statement": [ | |
{ | |
"Sid": "Allow GET requests", | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "*" | |
}, |