Skip to content

Instantly share code, notes, and snippets.

⚡️
^_^

Nick Barrett Fizzadar

⚡️
^_^
Block or report user

Report or block Fizzadar

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 slack_lite.py
from threading import Thread
from time import sleep
import webview
def load_slack():
sleep(1)
# OSX specific
webkit = webview.cocoa.BrowserView.instance.webkit
View emails_mailchimp_thinks_are_invalid.txt
åliå@test.com
test.@test.com
test!@test.com
View print_with_input_line.py
from time import sleep
from colorama import Cursor
print()
def print_line(line):
print(Cursor.UP() + line + ' ')
print('input [host.edtd.net] -->')
@Fizzadar
Fizzadar / a_virginmedia_imgur
Last active May 21, 2016
Virgin Media UK / imgur.com traceroute
View a_virginmedia_imgur
# mtr imgur.com --report --report-cycles 3
HOST: Loss% Snt Last Avg Best Wrst StDev
...
4.|-- hari-core-2b-xe-102-0.network.virginmedia.net 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
Fizzadar / install.txt
Last active Mar 7, 2016
Setting up usable IPMI on OSX via SSH tunnel
View install.txt
+ 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 10.0.2.2:SSHFORWARDPORT
@Fizzadar
Fizzadar / gist:953ec565d10a1ef9e1d5
Created Feb 23, 2016
pyinfra vs. Ansible: 150 hosts
View gist:953ec565d10a1ef9e1d5
root@pyinfra-perf-tests:/opt/performance# PYINFRA_TEST_HOSTS=150 ./run_tests.sh
### pyinfra Performance Tests
--> Running with 150 hosts
--> Removing any containers
--> Spawning 150 containers...
--> Resting for 5s...
--> Running tests: pyinfra -i tests/deploy/inventory.py tests/deploy/deploy.py
--> First complete in 17.239548271 seconds
--> Second complete in 8.706844236 seconds
@Fizzadar
Fizzadar / gist:486d2b4df43816c3ba78
Last active Feb 7, 2016
why_openbsd_tops_linux
View gist:486d2b4df43816c3ba78
$ pyinfra -i inventories/dev.py --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'
View paramiko_agent_test.py
import logging
from socket import gaierror, error as socket_error
from paramiko import (
SSHClient, MissingHostKeyPolicy, SSHException, AuthenticationException
)
from inventory import ALL
@Fizzadar
Fizzadar / install.sh
Last active Feb 1, 2016
uWSGI install on OSX
View install.sh
# Sick of OSX bullshit
# `brew link openssl --force` first
LDFLAGS="-L/usr/local/opt/openssl/lib" LIBRARY_PATH=/usr/local/lib pip install uwsgi -v
@Fizzadar
Fizzadar / gist:72337c3b548f7eef8d45
Last active Oct 3, 2017
Why Ansible is shit (1.8.2)
View gist:72337c3b548f7eef8d45
playbook -i inventories/development playbook.yml --extra-vars 'ansible_ssh_private_key=files/insecure_private_key' -vvv
PLAY [all] ********************************************************************
TASK: [Ensure /opt/bin directory] *********************************************
...
fatal: [192.168.255.12] => SSH encountered an unknown error during the connection. We recommend you re-run the command using -vvvv, which will enable SSH debugging output to help diagnose the issue
fatal: [192.168.255.10] => SSH encountered an unknown error during the connection. We recommend you re-run the command using -vvvv, which will enable SSH debugging output to help diagnose the issue
fatal: [192.168.255.11] => SSH encountered an unknown error during the connection. We recommend you re-run the command using -vvvv, which will enable SSH debugging output to help diagnose the issue
fatal: [192.168.255.13] => SSH encountered an unknown error during the connection. We recommend you re-run the command using -vvvv, which will e
You can’t perform that action at this time.