Skip to content

Instantly share code, notes, and snippets.

View ryanmoon's full-sized avatar

Ryan Moon ryanmoon

View GitHub Profile
[
{ "keys": ["ctrl+shift+x"], "command": "tidy_xml" },
{ "keys": ["ctrl+shift+j"], "command": "prettify_json" }
]
#!/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'
We couldn’t find that file to show.
@ryanmoon
ryanmoon / Find RSA Fingerprint
Created April 24, 2015 04:44
If you ever wanted to know what your SSH Pub key's RSA Fingerprint is
ssh-keygen -lf ~/.ssh/id_rsa.pub
@ryanmoon
ryanmoon / third-octet-ip
Created April 28, 2015 21:38
Print Third Octet Of IP Address (OS X)
ipconfig getifaddr en0 | tr "." " " | awk '{print $3}'
@ryanmoon
ryanmoon / second-octet-ip
Created April 28, 2015 21:39
Print Second Octet of IP Address (OS X)
ipconfig getifaddr en0 | tr "." " " | awk '{print $2}'
@ryanmoon
ryanmoon / first-octet-ip
Created April 28, 2015 21:40
Print First Octet of IP Address (OS X)
ipconfig getifaddr en0 | tr "." " " | awk '{print $1}'
/usr/libexec/PlistBuddy -c "Set :computers:00\:00\:00\:AA\:AA\:AA:cn diane" out.plist
@ryanmoon
ryanmoon / jenikns_ci_on_osx.md
Last active August 29, 2015 14:27 — forked from ostinelli/jenkins_ci_on_osx.md
Setup Jenkins CI on OSX.

Jenkins CI on OSX

Instructions on how to setup Jenkins CI on a Mac for use with test-kitchen. Since I need to test against OS X Images, I'm using Vagrant, the Vagrant VMWare Plugin and VMWare Fusion.

Still a work in progress...

Download & Install dependencies

All of these operations are done with the admin user.

Developer tools

@ryanmoon
ryanmoon / benderplus
Created September 28, 2015 20:25 — forked from anotherspot/benderplus
A modified script for robot clouds bender to include Mavericks Server backups of Service Databases
#!/bin/bash
# Bender
# Written by Chad Nielsen
# Forget Computers, Get Creative!
# Version History
# 1.0 - Initial creation of script for use with a companion launch daemon.
# 1.1 - Moved binary and log locations to /usr/local/robotcloud.
# 1.2 - Code improvements and added compatibility with OS X 10.9 Mavericks.