Skip to content

Instantly share code, notes, and snippets.

Michael Hampton error10

Block or report user

Report or block error10

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:357447d66cc5ac7fad03ddc7227a57b0
### Keybase proof
I hereby claim:
* I am error10 on github.
* I am error10 (https://keybase.io/error10) on keybase.
* I have a public key ASDLv0ZzWIW1MecYnBvgn3p0LpFL5FxqpK4g4yFPyhKl_Qo
To claim this, I am signing this object:
@error10
error10 / virt-helpers.sh
Last active Dec 4, 2015
Bash helper functions for mangling libvirt virtual machines
View virt-helpers.sh
#!/usr/bin/env bash
# Check whether a named virtual machine exists.
#
# Arguments:
# 1: virtual machine name given by virsh
#
# Returns:
# 0 if virtual machine exists
# 1 if virtual machine does not exist
You can’t perform that action at this time.