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
danieldn / install_kubectl_coreos.sh
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 https://storage.googleapis.com/kubernetes-release/release/v1.6.1/bin/linux/amd64/kubectl
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
@danieldn
danieldn / run_sysbench.py
Last active March 13, 2019 16:54
Wrapper around sysbench for running multiple tests with convenient output
import argparse
import subprocess
"""
Try running
python3 run_sysbench.py -t cpu -r 2 -n 10000 --threads 12 --time 0 --events 1000
OR
sysbench fileio --file-total-size=6G prepare