Skip to content

Instantly share code, notes, and snippets.

View ferventcoder's full-sized avatar
🎯
Focusing

Rob Reynolds ferventcoder

🎯
Focusing
View GitHub Profile
# use an internal repository to download Chocolatey nupkg to the local path:
$packageRepo = '<INSERT REPO URL>'
# uncomment if you want to download the file from a remote OData (HTTP/HTTPS) internal url (such as Artifactory, Nexus, ProGet, or Chocolatey.Server)
#$searchUrl = ($packageRepo.Trim('/'), 'Packages()?$filter=(Id%20eq%20%27chocolatey%27)%20and%20IsLatestVersion') -join '/'
# UPDATE THIS PATH
$localChocolateyPackageFilePath = "$env:SystemDrive\choco-setup\packages\chocolatey.0.10.0.nupkg"
# Determine unzipping method
# 7zip is the most compatible, but you need an internally hosted 7za.exe.
# Make sure the version matches for the arguments as well.
@ferventcoder
ferventcoder / DefaultJenkinsEmail
Last active October 29, 2021 14:09
Jenkins Email-ext (Editable Email Notifications)
Subject: Jenkins ${BUILD_STATUS} [#${BUILD_NUMBER}] - ${PROJECT_NAME}
Content Type: Plain Text (text/plain)
Trigger for matrix projects: Trigger for each configuration
Choose "Advanced", "Add a Trigger" and choose the following triggers:
Fixed, Failure, Unstable, Still Failing, Still Unstable
Ensure that "Send To Recipient List" is checked for all of these at the very least.
Fixed is the only trigger you will need to expand to change the Content.
@ferventcoder
ferventcoder / entire_chocolatey_setup.pp
Last active September 24, 2021 07:44
Setting up and configuring Chocolatey with Puppet
case $operatingsystem {
'windows': {
Package {
provider => chocolatey,
}
}
}
# ensure Chocolatey is installed - host the package internally
class {'chocolatey':
@ferventcoder
ferventcoder / CLA.md
Created June 8, 2020 14:40
Chocolatey Contributer License Agreement

Chocolatey Software, Inc - Contributor License Agreement V1.0

Thank you for your interest in contributing to Chocolatey Software, Inc ("Chocolatey Software").

This Contributor License Agreement ("Agreement" or "CLA") documents the rights granted by Contributors to Chocolatey Software. The Agreement may cover more than one software project managed by Chocolatey Software. In order to clarify the intellectual property license granted with Contributions from any person or entity, Chocolatey Software must have a CLA agreed to by each Contributor. This Agreement is for your protection as a Contributor as well as the protection of Chocolatey Software; it does not change your rights to use your own Contributions for any other purpose.

Either individuals or business entities, including without limitation, all employees or agents acting on behalf of such entity (an "Entity"), may submit Contributions to Chocolatey Software under this Agreement.

Please read this document carefully before agreeing

@ferventcoder
ferventcoder / .bash-constants.sh
Last active July 29, 2020 18:51
Git bash setup
# Reset
Color_Off="\[\033[0m\]" # Text Reset
# Regular Colors
Black="\[\033[0;30m\]" # Black
Red="\[\033[0;31m\]" # Red
Green="\[\033[0;32m\]" # Green
Yellow="\[\033[0;33m\]" # Yellow
Blue="\[\033[0;34m\]" # Blue
Purple="\[\033[0;35m\]" # Purple
@ferventcoder
ferventcoder / setup.ps1
Last active December 12, 2019 16:59
Really rocking out the environment setup
$scriptDir = $(Split-Path -parent $MyInvocation.MyCommand.Definition)
function Install-NeededFor {
param(
[string] $packageName = ''
,[bool] $defaultAnswer = $true
)
if ($packageName -eq '') {return $false}
$yes = '6'
@ferventcoder
ferventcoder / 1_Log4NetCustomSmtpAppender.cs
Created April 5, 2013 16:11
If you are not ready to upgrade to 1.2.11, you can always explore this option.
/// <summary>
/// This is a custom appender so that we can set enable SSL properly (and support TLS)
/// </summary>
public class SmtpCustomAppender : SmtpAppender
{
public bool EnableSsl { get; set; }
public SmtpCustomAppender()
{
Authentication = SmtpAuthentication.None;
Say you are in a world where you want to use progressive enhancement (sometimes for accessibility)
with ASP.NET MVC 3+.
Progressive Enhancement means the site WORKS WITHOUT JAVASCRIPT FOLKS.
Now say you have something like comments that will be on multiple pages.
You want the site to be maintainable so you want to use a partial with
form submission.
@ferventcoder
ferventcoder / ChocolateyForTheOrganizations_EasilyManageSoftwareOnWindows.md
Last active May 1, 2019 14:56
Chocolatey for the Organizations: Easily Manage Software on Windows

Do any of these apply to you?

  • "I've used Chocolatey at home and would like to see how I can use it at work."
  • "We are already using it in the office and want to validate we are 'doing it right'."
  • "I'm looking for a better way to manage Windows software."
  • "You had me at chocolate. Now I'm hungry."

Great! Chocolatey makes software management on Windows like slicing through butter with a hot knife. Easy! I'm saying it makes Windows software management easy. Okay, the analogy may not translate well, but that doesn't matter.

Come learn more about how to set up a full environment in a short amount of time and see some tools that will help you master Windows software management.

@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'