Skip to content

Instantly share code, notes, and snippets.

View Iristyle's full-sized avatar

Ethan J. Brown Iristyle

View GitHub Profile
@Iristyle
Iristyle / puppet-windbg.txt
Last active April 19, 2016 20:34
Puppet Windbg testing
launching windbg
&'C:\Program Files (x86)\Windows Kits\8.0\Debuggers\x64\windbg.exe' -g -G -Q -sflags 0x80030377 -y 'C:\Program Files\Puppet Labs\PuppetCustom\sys\ruby\bin'
&'C:\Program Files (x86)\Windows Kits\8.0\Debuggers\x64\windbg.exe' -g -G -Q -sflags 0x80030377 -y 'bundle exec rspec .\spec\integration\provider\package_spec.rb'
&'C:\Program Files (x86)\Windows Kits\8.0\Debuggers\x64\windbg.exe' -sflags 0x80030377 -g -y 'C:\Program Files\Puppet Labs\PuppetCustom\sys\ruby\bin' -z 'C:\source\20140806_131938_Hang_Mode-ruby_service\FULLDUMP_HangMode_ruby.exe__0b14_2014-08-06_13-19-38-710_08d4.dmp'
@Iristyle
Iristyle / sideload.sh
Created December 24, 2014 19:20
Amazon Fire Stick Sideload Kodi Instructions
# Ensure ADB is installed locally
brew install android-sdk
android update sdk --no-ui --filter 'platform-tools'
# In Fire Stick Settings ->
# System -> Developer Options
# ADB debugging ON
# Apps from Uknown Sources ON
@Iristyle
Iristyle / Building installer
Last active September 30, 2015 15:58
When using puppet_for_the_win, call this instead of setup_env.bat
cd C:\source\puppetwinbuilder
.\setup_env.ps1
$Env:ARCH = 'x64'
cd c:\source\puppet_for_the_win
bundle exec rake clobber
bundle exec rake windows:build config=foss-3.7-x64.yaml
# execute installer
C:\source\puppet_for_the_win>msiexec /i src\puppet_for_the_win\pkg\puppet.msi PUPPET_AGENT_ACCOUNT_DOMAIN=vagrant-2008R2 PUPPET_AGENT_ACOUNT_USER=vagrant PUPPET_AGENT_ACCOUNT_PASSWORD=vagrant /l*v install.log
@Iristyle
Iristyle / Crashlog.txt
Created July 11, 2014 16:30
MacBook Pro Sleep / Wake Failure
Date/Time: 2014-07-10 23:03:53 -0700
OS Version: 10.9.4 (Build 13E28)
Architecture: x86_64
Report Version: 18
Event: Sleep Wake Failure
Steps: 78
Hardware model: MacBookPro10,1
Active cpus: 8
@Iristyle
Iristyle / gist:d3b69e8d0a7657a069c3
Created June 9, 2014 19:16 — forked from joshcooper/gist:8946913
Run Ruby specs under Windbg
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
@Iristyle
Iristyle / Query_Git_Jira_Commands.sh
Last active August 29, 2015 14:01 — forked from ferventcoder/Query_Git_Jira_Commands.sh
3.6.0 FINAL (post RC) commits
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 / json-polyfill.ps1
Created April 18, 2014 17:54
PS2 JSON Polyfill
function ConvertFrom-JsonString
{
[CmdletBinding()]
param(
[Parameter(Mandatory=$true, ValueFromPipeline=$true)]
[string]
$Json
)
Add-Type -AssemblyName System.Web.Extensions
@Iristyle
Iristyle / KMBS Ripper
Last active December 24, 2015 16:39
Ripper - Konica Minolta Driver Scrubbing Utility
Looks like I originally wrote this hunk of junk 10+ years ago. Brings back some, ahem, fond .. memories.
Expects psexec.exe and reg.exe in the local directory
@Iristyle
Iristyle / Preferences.Sublime-settings
Created September 16, 2013 18:07
Preferences.Sublime-settings
{
"auto_complete_commit_on_tab": true,
"caret_style": "phase",
"close_windows_when_empty": true,
"color_scheme": "Packages/Solarized Color Scheme/Solarized (dark).tmTheme",
"draw_white_space": "all",
"ensure_newline_at_eof_on_save": true,
"font_face": "Source Code Pro Semibold",
"font_size": 15.0,
"highlight_line": true,
@Iristyle
Iristyle / output.txt
Last active December 22, 2015 07:39
bundle exec rake spec output
D:\Users\Parity\Documents\source\00 - Puppet\puppet [21133]> bundle install --path .bundle/gems
Fetching gem metadata from https://rubygems.org/......
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Installing rake (10.1.0)
Installing activesupport (3.0.20)
Installing builder (2.1.2)
Installing i18n (0.5.0)
Installing activemodel (3.0.20)
Installing arel (2.0.10)