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 / 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
@Iristyle
Iristyle / Microsoft.PowerShell_profile.ps1
Created August 29, 2011 15:20
Mercurial Powershell Prompt
Push-Location (Split-Path -Path $MyInvocation.MyCommand.Definition -Parent)
# Load posh-hg module from current directory
#Import-Module .\posh-hg
# If module is installed in a default location ($env:PSModulePath),
# use this instead (see about_Modules for more information):
Import-Module posh-hg
# Set up a simple prompt, adding the hg prompt parts inside hg repos
@Iristyle
Iristyle / .hgignore
Created October 3, 2011 16:40
Standard Mercurial Ignore file for .NET
syntax: glob
*.*scc
*.FileListAbsolute.txt
*.aps
*.bak
*.[Cc]ache
*.clw
*.eto
*.exe
@Iristyle
Iristyle / check_longrunning_processes.ps1
Created October 11, 2011 20:05
Show processes running longer than X (for NSClient++ with OpsView or Nagios nrpe)
Param(
[Parameter(Mandatory=$true, ValueFromPipeline=$true)]
[string]
$Process,
[Parameter(Mandatory=$true, ValueFromPipeline=$true)]
#[string]
[ValidatePattern("^(\d\.){0,1}(([0|1]\d)|(2[0-3])):[0-5]\d:[0-5]\d")]
$TimeSpan,