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 / create-win10-usb-on-mac.sh
Last active May 6, 2024 20:29 — forked from bmatcuk/create-usb.sh
Create a Bootable UEFI Windows USB stick from an ISO on Apple macOS
# Just a quick update for GPT and to use `rsync` instead of `cp`!
# That means this applies to UEFI boot, though for legacy BIOD boot, feel free to swap
# GPT to MBR below.
# Requires https://homebrew.sh to split the install.wim file
brew install wimlib
# First, we need to find our device. BEFORE inserting your USB drive, run the
# following:
diskutil list
@ryanmaclean
ryanmaclean / stream_deck_linux_ubuntu_studio.md
Last active August 9, 2020 06:10
Linux Stream Deck XFCE

Stream Deck Config for Ubuntu Studio 20.04

Note: uses XFCE as the desktop manager

Requires streamdeck and streamdeck-ui Python packages to be installed. May require xhost + in order to config the first time.

Some icons from Nerd or Die (free) and Eva (open source), note that these are all fairly specific at the moment and will definitely be changing. In particular, the screenshots are just me adding placeholders.

#########################
## 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 March 9, 2020 18:35
Ubuntu Bionic OVA Customization
#! /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 August 10, 2019 20:32
Mojave Post-Install Minimum Steps

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 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"/>