Skip to content

Instantly share code, notes, and snippets.

View brancz's full-sized avatar
❄️
Something something Polar Signals

Frederic Branczyk brancz

❄️
Something something Polar Signals
View GitHub Profile
AWS_REGION="us-east-1" lego --path=/Users/fredericbranczyk/.lego --dns route53 --accept-tos [email protected] --domains=brancz.com run
@brancz
brancz / gist:032ffd5848a50e41565a69cae231024c
Created May 16, 2016 21:10
convert coreos kubernetes pem keys to chrome/darwin unterstandable format
openssl pkcs12 -inkey credentials/admin-key.pem -in credentials/admin.pem -export -out certandkey.pfx
*.lof
*.lol
*.ilg
*.nls
*.log
*.lot
*.nlo
*.out
*.pdf
*.toc
@brancz
brancz / gist:2a7a1a65d5e0d66ece99
Created December 14, 2015 13:45
git accumulated stats
git diff --numstat --pretty="%H" master | awk 'NF==3 {plus+=$1; minus+=$2} END {printf("+%d, -%d\n", plus, minus)}'
### Keybase proof
I hereby claim:
* I am flower-pot on github.
* I am flowerpot (https://keybase.io/flowerpot) on keybase.
* I have a public key whose fingerprint is 0010 24B2 4B55 88EE CEBD A645 2585 556B 0604 C640
To claim this, I am signing this object:
@brancz
brancz / gist:0ec12891b6bbe809f72c
Created August 5, 2015 17:35
single host rancher setup
docker run --name rancher-mysql -v /data/docker/rancher/mysql:/var/lib/mysql --restart=always -d \
-e MYSQL_ROOT_PASSWORD=my-secret-pw \
-e MYSQL_USER=rancher \
-e MYSQL_PASSWORD=my-secret-pw \
-e MYSQL_DATABASE=rancher \
mysql
docker run --name rancher-server -d --restart=always --link rancher-mysql:mysql -p 80:8080 \
-e CATTLE_DB_CATTLE_MYSQL_HOST=$MYSQL_PORT_3306_TCP_ADDR \
-e CATTLE_DB_CATTLE_MYSQL_PORT=3306 \
@brancz
brancz / gist:527697ed71255933bc84
Created July 11, 2015 14:13
build osx .dmg for jruby application
jar:
rvm jruby
rm Gemfile.lock
bundle install --without test
mkdir -p pkg/dist
warble
osx: jar
javapackager -deploy -native dmg -outdir pkg -outfile duse -srcdir pkg/dist -srcfiles duse.rb.jar -appclass JarMain -name "duse" -title "duse"

Keybase proof

I hereby claim:

  • I am flower-pot on github.
  • I am flowerpot (https://keybase.io/flowerpot) on keybase.
  • I have a public key whose fingerprint is 8D36 44B7 F750 109B 8D95 868D 5437 E27D 05D2 D484

To claim this, I am signing this object:

@brancz
brancz / gist:9665603a62f0057bf596
Created April 15, 2015 11:29
boot2docker reconfigure dns
sudo udhcpc
@brancz
brancz / gist:9fb3e28ad02f96bce7de
Created July 14, 2014 16:31
expand tabs to 4 spaces for all js files in directory
find . -name '*.js' ! -type d -exec bash -c 'expand -t 4 "$0" > /tmp/e && mv /tmp/e "$0"' {} \;