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_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;
@ferventcoder
ferventcoder / ConcatenateDatabaseScripts.ps1
Created May 30, 2013 16:02
Concatenate Database scripts into one
param(
[alias("startWith")]
[string]$startFile=''
)
$scriptDir = $(Split-Path -parent $MyInvocation.MyCommand.Definition)
$dateNow = Get-Date -format "yyyyMMdd_HHmmss"
$fileNameToSaveTo = 'SingleMigration.' + $dateNow + '.sql'
$fileToSaveTo = Join-Path $scriptDir "src\Database\somedb-concat\$($fileNameToSaveTo)"
@ferventcoder
ferventcoder / Abstratct: DevOps: Getting Started with Puppet on Windows.md
Last active December 18, 2015 07:09
DevOps: Getting Started with Puppet on Windows

You keep hearing about DevOps and how awesome it is, if you have Linux. Well Windows can be awesome with DevOps, too. And it's just going to keep getting better. If you are on Windows and you are even remotely interested in making things better, then you should come out and see what Puppet is all about and what it can do for your organization.

@ferventcoder
ferventcoder / PuppetFile
Created July 5, 2013 15:28
Boxen config for mongodb - an example
#https://github.com/ferventcoder/boxen#including-boxen-modules-from-github-boxenpuppet-
github "mongodb", "1.0.4"
@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 / InstallVagrantWindowsPluginFromSource.ps1
Last active November 19, 2016 04:40
Install Vagrant-Windows plugin from source
# WINDOWS
# =======
# This assumes you already have chocolatey installed:
# From cmd.exe:
# @powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%systemdrive%\chocolatey\bin
# From powershell:
# iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
#
# This assumes you have vagrant already installed:
# cinst vagrant
@ferventcoder
ferventcoder / stopservice.pp
Created August 28, 2013 15:30
Puppet Stop Service Exec Example
exec { 'stop-CryptSvc':
command => 'C:\Windows\System32\cmd.exe /c "net stop CryptSvc"'
}
@ferventcoder
ferventcoder / website.pp
Last active December 22, 2015 20:39 — forked from drusellers/website.pp
class blue::websites {
# this creates the root website
iis_site { 'dovetail':
ensure => 'present',
bindings => 'http/*:80',
}
iis_app {'dovetail/':
ensure => 'present',
applicationpool => 'DefaultAppPool',
}
@ferventcoder
ferventcoder / DefaultJenkinsEmail
Last active February 23, 2025 06:00
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 / DevOps: Using Vagrant to Enhance Your Day to Day Development.md
Last active December 23, 2015 22:29
Vagrant abstract - DevOps: Using Vagrant to Enhance Your Day to Day Development

You know and love sandboxing for source code and being able to throw away work or commit it at the end of the day. Now take that concept back a level to virtual machines and add a side of provisioning. This is vagrant.

Have a user have a certain setup that you don't want to replicate on your work machine? Vagrant can help you get that environment setup and allow you to replicate bugs quickly.

Having a virtual sandbox may change the way you test your end product. If you are already virtualized, this session will show you ways to enhance your day to day development. If you are not virtualized, this session may rock your world in what's possible and what will be mainstream coming in the next few years. Don't miss out on this opportunity to see it ahead of time and get ahead of the curve!