Skip to content

Instantly share code, notes, and snippets.

Avatar

Daniel Nguyen danieldn

View GitHub Profile
@danieldn
danieldn / run_sysbench.py
Last active Mar 13, 2019
Wrapper around sysbench for running multiple tests with convenient output
View run_sysbench.py
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
@danieldn
danieldn / install_kubectl_coreos.sh
Created Aug 29, 2017
Installs kubectl with auto completion on CoreOS
View install_kubectl_coreos.sh
# 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
You can’t perform that action at this time.