Skip to content

Instantly share code, notes, and snippets.

View ryanmoon's full-sized avatar

Ryan Moon ryanmoon

View GitHub Profile
@ryanmoon
ryanmoon / isohybrid.pl
Created September 12, 2018 19:58 — forked from jsarenik/isohybrid.pl
isohybrid.pl from Syslinux-6.03
#!/usr/bin/perl
## -----------------------------------------------------------------------
##
## Copyright 2002-2008 H. Peter Anvin - All Rights Reserved
## Copyright 2009 Intel Corporation; author: H. Peter Anvin
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation, Inc., 53 Temple Place Ste 330,
## Boston MA 02111-1307, USA; either version 2 of the License, or
@ryanmoon
ryanmoon / boxstarter.ps1
Last active February 2, 2022 20:37 — forked from jessfraz/boxstarter.ps1
Boxstarter Commands for a new Windows box.
# Description: Boxstarter Script
# Original Author: Jess Frazelle <jess@linux.com>
# Forked from: https://gist.github.com/jessfraz/7c319b046daa101a4aaef937a20ff41f
# Modified by: Moon
# Last Updated: 2022-02-03
#
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
@ryanmoon
ryanmoon / s3.sh
Created October 28, 2017 04:29 — forked from chrismdp/s3.sh
Uploading to S3 in 18 lines of Shell (used to upload builds for http://soltrader.net)
# You don't need Fog in Ruby or some other library to upload to S3 -- shell works perfectly fine
# This is how I upload my new Sol Trader builds (http://soltrader.net)
# Based on a modified script from here: http://tmont.com/blargh/2014/1/uploading-to-s3-in-bash
S3KEY="my aws key"
S3SECRET="my aws secret" # pass these in
function putS3
{
path=$1
@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 / com.nheinric.hubot.plist
Created April 19, 2016 18:59 — forked from nheinric/com.nheinric.hubot.plist
Hubot .plist for running via launchctl on OSX
<?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>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>com.nheinric.hubot</string>
<!-- LSEnvironment does not work for PATH. I don't know why.
https://developer.apple.com/library/ios/documentation/general/Reference/InfoPlistKeyReference/Articles/LaunchServicesKeys.html#//apple_ref/doc/uid/20001431-106825
@ryanmoon
ryanmoon / pro_tools_11_munki.sh
Created March 25, 2016 00:14 — forked from rickychilcott/pro_tools_11_munki.sh
My (working) attempt to get PT 11 to install successfully
#!/bin/bash
# Copy the com.avid.bsd.DigiShoeTool Helper Tool
PHT_DIGISHOETOOL="/Library/PrivilegedHelperTools/com.avid.bsd.DigiShoeTool"
/bin/cp "/Applications/Pro Tools.app/Contents/Library/LaunchServices/com.avid.bsd.DigiShoeTool" $PHT_DIGISHOETOOL
/usr/sbin/chown root:wheel $PHT_DIGISHOETOOL
/bin/chmod 544 $PHT_DIGISHOETOOL
# Create the Launch Deamon Plist for com.avid.bsd.DigiShoeTool
@ryanmoon
ryanmoon / encode.sh
Created February 7, 2016 06:48 — forked from lisamelton/encode.sh
This is the shell script I use to drive HandBrakeCLI to re-encode video files in a format suitable for playback on Apple TV, Roku 3, iOS, OS X, etc.
#!/bin/bash
# encode.sh
#
# Copyright (c) 2013 Don Melton
#
# This version published on June 7, 2013.
#
# Re-encode video files in a format suitable for playback on Apple TV, Roku 3,
# iOS, OS X, etc.