Skip to content

Instantly share code, notes, and snippets.

View ryanmoon's full-sized avatar

Ryan Moon ryanmoon

View GitHub Profile
@ryanmoon
ryanmoon / OSX: keychain_menu_bar_via_terminal
Last active October 8, 2018 23:10
OS X: Keychain Menu Bar via Terminal
defaults write com.apple.systemuiserver menuExtras -array-add '/Applications/Utilities/Keychain Access.app/Contents/Resources/Keychain.menu'; killall SystemUIServer
[
{ "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 / GistList!.md
Created February 10, 2015 20:23
Try GistList for iOS! http://gistlist.io/

##alt text GistList: TODO for coders alt text

@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}'
@ryanmoon
ryanmoon / fourth-octet-ip
Created April 28, 2015 21:41
Print Fourth Octet of IP Address (OS X)
ipconfig getifaddr en0 | tr "." " " | awk '{print $4}'