Skip to content

Instantly share code, notes, and snippets.

View ryanmaclean's full-sized avatar
Harnessing GenAI 💜

Ryan MacLean ryanmaclean

Harnessing GenAI 💜
View GitHub Profile
@ryanmaclean
ryanmaclean / netlify.sh
Last active May 5, 2019 00:38 — forked from lightdiscord/netlify.sh
Rust and wasm and netlify
#!/usr/bin/env bash
set -euf -o pipefail
cweb_version=0.6.16
curl -Lo cargo-web.gz https://github.com/koute/cargo-web/releases/download/${cweb_version}/cargo-web-x86_64-unknown-linux-gnu.gz
gunzip cargo-web.gz
chmod u+x cargo-web
binaryen_version=version_51
@ryanmaclean
ryanmaclean / ubuntu_18_install.sh
Created April 7, 2019 00:29
ubuntu_18_install.sh
# Docker
sudo apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
@ryanmaclean
ryanmaclean / .zshrc
Created January 22, 2019 16:13
Zsh Profile
# -*- mode: sh -*-
# Loaded by every zsh shell
# Do not put environement variables in it, use
# .profile for it.
if [ "$TMUX" = "" ]; then tmux; fi
# * zplug
export ZPLUG_HOME=${HOME}/.zplug
if [[ ! -d ${ZPLUG_HOME} ]]; then
git clone https://github.com/zplug/zplug $ZPLUG_HOME
@ryanmaclean
ryanmaclean / tmux-cheatsheet.markdown
Last active July 29, 2021 16:36 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@ryanmaclean
ryanmaclean / conemu_tasks.xml
Created January 13, 2019 03:24
ConEmu Config with Docker Git WSL Bash Powershell CMD and Far Integrated
<?xml version="1.0" encoding="utf-8"?>
<key name="Software">
<key name="ConEmu">
<key name=".Vanilla" modified="2019-01-12 19:17:13" build="190108">
<value name="Language" type="string" data="en"/>
<value name="StartType" type="hex" data="02"/>
<value name="CmdLine" type="string" data=""/>
<value name="StartTasksFile" type="string" data=""/>
<value name="StartTasksName" type="string" data="{Bash::bash}"/>
<value name="StartFarFolders" type="hex" data="00"/>
@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: