I hereby claim:
- I am winmillwill on github.
- I am winmillwill (https://keybase.io/winmillwill) on keybase.
- I have a public key whose fingerprint is 9CC4 725C FC40 F602 0DF6 F259 BE94 1EF6 B148 C0B6
To claim this, I am signing this object:
initContainers: | |
- args: | |
- | | |
apk add iptables | |
iptables -t mangle -L | |
iptables -t nat -L | |
SOURCE_IP=$(ip route get 1 | head -n1 | sed 's/.* src \([^ ]*\) .*/\1/') | |
iptables -t mangle -A PREROUTING -p UDP -i eth0 --dport 8125 -j TEE --gateway 127.0.0.2 -m state --state NEW,ESTABLISHED,RELATED | |
iptables -t nat -A PREROUTING -i eth0 -p UDP --dport 8125 -j DNAT --to 10.0.95.199:3031 -m state --state NEW,ESTABLISHED,RELATED | |
iptables -t nat -A POSTROUTING -p UDP --dport 3031 -j SNAT --to-source ${SOURCE_IP} -m state --state NEW,ESTABLISHED,RELATED |
package main | |
import ( | |
"bufio" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"os" | |
"strings" |
I hereby claim:
To claim this, I am signing this object:
require 'plist' | |
name_servers = ['172.17.42.1', '8.8.4.4', '8.8.8.8'] | |
plist_file = '/Library/Preferences/SystemConfiguration/preferences.plist' | |
plist = Plist::parse_xml(plist_file) | |
current_set_key = plist['CurrentSet'].split('/').at(-1) | |
service_key = nil | |
plist['NetworkServices'].each do |key, dict| | |
if (addresses = dict['DNS']['ServerAddresses']) | |
addresses = addresses + (name_servers - addresses) |
# Copy mode¬ | |
setw -g mode-keys vi¬ | |
bind ` copy-mode¬ | |
unbind [¬ | |
unbind p¬ | |
bind p paste-buffer¬ | |
bind -t vi-copy H start-of-line¬ | |
bind -t vi-copy L end-of-line¬ | |
bind -t vi-copy v begin-selection¬ | |
bind -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"¬ |
{ | |
"repositories": [{ | |
"type": "composer", | |
"url": "http://drupal-packagist.org" | |
}], | |
"minimum-stability": "alpha", | |
"require": { | |
"drupal/panopoly": "7.*" | |
} | |
} |
#!/bin/bash | |
creds=( `pass $1` ) | |
for cred in "${creds[@]}"; do | |
export $cred; | |
done |
#! /bin/bash | |
set -ex | |
# Pass all arguments to drush | |
while [ $# -gt 0 ]; do | |
drush_flags="$drush_flags $1" | |
shift | |
done |
<VirtualHost> | |
# ... | |
SSLProxyEngine On | |
# Since Drupal has infinite terrible file i/o already, doing a stat before proxying and avoiding it doesn't make me feel bad | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^/sites/.*/files/(.*)$ https://s3.amazonaws.com/my.sweet.bucket.aws.bucket01/files/$1 [P] | |
ProxyPassReverse /sites/mysite.dev/files/ https://s3.amazonaws.com/my.sweet.bucket.aws.bucket01/files/ | |
</VirtualHost> |