I hereby claim:
- I am badgerati on github.
- I am badgerati (https://keybase.io/badgerati) on keybase.
- I have a public key ASCcoX7fugcw12wZCfdxH1YCEQjcC6thGQUJLKJVFm6a0wo
To claim this, I am signing this object:
<# -- | |
Register the GitHub Package Registry | |
-- #> | |
$username = '<github-username>' | |
$token = '<github-personal-token>' | |
$sourceName = 'GitHub' | |
$source = "https://nuget.pkg.github.com/$username/index.json" | |
# add the github package registry as a nuget source |
<# | |
.DESCRIPTION | |
PowerShell cron expression parser, to check if a date/time matches a cron expression | |
Format: | |
<min> <hour> <day-of-month> <month> <day-of-week> | |
.PARAMETER Expression | |
A cron expression to validate | |
.PARAMETER DateTime |
I hereby claim:
To claim this, I am signing this object:
<# | |
.DESCRIPTION | |
Given the low and high addresses of a subnet range, will return the subnet mask of the range. | |
For example, given 10.0.0.64 and 10.0.0.95, will return "10.0.0.64/27" | |
.EXAMPLE | |
Get-SubnetMask -Low '10.0.0.64' -High '10.0.0.95' | |
#> | |
function Get-SubnetMask | |
{ |
<# | |
.DESCRIPTION | |
Given a subnet mask, will return the lowest and highest addresses within the range of the mask. | |
For example, given 10.1.4.0/24, will return @{"lowest"="10.1.4.0", "highest"="10.1.4.255"} | |
.EXAMPLE | |
Get-SubnetRange -SubnetMask '10.1.4.0/24' | |
#> | |
function Get-SubnetRange | |
{ |
<# | |
.SYNOPSIS | |
Stops idle/crashed processes by Process Name | |
.DESCRIPTION | |
This function will stop and idle or crashed processed with the passed ProcessName. | |
To detect idle processes, it will first gather an initial list of processes, sleep | |
for a period of time then refetch the list. If any of the new list are identical | |
to the initial list, then these processes are stopped as they're deemed idle. |
############################################################################### | |
# Script to generate Jira Release Notes. | |
# | |
# Release notes can be generated in either HTML, MD or just plain text. You can | |
# specify either the fixVersion, project tag/name or status(es) in any combination. | |
# | |
# Example: | |
# .\jira-release-notes.ps1 -jiraUrl 'http://jira.some.com' -project 'Potatoes' | |
# .\jira-release-notes.ps1 -jiraUrl 'http://jira.some.com' -fixVersion '1.2.0' | |
# .\jira-release-notes.ps1 -jiraUrl 'http://jira.some.com' -statuses @('Done') |
######################################################## | |
# Author: Matthew Kelly (Badgerati) | |
# | |
# This is a PowerShell wrapper around the inbuilt Jenkins CLI. | |
# It simplifies the calls to Jenkins, by just allowing you | |
# to call commands with a simple "jenkins" call. | |
# | |
# Best used with the path to the script in your PATH. | |
# | |
# Requirements: |
########################################################################### | |
# Detects SQL files that are missing from sqlproj files within the given | |
# path. Useful for catching mis-merges that could cause a SProc to not | |
# get deployed, or a table index to get missing. | |
# | |
# Author: Matthew Kelly (@Badgerati) | |
# Date: July 27 2015 | |
# | |
# path: Path to where your .sqlproj files reside | |
# |
########################################################################### | |
# Author: Matthew Kelly (@Badgerati) | |
# Date: May 14 2015 | |
# | |
# MSBuildPath: Path to where your MSBuild.exe file resides | |
# Projects: Array of Project/Solution files | |
# CleanDebug: Switch to clean build in debug mode | |
# CleanRelease: Switch to clean build int release mode | |
# | |
# Example: |