Skip to content

Instantly share code, notes, and snippets.

🍩
Running tf apply 💜

Ryan MacLean ryanmaclean

🍩
Running tf apply 💜
View GitHub Profile
View gist:aa93561a268b34ca49ca3916cceab363
#########################
## Basic Configuration ##
#########################
## @param api_key - string - required
## The Datadog API key to associate your Agent's data with your organization.
## Create a new API key here: https://app.datadoghq.com/account/settings
#
api_key: XXXXX
@ryanmaclean
ryanmaclean / bionic_ova_pubkey_add.sh
Created Mar 9, 2020
Ubuntu Bionic OVA Customization
View bionic_ova_pubkey_add.sh
#! /usr/bin/env bash
set -euo pipefail
VMDK_SHA=$(sha256sum ubuntu-bionic-18.04-cloudimg.vmdk | awk '{print $1}')
OVF_SHA=$(sha256sum ubuntu-bionic-18.04-cloudimg.ovf | awk '{print $1}')
KEY=$(cat ~/.id_rsa.pub)
# OVA Extract
cd
@ryanmaclean
ryanmaclean / Mojave_post_install.md
Last active Aug 10, 2019
Mojave Post-Install Minimum Steps
View Mojave_post_install.md

Start by opening the terminal to get some of this started

  • Open Terminal: cmd+space, type “t”, enter

Turn off natural scrolling

We'll turn off natrual scrolling and quickly reboot in order to resume the rest of the steps.

defaults write -g com.apple.swipescrolldirection -bool NO
sudo reboot
@ryanmaclean
ryanmaclean / netlify.sh
Last active May 5, 2019 — forked from lightdiscord/netlify.sh
Rust and wasm and netlify
View netlify.sh
#!/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
View 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 \
View .zshrc
# -*- 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
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@ryanmaclean
ryanmaclean / conemu_tasks.xml
Created Jan 13, 2019
ConEmu Config with Docker Git WSL Bash Powershell CMD and Far Integrated
View conemu_tasks.xml
<?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 Oct 1, 2018 — forked from 9to5IT/Script_Template.ps1
PowerShell: Script Template
View Script_Template.ps1
#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 Sep 24, 2018
Target Ansible Unattended Upgrades in Ubuntu 16.X+
View task.yml
# 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;
You can’t perform that action at this time.