Skip to content

Instantly share code, notes, and snippets.

Avatar

Ethan J. Brown Iristyle

  • Puppet, Inc.
  • Portland, OR
View GitHub Profile
@Iristyle
Iristyle / gist:d3b69e8d0a7657a069c3
Created Jun 9, 2014 — forked from joshcooper/gist:8946913
Run Ruby specs under Windbg
View gist:d3b69e8d0a7657a069c3
set _ORIGINAL_GEM_PATH=
set BUNDLE_BIN_PATH=c:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.4/bin/bundle
set BUNDLE_GEMFILE=c:/work/puppet/Gemfile
set GEM_HOME=c:/work/puppet/vendor/cache/ruby/1.9.1
set GEM_PATH=
set RUBYOPT=-Ic:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.4/lib -rbundler/setup
"ruby.exe" "C:\work\puppet\vendor\cache\ruby\1.9.1\bin\rspec" -r yarjuf -f JUnit -o result.xml -fp spec
View Query_Git_Jira_Commands.sh
git log 3.6.0-rc...HEAD --pretty=format:"%h %s [%an (%ae)]" --no-merges > git.commits.txt
#| grep -v -e "(maint)" -e "(Maint)"
cat git.commits.txt | pbcopy
curl --output "jira.issues.txt" --silent -H "Content-Type: application/json" https://tickets.puppetlabs.com/rest/api/2/search?jql=project=PUP+AND+fixVersion=%223.6.0%22+Order+by+key+ASC&maxResults=300&fields=key,summary
# brew install jq
cat jira.issues.txt | jq '.issues[].key' >jiraissues.txt
# https://gist.githubusercontent.com/hlindberg/9520023/raw/40389c4c20ef3aba939c52db8f280f2ae1c0759a/ticketmatch.rb
ruby ticketmatch.rb
@Iristyle
Iristyle / Gemfile
Created Nov 27, 2012 — forked from sr/Gemfile
Janky on Heroku / EC2 with Foreman - Configured for HipChat
View Gemfile
source "http://rubygems.org"
gem "janky", :git => "git://github.com/github/janky.git", :ref => "fe546349504e581812853dcbf3b0977be61269bd"
gem "pg"
gem "thin"
gem "hipchat", "~>0.4"
@Iristyle
Iristyle / etc-init-elasticsearch.conf
Created Nov 13, 2012 — forked from jaytaylor/etc-init-elasticsearch.conf
Ubuntu upstart service script for ElasticSearch on EC2 Large instance
View etc-init-elasticsearch.conf
# ElasticSearch Service
description "ElasticSearch"
start on (net-device-up
and local-filesystems
and runlevel [2345])
stop on runlevel [016]
@Iristyle
Iristyle / gist:4049596
Created Nov 10, 2012 — forked from nickyp/gist:4045823
Map "Escape, Backspace" to Delete Word Backward in Sublime Text 2
View gist:4049596
// Maps Emacs style "Escape, Backspace" to Delete Word Backward
{ "keys": ["escape", "backspace"], "command": "delete_word", "args": { "forward": false, "sub_words": true },
"context":
[
{ "key": "setting.is_widget", "operator": "equal", "operand": false }
]
}
@Iristyle
Iristyle / install-graphite-ubuntu-11.10.sh
Created Nov 12, 2011
Install Graphite 0.9.9 on Ubuntu 11.10 on EC2 with NGinx, uwsgi, supervisord, statsite, nagios agent
View install-graphite-ubuntu-11.10.sh
#!/bin/bash
####################################
# BASIC REQUIREMENTS
# http://graphite.wikidot.com/installation
# Forked from: http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/
# Ubuntu 11.10 Oneiric Ocelot
# Forked from https://gist.github.com/1287170
# Modified to use NGinx + uwsgi instead of Apache, as well as memcached and supervisord, incorporating ideas from
# http://blog.adku.com/2011/10/scalable-realtime-stats-with-graphite.html
You can’t perform that action at this time.