Skip to content

Instantly share code, notes, and snippets.

View opsroller's full-sized avatar
🎯
Focusing

Charles Gardner opsroller

🎯
Focusing
View GitHub Profile
@opsroller
opsroller / bio_unpack.py
Created December 25, 2018 00:15 — forked from XVilka/bio_unpack.py
Unpacks *.BIO and *.CAP EFI capsule files
#!/bin/env python
import ctypes
import struct
import sys
import os
import array
EFI_CAPSULE_GUID = "BD86663B760D3040B70EB5519E2FC5A0".decode('hex') # 3B6686BD-0D76-4030-B70E-B5519E2FC5A0
EFI2_CAPSULE_GUID = "8BA63C4A2377FB48803D578CC1FEC44D".decode('hex') # 4A3CA68B-7723-48FB-803D-578CC1FEC44D
UEFI_CAPSULE_GUID = "B9829153B5AB9143B69AE3A943F72FCC".decode('hex') # 539182B9-ABB5-4391-B69A-E3A943F72FCC
@opsroller
opsroller / lxd.py
Created March 16, 2018 06:02 — forked from haarcuba/lxd.py
ansible inventory module that lists lxd containers
#!/usr/bin/env python3
import sys
import subprocess
import re
def containers():
lxcOutput = subprocess.check_output( ['lxc', 'list' ] )
ips = re.compile( '\d+\.\d+\.\d+\.\d+' ).findall( str( lxcOutput ) )
nodes = dict( hosts = ips, vars = { "ansible_user": "root" } )
inventory = dict( nodes = nodes )

Keybase proof

I hereby claim:

  • I am opsroller on github.
  • I am opsroller (https://keybase.io/opsroller) on keybase.
  • I have a public key ASCymbOaaRO75mJq6QAkcfFFa8HfX86Tm1tMYX1wJ45rNQo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am opsroller on github.
  • I am opsroller (https://keybase.io/opsroller) on keybase.
  • I have a public key whose fingerprint is 11E9 1895 F9BB D748 A845 0513 5755 0C94 BD84 8AA6

To claim this, I am signing this object:

@opsroller
opsroller / openpgp.txt
Created July 17, 2016 01:28
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:a094833b7ea069cbc5cd83758ce03008e1a37127]
@opsroller
opsroller / openpgp.txt
Created July 17, 2016 01:25
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:a094833b7ea069cbc5cd83758ce03008e1a37127]
@opsroller
opsroller / openpgp.txt
Created July 17, 2016 01:24
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:a094833b7ea069cbc5cd83758ce03008e1a37127]
@opsroller
opsroller / openpgp.txt
Created July 17, 2016 01:21
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:a094833b7ea069cbc5cd83758ce03008e1a37127]
@opsroller
opsroller / openpgp.txt
Created July 17, 2016 01:21
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:a094833b7ea069cbc5cd83758ce03008e1a37127]
@opsroller
opsroller / openpgp.txt
Created July 17, 2016 01:20
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:a094833b7ea069cbc5cd83758ce03008e1a37127]