Skip to content

Instantly share code, notes, and snippets.

View erikthorselius's full-sized avatar

Erik Thorselius erikthorselius

  • Stockholm Sweden
View GitHub Profile
@erikthorselius
erikthorselius / docker-bootstrap.service
Last active September 6, 2016 05:31
Enable services
[Unit]
Description=Docker Application Container Engine
After=network.target docker-bootstrap.socket
Requires=docker-bootstrap.socket
[Service]
Type=notify
EnvironmentFile=/etc/kubernetes/k8s.conf
ExecStart=/usr/bin/docker daemon \
--host=unix:///var/run/docker-bootstrap.sock \
@erikthorselius
erikthorselius / poly_calc.py
Last active April 5, 2016 20:30
poly_calc.py
#!/usr/bin/env python2.7
import sys, csv, numpy, collections
def polyfit(x, y, degree):
results = {}
coeffs = numpy.polyfit(x, y, degree)
# Polynomial Coefficients
results['polynomial'] = coeffs.tolist()
correlation = numpy.corrcoef(x, y)[0, 1]
# r
@erikthorselius
erikthorselius / keybase.md
Created September 18, 2014 10:03
Keybase proof

Keybase proof

I hereby claim:

  • I am erikthorselius on github.
  • I am regius (https://keybase.io/regius) on keybase.
  • I have a public key whose fingerprint is BB5B D4AD CAAF AB8E 260E 7FB2 D92C CDB6 FD43 CE3E

To claim this, I am signing this object: