I hereby claim:
- I am dooferlad on github.
- I am dooferlad (https://keybase.io/dooferlad) on keybase.
- I have a public key ASCdFWB_UDUzfspgkjlG-ele8GCOfwivIrvoaB2xxcc5bgo
To claim this, I am signing this object:
#!/usr/bin/env python3 | |
from subprocess import run | |
import os | |
import sys | |
import configparser | |
import yaml |
#!/usr/bin/env bash | |
set -e | |
if [ "$#" -lt 1 ] | |
then | |
echo "Usage: update-kubeconfig <aws profile> [cluster-name]" | |
exit 1 | |
fi |
I hereby claim:
To claim this, I am signing this object:
curl -H 'Authorization: bearer $LOGGLY_APIKEY' "http://octoenergy.loggly.com/apiv2/events?rsid=$(curl -H 'Authorization: bearer $LOGGLY_APIKEY' "http://octoenergy.loggly.com/apiv2/search?q=$1" | jq .rsid.id | xargs)" | jq $2 |
from django.db import models | |
def vpprint(item): | |
""" | |
Very pretty print of Django objects | |
:param item: Object to print | |
:return: None | |
""" | |
print(item.__class__.__name__) | |
_vpprint(item, [item.__class__.__name__], set()) |
package main | |
import ( | |
"fmt" | |
"log" | |
"net/http" | |
"time" | |
"github.com/julienschmidt/httprouter" |
#!/usr/bin/python | |
import subprocess | |
import json | |
addresses = json.loads(subprocess.check_output("maas maas ipaddresses read", shell=True)) | |
for addr in addresses: | |
subprocess.check_call("maas maas ipaddresses release ip=" + addr['ip'], shell=True) |