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
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'
@ryanmaclean
ryanmaclean / alfresco_startup_script_modified.sh
Last active August 29, 2015 14:08 — forked from billerby/alfresco
Run Alfresco Start Up Script as a User Other Than Root
#!/bin/sh
#
# chkconfig: 2345 80 30
# description: Alfresco Enterprise
#
# Username YOURUSER used in this case. Replace with one defined locally
# e.g.: with Chef or Puppet.
$YOURUSER = YOURUSER
RETVAL=0
@ryanmaclean
ryanmaclean / gist:5c75597c3a65ec4b7c21
Last active August 29, 2015 14:22 — forked from AggroBoy/gist:1242257
Escape XML with Sed
sed -e 's~&~\&amp;~g' -e 's~<~\&lt;~g' -e 's~>~\&gt;~g' -e 's~\"~\&quot;~g' -e "s~\'~\&apos;~g"
@ryanmaclean
ryanmaclean / coreos-ecs-agent-cloudformation.template
Created December 1, 2015 22:48 — forked from kgorskowski/coreos-ecs-agent-cloudformation.template
AWS CloudFormation Template for CoreOS stable including AWS ECS Agent. Provide ECS - Cluster and IAM Role, otherwise the ECS service will not work
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "CoreOS on EC2: http://coreos.com/docs/running-coreos/cloud-providers/ec2/",
"Mappings" : {
"RegionMap" : {
"eu-central-1" : {
"AMI" : "ami-487d4d55"
},
@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 / 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 / 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 / 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 / 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 / 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