Skip to content

Instantly share code, notes, and snippets.

View mrhillsman's full-sized avatar
🎓
Learning

Melvin Hillsman mrhillsman

🎓
Learning
View GitHub Profile
@mrhillsman
mrhillsman / prep-ubuntu-1604.sh
Last active March 27, 2018 07:23
Get Ubuntu 16.04 cloud server ready after launch
#!/bin/bash
set -x
if [ ! -f $HOME/.ssh/id_rsa ]; then
ssh-keygen -f $HOME/.ssh/id_rsa -t rsa -N ''
fi
sudo apt update
@mrhillsman
mrhillsman / LXD_SSH_KEY.md
Created March 16, 2018 17:43 — forked from jeanlouisferey/LXD_SSH_KEY.md
How to create a LXD Container with your ssh key in it (and with ssh server in the container)
@mrhillsman
mrhillsman / .tmux.conf
Created January 8, 2018 22:25
tmux configuration
# Set the prefix to ^a.
unbind C-b
set -g prefix ^a
bind a send-prefix
##########################
# Session Initialization #
##########################
set-option -g history-limit 30000
#################
# Mouse Support #
@mrhillsman
mrhillsman / k8s-on-os.sh
Last active January 12, 2018 02:55
notes/script from working to automate Kubernetes on OpenStack
#!/bin/bash
# Create a separate stack user to run DevStack with
sudo useradd -s /bin/bash -d /opt/stack -m stack
# Since this user will be making many changes to your system, it should have sudo privileges:
echo 'stack ALL=(ALL) NOPASSWD: ALL' | sudo tee -a /etc/sudoers.d/stack
echo 'Defaults:stack !requiretty' | sudo tee -a /etc/sudoers.d/stack
sudo su - stack
@mrhillsman
mrhillsman / install-docker-ce.sh
Last active December 15, 2017 14:59
Install Docker CE on Ubuntu
#!/bin/bash
# Check what version of Ubuntu we have installed
source /etc/lsb-release
# Environment variables made available
# DISTRIB_ID=Ubuntu
# DISTRIB_RELEASE=14.04
# DISTRIB_CODENAME=trusty
root@zuul:~# zuul-scheduler -d
----------------------------------------
Exception happened during processing of request from ('73.136.77.13', 56148)
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/paste/httpserver.py", line 304, in wsgi_execute
self.wsgi_start_response)
File "/usr/local/lib/python3.5/dist-packages/webob/dec.py", line 131, in __call__
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/local/lib/python3.5/dist-packages/webob/dec.py", line 196, in call_func
return self.func(req, *args, **kwargs)
@mrhillsman
mrhillsman / openlab-heredocs-kolla.sh
Last active October 14, 2017 06:36
openlab-heredocs-kolla
#!/bin/bash
cat << EOF > /root/multinode
# These initial groups are the only groups required to be modified. The
# additional groups are for more control of the environment.
[control]
# These hostname must be resolvable from your deployment host
infra01
infra02
infra03
@mrhillsman
mrhillsman / openlab-heredocs-nodepool.sh
Last active October 14, 2017 05:14
openlab-heredocs-nodepool
#!/bin/bash
# nodepool configuration
cat << EOF > /etc/nodepool/nodepool.yaml
images-dir: /opt/dib_tmp
elements-dir: /etc/nodepool/elements
zookeeper-servers:
- host: zuul.local