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 / FixGitSymlinkStatusIssues.ps1
Last active August 12, 2024 08:58
Git Symlinks POSIX vs Windows - Fixes Permission Denied issues when you share a repository as part of your Shared Folders with one or more Windows VMs.
# This fixes Permission denied errors you might get when
# there are git symlinks being used on repositories that
# you share in both POSIX (usually the host) and Windows (VM).
#
# This is not an issue if you are checking out the same
# repository separately in each platform. This is only an issue
# when it's the same working set (aka make a change w/out
# committing on OSX, go to Windows VM and git status would show
# you that change).
#
@ferventcoder
ferventcoder / Compile_Python_Lib.ps1
Created December 9, 2013 19:25
Compiling Python Lib
remove-item libcopy -recurse -force
copy-item lib libcopy -recurse
python -O -m compileall libcopy
get-childitem libcopy -include *.py -recurse | remove-item
get-childitem libcopy -include *.pyc -recurse | remove-item
@ferventcoder
ferventcoder / Default.sublime-keymap
Last active December 30, 2015 17:09
SublimeText2 User Keybindings
[ // ClipboardManager - https://github.com/colinta/SublimeClipboardManager
{ "keys": ["ctrl+s"], "command": "save" },
{ "keys": ["ctrl+x"], "command": "clipboard_manager_cut" },
{ "keys": ["ctrl+c"], "command": "clipboard_manager_copy" },
{ "keys": ["ctrl+v"], "command": "clipboard_manager_paste", "args": { "indent": true } },
{ "keys": ["ctrl+alt+v"], "command": "clipboard_manager_next_and_paste" },
{ "keys": ["ctrl+shift+alt+v"], "command": "clipboard_manager_previous_and_paste" },
{ "keys": ["ctrl+pageup"], "command": "clipboard_manager_next" },
//{ "keys": ["ctrl+pagedown"], "command": "clipboard_manager_previous" },
//{ "keys": ["ctrl+home"], "command": "clipboard_manager_show" },
@ferventcoder
ferventcoder / Preferences.sublime-settings
Created December 8, 2013 15:55
SublimeText2 User Settings
{
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
"draw_white_space": "all",
"ensure_newline_at_eof_on_save": true,
"font_size": 23.0,
"highlight_line": true,
"highlight_modified_tabs": true,
"hot_exit": false,
"ignored_packages":
[
@ferventcoder
ferventcoder / UACHandling.ps1
Created December 4, 2013 19:31
UAC Handling
$uacRegPath = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System"
$uacRegValue = "EnableLUA"
$uacEnabled = $false
# http://msdn.microsoft.com/en-us/library/windows/desktop/ms724832(v=vs.85).aspx
$osVersion = [Environment]::OSVersion.Version
if ($osVersion -ge [Version]'6.0')
{
$uacRegSetting = Get-ItemProperty -Path $uacRegPath
try {
@ferventcoder
ferventcoder / ACL_ACE_Split
Last active December 26, 2015 19:49
PuppetACL
acl { 'c:/windows/temp/some_dir':
inherit => true,
purge => false,
}
ace {
ensure => present,
acl => ACL ['c:/windows/temp/some_dir'],
identity => 'bob',
rights => 'modify',
@ferventcoder
ferventcoder / environment.bat
Created October 1, 2013 20:34
Puppet From Source - put these files next to each other somewhere on the path
@ECHO OFF
SET PL_BASEDIR=C:\code\puppetlabs
REM Set a fact so we can easily source the environment.bat file in the future.
SET FACTER_env_windows_installdir=%PL_BASEDIR%
REM Get the file name we were originally called as. e.g. puppet.bat or puppet
REM or facter.bat or facter. ~n means: will return the file name only of
SET SCRIPT_TEMP=%~n1
@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!

@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 / 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',
}