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 / 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 / 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 / UserAdd.ps1
Created March 26, 2014 17:08
Adding a user to a group and managing Home Directory
param (
[parameter(Position=0)]
[alias("user")][string]$userName,
[alias("group")][string]$groupName=$null,
[alias("home")][string]$homeDirectory=$null
)
# there are some much simpler ways to do this with the Active-Directory Module
# like Get-ADUser, Set-ADUser, etc but it is not installed on Win2008 (non-R2)
# and below so we want to prefer what works natively for all Windows machines
@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 / SublimePackages
Last active August 29, 2015 13:56
Sublime Packages Installed
These are the sublime packages I have installed
@ferventcoder
ferventcoder / DevOps Workshop.md
Last active September 16, 2016 16:46
DevOps Workshop (Day of DevOps)

ORGANIZER'S NOTE: This is a joint session with me and Paul Stack

Developer. Operations. QA. DevOps. What is DevOps? Whether you are a system administrator, developer, or a QA, we are all moving towards a need to deliver systems and software faster and more reliably.

Come join Paul and Rob as they walk you through what DevOps actually is as well as showing hands on demos in the field of configuration management and provisioning.

Expect to come away from this with a good understanding of DevOps, ideas for how to take your organization to the next level, and hands on experience or awareness of the following:

  • VirtualBox (Virtualization)
  • Vagrant (VM Sandboxing on Steroids)
@ferventcoder
ferventcoder / DevOps: Puppet on Windows: Now You're Getting Chocolatey!.md
Last active January 2, 2016 22:08
Abstract: DevOps: Puppet on Windows: Now You're Getting Chocolatey!

Doing package management on Windows can be easy when you add a little chocolatey to the mix. Chocolatey is quickly becoming the de facto standard for dealing with packages and dependencies on Windows. Come learn more about Puppet, Windows, Chocolatey and where all of this is going in the coming months.

  • 1password 1.0.9.332
  • 7zip 9.22.01.20130618
  • 7zip.commandline 9.20.0.20130618
  • 7zip.install 9.22.01.20130618
  • autohotkey_l 1.1.11.01
  • baretail 3.50.0.20120226
  • beyondcompare 3.3.8.16340
  • boxstarter.bootstrapper 1.0.33
  • boxstarter.chocolatey 1.0.33
  • BoxStarter.Common 1.0.33
@ferventcoder
ferventcoder / gitex
Created December 18, 2013 21:56
gitex.mono
#!/bin/bash
# Get path of current script - http://stackoverflow.com/a/246128/18475
SCRIPTSOURCE="${BASH_SOURCE[0]}"
while [ -h "$SCRIPTSOURCE" ]; do # resolve $SCRIPTSOURCE until the file is no longer a symlink
DIR="$(cd -P "$( dirname "$SCRIPTSOURCE" )" && pwd)"
SCRIPTSOURCE="$(readlink "$SCRIPTSOURCE")"
[[ $SCRIPTSOURCE != /* ]] && SCRIPTSOURCE="$DIR/$SCRIPTSOURCE" # if $SCRIPTSOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
done
SCRIPTDIR="$(cd -P "$( dirname "$SCRIPTSOURCE" )" && pwd)"
@ferventcoder
ferventcoder / IsUACEnabled.cmd
Created December 17, 2013 16:06
UAC enabled?
reg query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA