Skip to content

Instantly share code, notes, and snippets.

View ryanmoon's full-sized avatar

Ryan Moon ryanmoon

View GitHub Profile
@ryanmoon
ryanmoon / imagr_config.plist
Last active August 17, 2017 18:35
Nested workflow example for imagr, with a default autorun workflow, named WORKFLOW.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<!-- Globals -->
<key>autorun</key>
<string>WORKFLOW</string>
<key>autorun_time</key>
<integer>300</integer>
<key>default_workflow</key>

Keybase proof

I hereby claim:

  • I am ryanmoon on github.
  • I am ryanmoon (https://keybase.io/ryanmoon) on keybase.
  • I have a public key whose fingerprint is 6A1C 0765 20D6 35A3 3115 441F 55FD D570 5FEF 3288

To claim this, I am signing this object:

@ryanmoon
ryanmoon / Automount_Fixer.sh
Created February 22, 2017 01:04
Fix for Xsan Automounting Issues
#!/bin/bash
####################
# Automount Fixer
####################
# Install outset
# Place this script with an .sh in /usr/local/outset/boot-every
# Automount problems solved-ish
# Ryan Moon
# Diskutil value should be set to your ideal value from the output of diskutil list | wc -l
# San_name should be set to the name of your SAN
@ryanmoon
ryanmoon / MacOS Power Settings
Created July 21, 2016 00:22
MacOS Power Settings for use with Outset at boot-every
#!/bin/bash
###
# Outset script for commands to run at boot-every and set power settings
###
pmset repeat wakeorpoweron MTWRFSU 7:00:00
pmset -a displaysleep <%= @displaysleep %> halfdim 1
pmset -a disksleep 0
pmset -a sleep 0
@ryanmoon
ryanmoon / instructions.md
Created June 22, 2016 06:05 — forked from NickTomlin/instructions.md
iTerm 2 "done" notifications

Add a trigger in Iterm2>Prefernces>Advanced>Triggers

(Those who have paid for Growl can simply use the growl action)

regex: #done#
action: run a command
arguments: /usr/local/bin/notify "Done" (ensure that you've copied the script to that location and made it executable)
@ryanmoon
ryanmoon / iterm2 cljsbuild triggers
Created June 22, 2016 05:57 — forked from thomaschrstnsn/iterm2 cljsbuild triggers
iTerm2 2.0 supports regex triggers for highlighting terminal text matching. This is a collection of regexes for cljsbuild, clojurescript.test and clojure.test highlighters
;; cljsbuild warnings
^WARNING:.* ;; yellow on black
;; cljs.test in phantom-js errors, i.e. "ReferenceError: Can't find variable: React"
^\w*rror:.* ;; red foreground
;; test success, failures, errors (red/green bar)
0 (errors|failures).* ;; green background
(?!0)\d+ (errors|failures).* ;; red background
@ryanmoon
ryanmoon / gist:263ed8498da7fd9b8f343dbc29d9fc95
Created June 22, 2016 05:57 — forked from robraux/gist:aa9c266ec8115e91b923
Mac 10.10.5 notification w/Iterm2
1. Install: https://github.com/julienXX/terminal-notifier
2. Have iterm2: https://www.iterm2.com/
3. In iterm2, setup a trigger on your "Profile" => "Advanced" => "Triggers", like
https://www.evernote.com/l/AAX11ukjn5pDSYrbR54z_vNJuv-U6jyU6BAB/image.png
Where regexp is: "Deployment .+ for .+ on deployment id .*"
and params are "/usr/local/bin/terminal-notifier -title "Deployment finished" -message "\0"
4. That should do it. You can test it out by running:
sleep 5 && echo "Deployment succeeded for Peach-API on deployment id d-GXY9RDCGB
@ryanmoon
ryanmoon / readme.md
Created June 22, 2016 05:57 — forked from spinscale/readme.md
Using iTerm2 notification capabilities

Notification of finished builds in iTerm2

iTerm2 has a neat feature called a trigger, which you can use to notify you about finished maven builds (failure or success) or anything else happening in your console.

Install terminal notifier

brew install terminal-notifier
@ryanmoon
ryanmoon / rubocop.yml
Created June 15, 2016 19:56
rubocop for use with Chef Cookbooks
AllCops:
Exclude:
- vendor/**/*
- Guardfile
AlignParameters:
Enabled: false
ClassLength:
Enabled: false
CyclomaticComplexity:
@ryanmoon
ryanmoon / Guardfile
Created June 15, 2016 19:56
Guardfile for use with Chef Cookbooks
guard "foodcritic", :cookbook_paths => ".", :all_on_start => false, :cli => "--epic-fail any" do
watch(%r{attributes/.+\.rb$})
watch(%r{providers/.+\.rb$})
watch(%r{recipes/.+\.rb$})
watch(%r{resources/.+\.rb$})
watch(%r{^templates/(.+)})
watch('metadata.rb')
end
notification :terminal_notifier