I hereby claim:
- I am drwahl on github.
- I am drwahl49 (https://keybase.io/drwahl49) on keybase.
- I have a public key ASCu-gr0pDnWljw8Uolo8dhMS0zoTR0cKiiTHeUXU-3TJgo
To claim this, I am signing this object:
#!/usr/bin/env python | |
import ConfigParser | |
import argparse | |
import os | |
from novaclient.v1_1 import client as novaclient | |
from neutronclient.v2_0 import client as neutronclient | |
from keystoneclient.v2_0 import client as keystoneclient | |
parser = argparse.ArgumentParser(description='Nova Auditor') |
#!/bin/bash | |
# This script is intended to be bound to your printscreen button and take a | |
# screenshot with scrot. The resulting screenshot should land in a folder | |
# that is synced with the ownlcoud client. If all goes well, a public link to | |
# the screenshot will be copied into your clipboard, making it super easy to | |
# share screenshots. | |
# Requirements: | |
# ocsharetools: https://github.com/Azelphur/ownCloud-share-tools | |
# USERNAME: environment variable containing your owncloud username |
#!/usr/bin/env python | |
import pprint | |
f = open('./foo', 'r') | |
counts = {} | |
for line in f.readlines(): | |
tenant_id = line.split('|')[3].strip() | |
if line.split('|')[3].strip() not in counts.keys(): |
# | |
# Cookbook Name:: dreamcompute | |
# Recipe:: akrug-logstash | |
# DreamCompute nagios common packages | |
# Copyright 2015, DreamHost | |
# | |
# All rights reserved - Do Not Redistribute | |
# | |
include_recipe 'logstash::agent' |
==> default: [2016-05-06T17:20:42+00:00] INFO: apt_package[glance] installed glance at 20160106.203412-0bac2bf | |
==> default: | |
==> default: - install version 20160106.203412-0bac2bf of package glance | |
==> default: * template[/etc/glance/glance-api.conf] action create | |
==> default: | |
==> default: * cannot determine user id for 'vagrant', does the user exist on this system? | |
==> default: | |
==> default: | |
==> default: ================================================================================ | |
==> default: |
#!/usr/bin/env python | |
# This script will attempt to detect fraudy DHC accounts using | |
# machine learning. | |
from os import environ | |
from datetime import datetime | |
from sklearn import tree | |
from keystoneclient.v2_0 import client as keyclient | |
from keystoneauth1.identity import v2 |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env bash | |
set -e | |
IFS=$'\n\t' | |
ACTION=${1:save} | |
SAVEPATH="$HOME/.i3/i3-resurrect" | |
DEPS='i3-resurrect | |
jq' | |
# Check if dependencies are installed, and bail out if they aren't | |
for dep in $DEPS; do |
#!/bin/bash -xe | |
allSinks=$(pactl list short sinks | grep -v 'echo-cancel' | awk '{print $1}') | |
currentSink=$(pactl list short sink-inputs | tail -1 | awk '{print $2}') | |
newSink=$(echo $allSinks | tr " " "\n"| grep -v $currentSink) | |
pactl list short sink-inputs|while read stream; do | |
streamId=$(echo $stream|cut '-d ' -f1) | |
echo "moving stream $streamId" | |
pactl move-sink-input "$streamId" "$newSink" |
#!/usr/bin/env bash | |
# $1 should be one of: | |
# SpdAvg | |
# SpdGst | |
# DirAvg | |
# DirGst | |
result=$(wget -q -O - 'http://rwis.mdt.mt.gov/scanweb/RPUStatus.asp?Pageid=RPUStatus&Units=English&Groupid=564000&Siteid=564005' | \ | |
grep -A6 $1 | \ |