Skip to content

Instantly share code, notes, and snippets.

View ferventcoder's full-sized avatar
🎯
Focusing

Rob Reynolds ferventcoder

🎯
Focusing
View GitHub Profile
@ferventcoder
ferventcoder / SublimePackages
Last active August 29, 2015 13:56
Sublime Packages Installed
These are the sublime packages I have installed
@ferventcoder
ferventcoder / PluggingChocolateyIntoYourPuppetInfrastructure.md
Last active August 29, 2015 13:57
Plugging Chocolatey Into Your Puppet Infrastructure (Abstract for PuppetConf 2014)

Are you managing Windows? Long time Windows System Admin? Do you enjoy long walks on the beach thinking about how it would be awesome to have linux style package management on Windows?

Well you, sir or madam, are in luck! Chocolatey will help you get jiggy with it and get your puppet package management in much the same way that you already enjoy with other platforms. During this talk we will go over how you can be successful hooking Chocolatey into Puppet, creating your own packages, and setting up an internal package repository. Even if you've seen Chocolatey before, we have something new and puppety we'll be showing at this talk!

@ferventcoder
ferventcoder / acl_vs_mode.pp
Created March 31, 2014 20:54
Mode versus ACL - the two are mostly incompatible with each other.
file { 'c:/tempperms/mode':
ensure => directory,
mode => 0770,
owner => 'rob',
group => 'Administrators',
}
# this is fun
# acl {'c:/tempperms/mode':
# ensure => present,
@ferventcoder
ferventcoder / acl_deny.pp
Created April 10, 2014 15:03
Puppet ACL Deny
file { ['c:/bob'
,'c:/bob/somedir'
,'c:/bob/somedir/grandchild']:
ensure => directory,
}
file { ['c:/bob/file.txt'
,'c:/bob/somedir/filetoo.txt'
,'c:/bob/somedir/grandchild/anotherfile.txt']:
ensure => file,
@ferventcoder
ferventcoder / gist:11231331
Created April 23, 2014 20:32
DevOps talk
Vagrant installer https://forge.puppetlabs.com/skoblenick/vagrant
exec { 'powershell_system32':
command => 'c:\windows\system32\WindowsPowerShell\v1.0\powershell.exe -NonInteractive -NoProfile -ExecutionPolicy Bypass -Command "get-process powershell* | %{ Write-Host $($_.Path)}"',
logoutput => true,
} ->
exec { 'powershell_sysnative':
command => 'c:\windows\sysnative\WindowsPowerShell\v1.0\powershell.exe -NonInteractive -NoProfile -ExecutionPolicy Bypass -Command "get-process powershell* | %{ Write-Host $($_.Path)}"',
logoutput => true,
}
@ferventcoder
ferventcoder / Asbstract - DevOps: Your Infrastructure Just got Chocolatey.md
Created May 21, 2014 18:31
DevOps: Your Infrastructure Just got Chocolatey

Chocolatey is a global PowerShell execution engine that serves as a machine package manager for Windows. What does that mean? I'm not sure but it does some really cool stuff.

Script out your software and configuration requirements for your entire infrastructure and then version it. If you've been on the Windows side too long, you've been missing out on all the automation fun.

Kids love it. Microsoft Approved! Chocolatey definitely does some cool things like save you time and make you look uber smart for using it. Come see what this thing is and what it can do for you.

"Sometimes it's the tools that make the man." -Rob Reynolds, like 2 seconds ago

@ferventcoder
ferventcoder / Acl_Defaults_for_normal.pp
Last active August 29, 2015 14:02
ACL Remove with optional elements
# This is what the defaults look like for normal permissions.
acl { 'c:/temp':
permissions => [
{ identity => 'Administrator', rights => ['full'] },
# same as the below
{ identity => 'Administrator', rights=> ['full'], type => 'allow',child_types => 'all', affects => 'all'}
]
}
(PUP-2389) Add ruby 2.0.0-x64
- Removed Tcl/Tk (10MB and not included as part of the standard install)
- Removed generated docs for gems (9 MB)
- Removed the following gems:
* win32-api (KEEP FOR NOW)
* windows-pr (KEEP FOR NOW)
* win32console (KEEP FOR NOW)
* windows-api (COMES with windows-pr)
- THINKING ABOUT - Removed gem cache (9 MB)
@ferventcoder
ferventcoder / notes.md
Created June 30, 2014 20:50
Pry on Windows
  • It works
  • It does not like a console screen buffer height over 300.