Skip to content

Instantly share code, notes, and snippets.

View Fizzadar's full-sized avatar

Nick Mills-Barrett Fizzadar

View GitHub Profile
arch -x86_64 /usr/local/bin/brew install libvirt
# FFS, what a shitshow
CPATH="/opt/vagrant/embedded/include/ruby-3.0.0/ruby" \
CONFIGURE_ARGS='with-ldflags="-L/opt/vagrant/embedded/lib -I/opt/vagrant/embedded/include" with-libvirt-include=/usr/local/include with-libvirt-lib=/usr/local/lib' \
GEM_HOME=~/.vagrant.d/gems \
GEM_PATH=$GEM_HOME:/opt/vagrant/embedded/gems \
PATH=/opt/vagrant/embedded/bin:$PATH \
vagrant plugin install vagrant-libvirt

Oxygem Individual Contributor License Agreement

Thank you for your interest in contributing to open source software projects (“Projects”) made available by Oxygem or its affiliates (“Oxygem”). This Individual Contributor License Agreement (“Agreement”) sets out the terms governing any source code, object code, bug fixes, configuration changes, tools, specifications, documentation, data, materials, feedback, information or other works of authorship that you submit or have submitted, in any form and in any manner, to Oxygem in respect of any of the Projects (collectively “Contributions”). If you have any questions respecting this Agreement, please contact

You agree that the following terms apply to all of your past, present and future Contributions. Except for the licenses granted in this Agreement, you retain all of your right, title and interest in and to your Contributions.

Copyright License. You hereby grant, and agree to grant, to Oxygem a non-exclusive, perpetual, irrevocable,

from threading import Thread
from time import sleep
import webview
def load_slack():
# OSX specific
webkit = webview.cocoa.BrowserView.instance.webkit
Fizzadar / emails_mailchimp_thinks_are_invalid.txt
Created March 6, 2017 15:31
MailChimp's email "validation"
from time import sleep
from colorama import Cursor
def print_line(line):
print(Cursor.UP() + line + ' ')
print('input [] -->')
Fizzadar / a_virginmedia_imgur
Last active May 21, 2016 11:14
Virgin Media UK / traceroute
# mtr --report --report-cycles 3
HOST: Loss% Snt Last Avg Best Wrst StDev
4.|-- 0.0% 3 13.4 11.7 10.6 13.4 1.2
5.|-- ??? 100.0 3 0.0 0.0 0.0 0.0 0.0
Fizzadar / install.txt
Last active March 7, 2016 13:30
Setting up usable IPMI on OSX via SSH tunnel
+ Get Virtualbox
+ Get Windows trial Virtualbox image
+ Boot Winblows, install Java 1.6 (good luck, signup for Oracle and all)
+ SSH forward on host OSX
+ Get ProxyCap in Windows
+ Set ProxyCap to proxy *everything* via
Fizzadar / gist:953ec565d10a1ef9e1d5
Created February 23, 2016 23:39
pyinfra vs. Ansible: 150 hosts
root@pyinfra-perf-tests:/opt/performance# PYINFRA_TEST_HOSTS=150 ./
### pyinfra Performance Tests
--> Running with 150 hosts
--> Removing any containers
--> Spawning 150 containers...
--> Resting for 5s...
--> Running tests: pyinfra -i tests/deploy/ tests/deploy/
--> First complete in 17.239548271 seconds
--> Second complete in 8.706844236 seconds
Fizzadar / gist:486d2b4df43816c3ba78
Last active February 7, 2016 15:48
$ pyinfra -i inventories/ --run server.user 'git --version' -v
--> Starting operation: Server/Shell
openbsd56.pyinfra: >>> sh -c 'git --version'
centos6.pyinfra: >>> sh -c 'git --version'
debian8.pyinfra: >>> sh -c 'git --version'
ubuntu14.pyinfra: >>> sh -c 'git --version'
debian7.pyinfra: >>> sh -c 'git --version'
ubuntu15.pyinfra: >>> sh -c 'git --version'
centos7.pyinfra: >>> sh -c 'git --version'
import logging
from socket import gaierror, error as socket_error
from paramiko import (
SSHClient, MissingHostKeyPolicy, SSHException, AuthenticationException
from inventory import ALL