Skip to content

Instantly share code, notes, and snippets.

View PatOShea's full-sized avatar

Pat O'Shea PatOShea

View GitHub Profile
@PatOShea
PatOShea / test.txt
Last active August 29, 2015 13:56
Testing
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
cinst newrelic-agentx64
@PatOShea
PatOShea / updateNewRelicNotes.ps1
Last active September 3, 2015 21:43 — forked from kfrancis/gist:3164709
Powershell update of deploy notes for New Relic
if ($OctopusEnvironmentName -eq "Production") {
# in production, we need to
#Create a URI instance since the HttpWebRequest.Create Method will escape the URL by default.
$URL = "http://api.newrelic.com/deployments.xml"
$post = "deployment[account_id]=<id here>&deployment[user]=OctopusDeploy&deployment[app_id]=<app id here>&deployment[revision]=($OctopusPackageVersion)"
$URI = New-Object System.Uri($URL,$true)
#Create a request object using the URI
$request = [System.Net.HttpWebRequest]::Create($URI)
@PatOShea
PatOShea / Dev Setup
Last active August 29, 2015 14:06
DevOps Setup
cinst VisualStudio2013Premium
cinst VS2013.4
cinst tfsSidekicks2013
cinst tfs2013powertools
cinst isepester
cinst windowsazurepowershell
cinst console
cinst atom
cinst notepadplusplus
@PatOShea
PatOShea / InternSetup.txt
Last active August 29, 2015 14:15
InternSetup
http://boxstarter.org/package/nr/win-no-annoy,VisualStudio2013Premium,VS2013.4,tfsSidekicks2013,tfs2013powertools,isepester,nugetpackageexplorer,notepadplusplus,atom,virtualbox,virtualbox.extensionpack,vagrant,vboxguestadditions.install
cinst VisualStudio2013Premium
cinst VS2013.3
cinst tfsSidekicks2013
cinst tfs2013powertools
cinst isepester
cinst windowsazurepowershell
cinst console
@PatOShea
PatOShea / DevOpsHealthEquitySetup.txt
Last active August 29, 2015 14:15
DevOps-HealthEquity Setup
http://boxstarter.org/package/nr/win-no-annoy,VisualStudio2013Premium,VS2013.4,tfsSidekicks2013,tfs2013powertools,isepester,nugetpackageexplorer,notepadplusplus,atom,virtualbox,virtualbox.extensionpack,vagrant,vboxguestadditions.install
cinst VisualStudio2013Premium
cinst VS2013.3
cinst tfsSidekicks2013
cinst tfs2013powertools
cinst isepester
cinst windowsazurepowershell
cinst console
Ohai::Config::disabled_plugins= [
#
# add to client.rb file -- c:\chef\client.rb
#
# ref: http://www.slideshare.net/opscode/chef-conf-windowsdougireton # slide 30
# ohai plugins that have poor perf or are irrelevant to windows
#
"c", "cloud", "ec2", "rackspace", "eucalyptus", "command", "dmi", "dmi_common",
"erlang", "groovy", "ip_scopes", "java", "keys", "lua", "mono", "network_listeners",
"passwd", "perl", "php", "python", "ssh_host_key", "uptime", "virtualization",
http://boxstarter.org/package/nr/win-no-annoy,isepester,nugetpackageexplorer,notepadplusplus,atom,vagrant,packer,virtualbox,virtualbox.extensionpack,vagrant,vboxguestadditions.install,greenshot
cinst isepester
cinst console
cinst atom
cinst notepadplusplus
cinst nugetpackageexplorer
cinst win-no-annoy
@PatOShea
PatOShea / Metrics.txt
Created May 22, 2015 04:53
Metrics to Possibly Track
METRICS
=======
https://docs.google.com/spreadsheets/d/1_vI-3T7czp3f4FpKYIrulGwLOo8c6AOMPLXJflgJDn8/edit?usp=sharing
People / Process / Technology
- Deployment / Change Frequency
- Change Volume (number of US/lines of code)
- Change Lead Time (dev -> deploy)
- Change Failure Rate
- Mean Time to Recover (MTTR)
@PatOShea
PatOShea / basic-salt-vagrantfile
Created July 4, 2015 21:45
Basic Salt Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "PatOShea/win2012R2-salt"
config.vm.hostname = "win2012R2-salt"
config.vm.guest = "windows"
# This important for salt provisioner. It's used in the provisioner code extensively
config.vm.communicator = "winrm"
@PatOShea
PatOShea / windows-minion-bootstrapper.ps1
Last active March 24, 2016 23:41
Bootstrap Salt Minion on Windows
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: CMD call to install Salt Minion from powershell via URL
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
SET SALT_URL=https://chocolatey.org/install.ps1
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('%SALT_URL%'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\saltf\bin
#####################################################################################
# Powershell script to install Salt Minion via URL
#####################################################################################