The following scripts are tools I use on a regular basis to run simple activities on the K5 platform. They can fairly easily be modified to work with OpenStack (and, probably in many cases, will work without modifications).

These are all written by me in my spare time, and are released under the WTFPL.

while ! ping -c 1 2>/dev/null >/dev/null ; do
echo Waiting for network...
ssh -X bloggsf@localhost -i ~/.ssh/gmm.id_rsa /opt/google/musicmanager/google-musicmanager

runas for Unix-like Systems

Download these two files, and place them in /usr/local/bin. Chmod them to 755, and chown them to root:root.

Then, perform the following command:

runas -u someuser command


View User commands.yml
- name: Create Users on W2012 Server
raw: if (dsquery user -samid "{{item.key}}") {"Not Required"} else { New-ADUser -SamAccountName "{{item.key}}" -UserPrincipalName "{{item.key}}@{{windows_domain}}" -Name "{{}}" -DisplayName "{{}}" -GivenName "{{" ")[1]}}" -Surname "{{" ")[-1]}}" -ChangePasswordAtLogon $true -Enabled $true -AccountPassword (ConvertTo-SecureString "{{default_password}}" -AsPlainText -Force) }
- name: Create Users on W2008 Server with Domain Admin
raw: if (dsquery user -samid "{{item.key}}") {"Not Required"} else {dsadd user "CN={{item.key}},CN=Users,{{search_base}}" -samid "{{item.key}}" -upn "{{item.key}}@{{windows_domain}}" -display "{{|default("Undefined")}} {{item.value.role|default("")}}" -fn "{{" ")[1]|default("Undefined")}}" -ln "{{" ")[-1]|default("Undefined")}}" -mustchpwd yes -pwd "{{default_password}}" -memberof "CN=Domain Admins,CN=Users,{{s
View group_vars~all
name: "REDACTED"
name: "REDACTED"

Use your Debian System as an iBeacon for Home Automation


I have been playing with using the system at home to play with Home Automation.

One thing I've found is that the Raspberry Pi is perfect for quite a few of the monitoring things that I wanted it to do (see also for more details of what I'm doing there!).

I'm using the application to talk to an MQTT server, but I could also do with it knowing where I am in the house, so I looked around for some details on iBeacons.

iBeacon is an Apple standard, but it's very easy to configure on Linux systems. I took some pointers from this article and wrote up this script. When I later went to deploy this on another system, I also needed a pointer from [this PDF](

View Building

Building a Lab network

The basics / @JonTheNiceGuy / @g7vri


  • Introduction
View AAA GPG Encrypt a file to a large number of recipients

Using this script

Place this batch file and the text file into the same directory, edit the batch file to specify the key server and the text file to specify the names to encrypt.

If you hit an issue where an individual has multiple keys against their name, the script may well complain and ditch responses. In this case, uncomment the line in the batch file which says: REM %COMMAND% --recv-keys <KEY ID>

So it should say instead: %COMMAND% --recv-keys DECAFBAD

#! /bin/bash
if [ `uname -p` == 'x86_64' ]
wget `curl -s | sed 's/\s/\n/g' | grep x86_64.deb | cut -c 7- | cut --delimiter=\" -f 1` -O /tmp/vagrant.deb; dpkg -i /tmp/vagrant.deb; rm /tmp/vagrant.deb
wget `curl -s | sed 's/\s/\n/g' | grep i686.deb | cut -c 7- | cut --delimiter=\" -f 1` -O /tmp/vagrant.deb; dpkg -i /tmp/vagrant.deb; rm /tmp/vagrant.deb