Skip to content

Instantly share code, notes, and snippets.

View gist:eafae5476e2c4d23f78c0bfab6d1207f
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
View android_bananode.sh
#!/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
View docker-compose.yaml
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:
View keybase.md

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 Jun 20, 2019
example hosts file to use with es scripts
View hosts
[es]
eshostname1
eshostname2
eshostname3
@dbwest
dbwest / cluster_health.yml
Created Jun 20, 2019
get es cluster health
View cluster_health.yml
ansible -i hosts all -m shell -a "curl http://127.0.0.1:9200/_cluster/health?pretty"
@dbwest
dbwest / get_es_ymls.sh
Created Jun 20, 2019
print out all the es yamls in your cluster
View get_es_ymls.sh
ansible --ask-become-pass -b -i hosts all -m shell -a "cat /etc/elasticsearch/elasticsearch.yml"
@dbwest
dbwest / get_perms.sh
Created Jun 20, 2019
get permissions for es log dirs 2 deep
View get_perms.sh
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 — forked from im7mortal/install_gpu_docker.sh
Install docker and nvidia-docker
View install_gpu_docker.sh
# 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
View install_kubeadm.sh
apt-get update && apt-get install -y apt-transport-https curl
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
cat <<EOF >/etc/apt/sources.list.d/kubernetes.list
deb https://apt.kubernetes.io/ kubernetes-xenial main
EOF
apt-get update
apt-get install -y kubelet kubeadm kubectl
apt-mark hold kubelet kubeadm kubectl