Skip to content

Instantly share code, notes, and snippets.

View danieldn's full-sized avatar

Daniel Nguyen danieldn

  • Apple
  • Seattle, WA
View GitHub Profile
danieldn /
Last active March 13, 2019 16:54
Wrapper around sysbench for running multiple tests with convenient output
import argparse
import subprocess
Try running
python3 -t cpu -r 2 -n 10000 --threads 12 --time 0 --events 1000
sysbench fileio --file-total-size=6G prepare
danieldn /
Created August 29, 2017 16:30
Installs kubectl with auto completion on CoreOS
# Run from a Coreos user's home directory
set -e
curl -O
chmod +x kubectl
sudo mv kubectl /opt/bin
toolbox dnf -y install bash-completion
echo "source /var/lib/toolbox/test-fedora-latest/usr/share/bash-completion/bash_completion" >> ~/.bashrc
echo "source <(kubectl completion bash)" >> ~/.bashrc