I hereby claim:
- I am benjamin-hering on github.
- I am benjaminhering (https://keybase.io/benjaminhering) on keybase.
- I have a public key ASCCG2Ykeq1ASJnMj6SQ2zzROWw97OzOXCn6jsCPJRC7ego
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
# Ubuntu packages needed | |
sudo apt install ruby ruby-dev git vim gcc make g++ zlib1g zlib1g-dev -y | |
# From the directory containing the gem file | |
gem install bundle | |
bundle install |
#!/bin/bash | |
# Takes an IP and a duration to test | |
# Writes a timestamp and packet loss to output | |
# Can then be piped to log files | |
if [ $# -ne 2 ]; then | |
echo 'takes two args. seconds count & IP' | |
echo 'example network-pingtest.sh 60 8.8.8.8' | |
exit 1 |
#!/bin/bash | |
# | |
# | |
# Author: Benjamin Hering - bhering@lendingclub.com | |
# | |
# | |
# Sets up the Duo PAM module for SSH Jumphosts and the like | |
# See https://duo.com/docs/duounix for more info on the Duo setup | |
# | |
# Root check |
#!/bin/bash | |
# A script for setting up a demo server to show the benefits of STS on a Raspberry PI | |
# Cobbled together from http://blog.claytonn.com/raspberry-pi-creating-access-point/ | |
# and https://andrewmichaelsmith.com/2013/08/raspberry-pi-wi-fi-honeypot/ | |
# Tested on Raspberry Pi 3 with the built in wifi card | |
# Checking that it's run with root priviledges/sudo for install | |
if [ "$EUID" -ne 0 ] | |
then echo "Please run as root" |
#!/bin/bash | |
# Sets up MFA via Google Authenticator | |
# I'm not responsible if you lock yourself out of your own box running this script. | |
# Have backups. Test your MFA SSH login with an existing session open to roll back changes if something goes wrong. | |
# Built and tested for the raspberry pi, but should be the same or similar for Debian/Ubuntu based systems | |
# Installing the packages | |
sudo apt-get install libpam-google-authenticator -y |
#!/bin/bash | |
# | |
# Installation script to install the Ubiquiti UniFi Controller 5 on a Raspberry PI | |
# Steps shamelessly stolen from http://www.lowefamily.com.au/2016/06/02/installing-ubiquiti-unifi-controller-5-on-raspberry-pi | |
# Checking that it's run with root priviledges/sudo for install | |
if [ "$EUID" -ne 0 ] | |
then echo "Please run as root" | |
exit | |
fi |
<!doctype html> | |
<title>Site Maintenance</title> | |
<style> | |
body { text-align: center; padding: 150px; } | |
h1 { font-size: 50px; } | |
body { font: 20px Helvetica, sans-serif; color: #333; } | |
article { display: block; text-align: left; width: 650px; margin: 0 auto; } | |
a { color: #dc8100; text-decoration: none; } | |
a:hover { color: #333; text-decoration: none; } | |
</style> |