Skip to content

Instantly share code, notes, and snippets.

View DoriftoShoes's full-sized avatar

Patrick Hoolboom DoriftoShoes

  • Los Angeles, CA
View GitHub Profile
@DoriftoShoes
DoriftoShoes / docker-compose.yaml
Last active September 27, 2020 17:54
Vault + Consul docker-compose
version: '2'
services:
consul1:
image: "consul:latest"
container_name: "consul1"
hostname: "consul1"
ports:
- "8301:8301"
- "8400:8400"
- "8500:8500"
@DoriftoShoes
DoriftoShoes / domipaddr.py
Last active December 7, 2022 12:16
Get ip address of libvirt guest via virsh console
#!/usr/bin/python
# USAGE: python domipaddr.py qemu:///system HOSTNAME DISTRO INTERFACE USERNAME PASSWORD
import sys, pexpect
import pprint
SUPPORTED_DISTROS = [
'ubuntu1404',
'centos6',
'centos7']