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 / 1.registry.pp
Last active December 13, 2016 19:05
Registry Puppet Module Tests
$regkeytop = 'HKEY_LOCAL_MACHINE\SOFTWARE\Puppet Labs\RegistryModuleTests'
## defined
registry::value {'RegistryValueDefined':
key => "$regkeytop\\regvaluedefined",
value => '123',
data => 'data',
}
registry::value {'RegistryValueDefined32':
@ferventcoder
ferventcoder / Gemfile.local.rb
Last active August 22, 2018 21:30
local gem file for ruby development
# name the file Gemfile.local
gem 'fuubar'
gem 'pry'
gem 'pry-stack_explorer'
if RUBY_VERSION =~ /^2/
gem 'pry-byebug'
else
gem 'pry-debugger'
@ferventcoder
ferventcoder / Install_RubyGems_Cert.ps1
Created February 27, 2015 23:10
Downloading the RubyGems updated cert automatically
# https://gist.github.com/luislavena/f064211759ee0f806c88
$rubygems = &gem which rubygems
$ssl_cert_location = $rubygems.Replace(".rb","/ssl_certs/AddTrustExternalCARoot-2048.pem")
$ssl_cert_url = 'https://raw.githubusercontent.com/rubygems/rubygems/master/lib/rubygems/ssl_certs/AddTrustExternalCARoot-2048.pem'
# with curl installed
#&curl.exe -o "$ssl_cert_location" "$ssl_cert_url"
# without curl installed
(New-Object Net.WebClient).DownloadFile("$ssl_cert_url","$ssl_cert_location")
@ferventcoder
ferventcoder / DevOps_TheNewChocolatey.md
Created February 21, 2015 16:51
Abstract: DevOps: The New Chocolatey - Batteries Included

Meet the new Chocolatey. Let's take a long walk down a chocolatey pier. Demos you say? How about Chocolatey and Chocolatey Pro (which will almost be GA at KCDC)? What is this pro version you say? We'll discuss the directions of Chocolatey - where we are, where we are going, and what you can expect over the coming months.

@ferventcoder
ferventcoder / DevOps_WhatIsPuppet.md
Created February 21, 2015 16:50
Abstract: DevOps: What Is This Puppet You Speak Of?

You keep hearing about DevOps and how awesome it is. And you've heard of Puppet, but wonder if it has something to do with Jim Henson. Puppetizing? What is this Puppet you speak of?

Come out and see what Puppet is all about and what it can do for your organization. We'll do a full stack setup and show you how Puppet can help you get a handle on your infrastructure (ops), a handle on release management (devs and ops), or just help you automate tasks (dev).

@ferventcoder
ferventcoder / .gitattributes
Created February 18, 2015 19:31
No more git magic
* -text
@ferventcoder
ferventcoder / 0. 0-Info.md
Last active August 29, 2015 14:13
Ruby 2.1.5 HAVE_STRUCT

Information

This is attempting to determine whether we need additional conditionals defined for Windows builds. We ran into an issue with HAVE_STRUCT_PASSWD_PW_PASSWD not being defined as a switch after 2.0.0. This made Etc::Passwd.passwd not defined as part of the struct. See PUP-3779 for more details.

@ferventcoder
ferventcoder / swype_repro.md
Last active August 29, 2015 14:11
Swype has a privacy breaking issue on iOS.

Okay, I added a contact with a normal keyboard, waited almost one day and it started showing up in Swype as something I could swype to input. Swype has NO place for it to ask for permission to contacts, so there is no way to shut it off.

Okay, here are the screen shots and the repro steps.

  1. Swype settings as accessed from the keyboard img_3864

  2. My personal Swype dictionary (notice that there are no Z words in here) img_3865

@ferventcoder
ferventcoder / 0.vms.yaml
Last active August 29, 2015 14:11
Puppet Debugging Kit Whoas
---
winrm:
username: vagrant
password: vagrant
vms:
- name: pe-371-master
debug-kit: true
box: centos-6.5-64-nocm
@ferventcoder
ferventcoder / base_example.pp
Last active August 29, 2015 14:10
Managing Permissions on Windows Blog Post
acl { 'c:/temp':
permissions => [
{ identity => 'Administrator', rights => ['full'] },
{ identity => 'Users', rights => ['read','execute'] }
],
}