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 / red_text.sh
Created July 26, 2015 14:03
Red Text for Bash
# Start red text with \e[1;31m
# Set back to default with \e[0m
echo -e "\e[1;31m WARNING RED TEXT \e[0m"
@ryanmaclean
ryanmaclean / sublime_linter_markdown_plugin.md
Last active August 29, 2015 14:26
Sublime Linter, Markdown, Markdown Preview

Package Control Messages

SublimeLinter:

    ____        _     _ _                _     _       _
   / ___| _   _| |__ | (_)_ __ ___   ___| |   (_)_ __ | |_ ___ _ __
   \___ \| | | | '_ \| | | '_ ` _ \ / _ \ |   | | '_ \| __/ _ \ '__|
    ___) | |_| | |_) | | | | | | | |  __/ |___| | | | | ||  __/ |
{
"Metadata": {
"DcosImageCommit": "fb58e5c0a02fe44e8df2baf92de72bea3030f34b",
"TemplateGenerationDate": "2015-06-05 23:02:57.870011"
},
"Description": "Launching the Mesosphere DCOS cluster",
"Parameters": {
"KeyName": {
"Type": "AWS::EC2::KeyPair::KeyName",
"Description": "Name of SSH key to link"
@ryanmaclean
ryanmaclean / install_ghost.sh
Created July 31, 2015 02:43
Install Ghost.org Blogging Platform
# Install Ghost
# from Dockerfiles - http://dockerfile.github.io/#/ghost
RUN \
cd /tmp && \
wget https://ghost.org/zip/ghost-latest.zip && \
unzip ghost-latest.zip -d /ghost && \
rm -f ghost-latest.zip && \
cd /ghost && \
npm install --production && \
sed 's/127.0.0.1/0.0.0.0/' /ghost/config.example.js > /ghost/config.js && \
@ryanmaclean
ryanmaclean / el_capitan_dmg_virtualbox.sh
Last active October 24, 2017 11:05
Convert El Capitan DMG For Use with Oracle VirtualBox on Mac OSX
#!/bin/bash
# Modified version of this script - http://ifreaky.net/os-x-10-11-el-capitan-in-virtual-boxvmwareparallels-desktop/
# Fixed typos and logic
# This will require about 30GB of space
# The process will take roughly 3 minutes on a MacBook Retina 2015 with 512GB SSD
# It will definitely take longer on slower computers...
cd ~/Desktop
sudo gem install iesd
iesd -i /Applications/Install\ OS\ X\ 10.11\ Developer\ Beta.app -o el-capitan.dmg -t BaseSystem
@ryanmaclean
ryanmaclean / windows_devops_desktop.bat
Last active August 29, 2015 14:26
Windows Desktop Setup batch File Using Chocolatey
choco install git.install googlechrome firefox 7zip.install adobereader atom vlc jre8 autohotkey.portable ruby skype putty python virtualbox paint.net curl conemu sublimetext3 wget keepass.install cygwin windirstat itunes sourcetree vagrant baretail cyg-get beyondcompare pscx sourcecodepro adblockplusie adblockplusfirefox adblockpluschrome virtualbox.extensionpack windowsazurepowershell far lastpass golang docker github awscli wincommandpaste cyberduck.install clink.install scala hipchat xming royalts baregrep jivkok.sublimetext3.packages tunnelier p4v boot2docker pencil less feeddemon slack gotomeeting eclipse-standard-luna telegram.install launchy logfusion lightshot thegiant.fonts mc phraseexpress -y
@ryanmaclean
ryanmaclean / list_ec2_instances.sh
Created August 6, 2015 21:41
Bash - List All EC2 Instances - Readable
aws ec2 describe-instances | grep Value | awk '{print $2}' | cut -c2- | cut -d "\"" -f 1
@ryanmaclean
ryanmaclean / cs50_c_lib_install.sh
Last active September 26, 2018 13:19
Harvard CS50 Library Install with Brew on Apple Macinstosh OSX
#!/bin/bash
# ^^ This is a nifty way to make the command run :)
############################################################################
# For the first few assignment in the (possibly free) Harvard CS50 course #
# https://cs50.harvard.edu/ #
# This has been tested on Mountain Lion and Yosemite, should still work #
# with El Capitan when released. #
# This uses Homebrew, more info here: http://brew.sh/ #
# Note: I've left the "code smell" in, in order to be more verbose #
@ryanmaclean
ryanmaclean / OSX - Scala Akka Play Demo.md
Last active August 29, 2015 14:27
10 minute project with scala akka and play

#10 minute project with scala akka and play

Steps to Take

  • install java
  • install scala
  • install akka
  • install play
  • check sqlite3
@ryanmaclean
ryanmaclean / ubuntu_devops_workstation_setup.md
Last active December 6, 2024 07:50
Ubuntu DevOps Workstation Setup

Ubuntu for DevOps and SRE Work

sudo sed -i '/cdrom/d' /etc/apt/sources.list

I'd certainly recommend moving to keys over passwords, but for now, it'll do...

sudo apt-get install -y openssh-server
sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.factory-defaults