View .gitignore
venv | |
pos.txt | |
neg.txt | |
plot.png |
View git_clean_branch.py
#!/usr/bin/env python | |
import sys | |
import argparse | |
import subprocess | |
REMOTE = 'origin' | |
class CmdError(RuntimeError): |
View django_behavioral.md
Behavioral Tests for Django
Table of Contents
View interaction_topology_evolution.py
#!/usr/env/bin python3 | |
# USAGE: LIB=work_space python3 interaction_topology_evolution.py | |
import random | |
import sys | |
import itertools | |
import math | |
import networkx as nx | |
import numpy as np | |
import os | |
from ctypes import cdll |
View simulations.py
#!/usr/bin/env python | |
import sys | |
import numpy as np | |
from numpy.fft import rfft, rfftfreq, irfft | |
from matplotlib import pyplot as plt | |
from scipy.signal import csd, welch | |
# install via `pip install git+https://github.com/aaren/wavelets` | |
from wavelets import WaveletAnalysis |
View web-ui-testing.md
Web UI Testing Survey
Table of Contents
View Allocate ports.md
Example usage:
$ python gimme_port.py
usage: gimme_port.py [-r|--resolve] NAME
$ python gimme_port.py muhc.ca.http
29595
$ python gimme_port.py staging.muhc.ca.http
port 31079 is in use by 'nc' (pid: 28569), use --resolve
View docker-entrypoint-dev.md
In a fresh checkout:
cat provision
# #!/bin/bash
#
# echo step 1 >> /report.log
# echo step 2 >> /report.log
docker build -t entrypoint-exp01 .
# ...
View mysqldo.sh
#!/bin/bash | |
# Executes the provided arguments as a shell command with a twist: if mysql is | |
# not already running: starts mysql, runs the commands, and stops mysql. | |
# Example usage: | |
# - mysqldo mysql -u root -p # will open an interactive shell and will stop mysql | |
# # when you leave the shell | |
# - mysqldo 'echo "show databases;" | mysql -u root -p"my_password"' | |
# # note that if your commands involve pipes or anything that the shell | |
# # interpretter would not pass to mysqldo as arguments, you should wrap the | |
# # entire command in quotes. |
NewerOlder