Skip to content

Instantly share code, notes, and snippets.

View ryanmaclean's full-sized avatar
🍩
Running tf apply 💜

Ryan MacLean ryanmaclean

🍩
Running tf apply 💜
View GitHub Profile
@ryanmaclean
ryanmaclean / Script_Template.ps1
Created October 1, 2018 00:51 — forked from 9to5IT/Script_Template.ps1
PowerShell: Script Template
#requires -version 2
<#
.SYNOPSIS
<Overview of script>
.DESCRIPTION
<Brief description of script>
.PARAMETER <Parameter_Name>
<Brief description of parameter input required. Repeat this attribute if required>
@ryanmaclean
ryanmaclean / task.yml
Created September 24, 2018 17:33
Target Ansible Unattended Upgrades in Ubuntu 16.X+
# Trying target unattended-upgrades, works every time
# from here: https://github.com/ansible/ansible/issues/25414
- name: Wait for automatic system updates
shell: while pgrep unattended; do sleep 10; done;
@ryanmaclean
ryanmaclean / frigga.txt
Created September 24, 2018 16:46 — forked from johnrengelman/frigga.txt
Netflix Frigga Naming Schema
ASG name = frigga.group = app-stack-detail(-options)-push
frigga.cluster = app-stack-detail
frigga.push = v<sequence)
options:
- c0<value> = countries
- d0<value = devPhase
- h0<value> = hardware
@ryanmaclean
ryanmaclean / edge_router_lite_vpn.md
Last active December 9, 2021 19:04
Create VPN for Ubiquiti Edge Router Lite 3

Edge Router Lite VPN Config Script

First, get into config mode with configure

From here, edit the following interface, pool. start and end, PSK, local users and DNS server (add more if needed):

set vpn ipsec ipsec-interfaces interface eth0
set vpn l2tp remote-access dhcp-interface eth0
set vpn l2tp remote-access client-ip-pool start 10.10.10.150
### Keybase proof
I hereby claim:
* I am ryanmaclean on github.
* I am ryanmaclean (https://keybase.io/ryanmaclean) on keybase.
* I have a public key ASCJ9UIIQloDX06qKT-vRGTLqc2zqlYSVfbpilZ8VKZKKgo
To claim this, I am signing this object:
@ryanmaclean
ryanmaclean / salt_on_mac.md
Last active March 10, 2024 10:38
Install and Run Salt Stack on macOS Servers and Desktops

Install Salt on macOS

Install Homebrew

Install Dependencies

brew install python swig zmq
@ryanmaclean
ryanmaclean / ebs.sh
Created December 18, 2016 19:10
GitLab Runner EBS
sudo mkfs -t ext4 /dev/xvdf
sudo mkdir /ebscache
sudo mount /dev/xvdf /ebscache
sudo cp /etc/fstab /etc/fstab.orig
echo "/dev/xvdf /ebscache ext4 defaults,nofail 0 2" | sudo tee -a /etc/fstab
sudo mkdir /ebscache/cache
sudo mkdir /ebscache/build-cache
sudo chown gitlab-runner:gitlab-runner /ebscache/cache
sudo chown gitlab-runner:gitlab-runner /ebscache/build-cache
@ryanmaclean
ryanmaclean / efs.sh
Last active December 9, 2021 19:03
Gitlab Runner EFS (NFS)
sudo mkdir /ebscache/cache
sudo mkdir /ebscache/build-cache
sudo chown gitlab-runner:gitlab-runner /ebscache/cache
sudo chown gitlab-runner:gitlab-runner /ebscache/build-cache
sudo chmod -R 755 /ebscache/cache
sudo chmod -R 755 /ebscache/build-cache
sudo rm -rf /cache
sudo ln -s /ebscache/cache /cache
sudo rm -rf /build-cache
sudo ln -s /ebscache/build-cache /build-cache
@ryanmaclean
ryanmaclean / gist:e8e6096b652c3e23e4855e34dad0fa71
Created November 19, 2016 16:44 — forked from sgergely/gist:3793166
Midnight Commander Keyboard Shortcuts for Mac OSX
----- Esc -----
Quick change directory: Esc + c
Quick change directory history: Esc + c and then Esc + h
Quick change directory previous entry: Esc + c and then Esc + p
Command line history: Esc + h
Command line previous command: Esc + p
View change: Esc + t (each time you do this shortcut a new directory view will appear)
Print current working directory in command line: Esc + a
Switch between background command line and MC: Ctrl + o
Search/Go to directory in active panel: Esc + s / Ctrl + s then start typing directory name
@ryanmaclean
ryanmaclean / ubuntu_mount_efs.md
Last active October 25, 2024 10:25
Mount EFS on Ubuntu Linux

EFS Mounting on Ubuntu

Get EFS ID

aws configure set preview.efs true
aws efs describe-file-systems --profile TEST --region us-east-2
{