Skip to content

Instantly share code, notes, and snippets.

View glenselle's full-sized avatar
🙌
Blessed. Soli Deo Gloria!

Glen Selle glenselle

🙌
Blessed. Soli Deo Gloria!
View GitHub Profile
@glenselle
glenselle / liftoff.sh
Last active September 16, 2020 23:54
Simple CentOS Docker HA Setup
echo Updating the CentOS installation...
yum -y update && yum -y upgrade
echo Adding firewall rules for ssh/http/https...
systemctl enable firewalld
systemctl start firewalld
firewall-cmd --add-service=ssh --permanent
firewall-cmd --add-service=http --permanent
firewall-cmd --add-service=https --permanent
firewall-cmd --reload
@glenselle
glenselle / bridge-diff-subnet.sh
Last active June 11, 2023 02:14
Raspberry PI4 Wifi to Eth Bridge
#!/usr/bin/env bash
set -e
[ $EUID -ne 0 ] && echo "run as root" >&2 && exit 1
apt-get update && apt install -y dnsmasq
# Create a directory where we will store our `iptables` forwarding rules.
mkdir -p /etc/iptables
@glenselle
glenselle / .bashrc
Last active March 24, 2018 17:39 — forked from natelandau/.bash_profile
Bash Settings
# ---------------------------------------------------------------------------
#
# Description: This file holds my current BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@glenselle
glenselle / vimrc
Last active October 21, 2015 18:08
VIM configuration file for machines without any VIM love
syntax on
filetype on
set number
highlight LineNr ctermfg=grey
set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab