Skip to content

Instantly share code, notes, and snippets.

@dbwest
dbwest / resume.json
Last active January 31, 2024 13:38
resume.json
{
"meta": {
"theme": "stackoverflow"
},
"basics": {
"name": "David West",
"label": "Platform Engineer",
"image": "https://gravatar.com/userimage/6625569/fc0491adf60a81634fc58869ce5edb7f.jpeg?size=256",
"summary": "I am an Infrastructure Automation Specialist that designs and implements systems to reduce lead time, alleviate bottlenecks, and improve cybersecurity posture for organizations.",
"email": "dbwest@skiff.com",
ARCH=$( /bin/arch )
sudo subscription-manager repos --enable "codeready-builder-for-rhel-8-${ARCH}-rpms"
sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm -y
sudo dnf install python3-pip -y
sudo dnf install bashtop -y
#!/usr/bin/env bash
set -eo pipefail
# install dependencies
pkg install git cmake make g++ wget boost boost-static -y
# make a source directory to store the sauce in
mkdir -p ~/src
cd ~/src
version: "3.7"
services:
zalenium:
image: dosel/zalenium
user: seluser:<gid> # required when running in a swarm without sudo - use the <gid> of docker group of swarm
hostname: zalenium
deploy:
placement:
constraints:

Keybase proof

I hereby claim:

  • I am dbwest on github.
  • I am dbwest (https://keybase.io/dbwest) on keybase.
  • I have a public key ASCIn7Zyz8xHkSgFk8O_8aKLfA3lBJ7b0y2qQf26HGPWwAo

To claim this, I am signing this object:

@dbwest
dbwest / hosts
Created June 20, 2019 17:58
example hosts file to use with es scripts
[es]
eshostname1
eshostname2
eshostname3
@dbwest
dbwest / cluster_health.yml
Created June 20, 2019 17:58
get es cluster health
ansible -i hosts all -m shell -a "curl http://127.0.0.1:9200/_cluster/health?pretty"
@dbwest
dbwest / get_es_ymls.sh
Created June 20, 2019 17:57
print out all the es yamls in your cluster
ansible --ask-become-pass -b -i hosts all -m shell -a "cat /etc/elasticsearch/elasticsearch.yml"
@dbwest
dbwest / get_perms.sh
Created June 20, 2019 17:56
get permissions for es log dirs 2 deep
ansible --ask-become-pass -b -i hosts all -m shell -a "tree -pufidg -L 2 /data"
@dbwest
dbwest / install_gpu_docker.sh
Last active May 19, 2019 21:13 — forked from im7mortal/install_gpu_docker.sh
Install docker and nvidia-docker
# Disco!
sudo apt-get update
sudo apt-get install linux-image-extra-$(uname -r) linux-image-extra-virtual -y
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common -y
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" -y
sudo apt-get update
sudo apt-get install docker.io -y
wget -P /tmp https://github.com/NVIDIA/nvidia-docker/releases/download/v1.0.1/nvidia-docker_1.0.1-1_amd64.deb
sudo dpkg --ignore-depends=docker-ce -i /tmp/nvidia-docker*.deb && rm /tmp/nvidia-docker*.deb