Skip to content

Instantly share code, notes, and snippets.

View Iristyle's full-sized avatar

Ethan J. Brown Iristyle

View GitHub Profile
@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 / 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 / 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 / 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 / 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 / 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 / setup-cmd-service.ps1
Created May 5, 2015 22:26
Run cmd.exe / powershell.exe in an interactive service
cinst rktools.2003
cd 'C:\Program Files (x86)\Windows Resource Kits\Tools'
$serviceName = 'Interactive SYSTEM cmd'
.\instsrv.exe $serviceName 'C:\Program Files (x86)\Windows Resource Kits\Tools\srvany.exe'
sc.exe config $serviceName depend= UI0Detect start= demand
$servicePath = "HKLM:\SYSTEM\CurrentControlSet\Services\$serviceName"
$serviceParams = New-Item $servicePath -Name Parameters
@Iristyle
Iristyle / cygwin.md
Last active August 29, 2015 14:21
Cygwin environment differences

Cygwin Missing

APPDATA=C:\Users\Administrator\AppData\Roaming
CLIENTNAME=Zachs-MacBook-P
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
FP_NO_HOST_CHECK=NO
LOCALAPPDATA=C:\Users\Administrator\AppData\Local
@Iristyle
Iristyle / Directory Contents
Created June 23, 2015 00:24
Ruby MOF parsing text
[parser-tests] ls -l 17:18:43
total 1584
-rw-------+ 1 Iristyle staff 13004 May 12 15:52 DscCore.mof
-rw-------+ 1 Iristyle staff 5700 May 12 15:52 DscCoreConfProv.mof
-rw-r--r--+ 1 Iristyle staff 128 Jun 22 15:15 Gemfile
-rw-r--r--+ 1 Iristyle staff 610 Jun 22 15:16 Gemfile.lock
-rwx------+ 1 Iristyle staff 2000 May 12 15:52 MSFT_FileDirectoryConfiguration.Schema.mof
-rw-r-----@ 1 Iristyle staff 357 Jun 22 15:45 MSFT_Qualifiers.mof
-rw-r--r--+ 1 Iristyle staff 560 Jun 22 15:16 MSFT_xADDomain.schema.mof
-rw-r--r--+ 1 Iristyle staff 463 Jun 22 15:16 MSFT_xADDomainController.schema.mof
@Iristyle
Iristyle / acls.txt
Last active August 29, 2015 14:24
MCO sync / service startup failure
Initial Permissions after installation
PS C:\Users\Administrator> get-acl C:\ProgramData\PuppetLabs\mcollective | select *
PSPath : Microsoft.PowerShell.Core\FileSystem::C:\ProgramData\PuppetLabs\mcollective
PSParentPath : Microsoft.PowerShell.Core\FileSystem::C:\ProgramData\PuppetLabs
PSChildName : mcollective
PSDrive : C
PSProvider : Microsoft.PowerShell.Core\FileSystem