Skip to content

Instantly share code, notes, and snippets.

View offbeatadam's full-sized avatar

Adam Hubscher offbeatadam

View GitHub Profile
@offbeatadam
offbeatadam / pb_listall.py
Last active August 29, 2015 14:11
Simple Python script to test that suds works and can list all pb methods in public SOAP api
#!/usr/bin/python
# This script will print out all information contained in the WSDL endpoint for the 1.3 version Profitbricks API
# No authentication is required (this is public information).
# This is to assist with testing and diagnosis of problems getting started with profitbricks-client
# profitbricks-client requires suds to operate. To install: pip install suds
from suds import Client
# Location of the wsdl definition

Keybase proof

I hereby claim:

  • I am offbeatadam on github.
  • I am offbeatadam (https://keybase.io/offbeatadam) on keybase.
  • I have a public key whose fingerprint is CCD6 C466 D9E5 99F0 EB18 38E1 C1A5 32A8 140F 9A13

To claim this, I am signing this object:

@offbeatadam
offbeatadam / archive.sh
Created January 27, 2012 22:06
archiving irssi logs
#!/bin/bash
ROOTDIR="/home/triton/.irssi"
LOGDIR="$ROOTDIR/logs"
ARCHIVE="$ROOTDIR/logs.old"
printf "Beginning log archiving\n"
printf "Moving to log directory %s\n" "$LOGDIR"
cd $LOGDIR
@offbeatadam
offbeatadam / rtorrent.screenrc
Created January 27, 2012 20:30
My rtorrent Screen Config
# AgentGreasy/OffbeatAdam's rtorrent ScreenRC
## Terminal Settings (for 256 Colors, thanks Lion!) ##
term screen-256color
# Just in case, additional settings for xterm
attrcolor b ".I"
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
defbce on
@offbeatadam
offbeatadam / irssi.screenrc
Created January 27, 2012 20:29
My irssi Screen Config
# AgentGreasy/OffbeatAdam's irssi ScreenRC
## Terminal Settings (for 256 Colors, thanks Lion!) ##
term screen-256color
# Just in case, additional settings for xterm
attrcolor b ".I"
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
defbce on
@offbeatadam
offbeatadam / archive.sh
Created January 27, 2012 00:58
Bash Printf Annoying
#!/bin/bash
ROOTDIR="/home/triton/.irssi"
LOGDIR="$ROOTDIR/logs"
ARCHIVE="$ROOTDIR/logs.old"
printf "Beginning log archiving\n"
printf "Moving to log directory %s\n" "$LOGDIR"
cd $LOGDIR