Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Rob Reynolds ferventcoder

🎯
Focusing
View GitHub Profile
@ferventcoder
ferventcoder / NonAdmin.cmd
Last active Jul 31, 2022
Installing Software as a Non-Administrator Using Chocolatey
View NonAdmin.cmd
:: Pick one of these two files (cmd or ps1)
:: Set directory for installation - Chocolatey does not lock
:: down the directory if not the default
SET INSTALLDIR=c:\ProgramData\chocoportable
setx ChocolateyInstall %INSTALLDIR%
:: All install options - offline, proxy, etc at
:: https://chocolatey.org/install
@powershell -NoProfile -ExecutionPolicy Bypass -Command "(iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))) >$null 2>&1" && SET PATH="%PATH%;%INSTALLDIR%\bin"
@ferventcoder
ferventcoder / get-input.ps1
Last active May 14, 2022
Testing PowerShell Fuzzy Parameter matching
View get-input.ps1
function Get-Input {
[CmdletBinding()]
param (
[string]$abcdef = 'exe',
[parameter(ValueFromRemainingArguments = $true)][Object[]] $ignoredArguments
)
$invocaton = $MyInvocation
$argumentsPassed = ''
foreach ($param in $PSBoundParameters.GetEnumerator()) {
$argumentsPassed += "-$($param.Key) '$($param.Value -Join ' ')' "
@ferventcoder
ferventcoder / _README.md
Last active Oct 27, 2016
FireFox override install directory
View _README.md

Make sure you set up the directory like this:

firefox
 | - firefox.nuspec
 | - tools
     | - chocolateyInstall.ps1
     | - firefox.ini
     | - 32bitinstaller.exe
 | - 32bitinstaller.exe.ignore (shim director, empty file that bears exact name of exe with `.ignore` appended)
@ferventcoder
ferventcoder / entire_chocolatey_setup.pp
Last active Sep 24, 2021
Setting up and configuring Chocolatey with Puppet
View entire_chocolatey_setup.pp
case $operatingsystem {
'windows': {
Package {
provider => chocolatey,
}
}
}
# ensure Chocolatey is installed - host the package internally
class {'chocolatey':
@ferventcoder
ferventcoder / releaseticket.rb
Created Jul 15, 2016 — forked from kylog/releaseticket.rb
One-off script to create a puppet release ticket
View releaseticket.rb
#!/usr/bin/env ruby
require 'jira'
require 'pp'
require 'getoptlong'
# default values
username = "gepetto-bot"
password = ENV["GEPETTO_BOT_PASSWORD"]
@ferventcoder
ferventcoder / MidwestIO_Abstract.md
Created May 5, 2016
Software Management on Windows - Controlling the Chaos with Chocolatey
View MidwestIO_Abstract.md

Automating software management is simple on almost every platform except Windows. Windows has many different routes to procure software with over 20 installer types and archive formats! This really makes managing software on Windows trend towards chaos.

Enter Chocolatey - the package manager for Windows. Chocolatey is a single, unified interface designed to easily work with all aspects of managing Windows software using a packaging framework that understands both versioning and dependency requirements. Chocolatey packages encapsulate everything required to manage a particular piece of software into one deployment artifact by wrapping installers, executables, zips, and scripts into a compiled package file. Chocolatey integrates with your favorite Configuration Management platforms, whether it is Puppet, Chef, SCCM, PowerShell DSC, Ansible, or Saltstack.

Come learn how to let Chocolatey wrangle the chaos of Windows software management and leave you with a smile on your face!

@ferventcoder
ferventcoder / settings.json.txt
Last active May 4, 2016
Visual Studio Code User Settings
View settings.json.txt
// Place your settings in this file to overwrite the default settings
{
// The default end of line character.
"files.eol": "\n",
// When enabled, will trim trailing whitespace when you save a file.
"files.trimTrailingWhitespace": true,
// Controls auto save of dirty files. Accepted values: "off", "afterDelay", "onFocusChange". If set to "afterDelay" you can configure the delay in "files.autoSaveDelay".
"files.autoSave": "onFocusChange",
@ferventcoder
ferventcoder / PuppetConf2016Abstract.md
Last active May 2, 2016
PuppetConf 2016 Abstract - Easily Manage Software on Windows with Chocolatey
View PuppetConf2016Abstract.md

Easily Manage Software on Windows with Chocolatey

Automating software management is simple on almost every platform except Windows. Windows has many different routes to procure software with over 20 installer types and archive formats! This really makes managing software on Windows trend towards chaos.

Enter Chocolatey - the package manager for Windows. Chocolatey is a single, unified interface designed to easily work with all aspects of managing Windows software using a packaging framework that understands both versioning and dependency requirements. Chocolatey packages encapsulate everything required to manage a particular piece of software into one deployment artifact by wrapping installers, executables, zips, and scripts into a compiled package file.

Come learn how to let Chocolatey wrangle the chaos of Windows software management and leave you with a smile on your face!

@ferventcoder
ferventcoder / PowerShellHelpDirectivesTemplate.ps1
Created Apr 13, 2016
PowerShell Help Directives Template
View PowerShellHelpDirectivesTemplate.ps1
<#
.SYNOPSIS
.DESCRIPTION
.NOTES
@ferventcoder
ferventcoder / ModernWinOps.md
Last active Apr 6, 2016
Abstract for Velocity - Automating Your Windows Infrastructure With Chocolatey and Puppet
View ModernWinOps.md

Operations management on Windows sometimes feels like the wild west. There are lots of options out there that may sort of meet your needs, but not always do the best job. The most flexible approach to modernizing operations on Windows is to look to artifact independent packages that can be added to any configuration management approach.

Once you get a taste, it's like an obsession. Chocolatey is a sweet package manager for Windows. Puppet is the Configuration Manager. Put them together and you have a super power to deliver better solutions faster. Puppet and Chocolatey have been used successfully in organizations, from large to small, to transform development and operations on Windows. You may have used and/or presently use one or both of these. Come to learn how things have changed, where the future lies, and how you can be a part of it. The future is now.