Skip to content

Instantly share code, notes, and snippets.

View scrthq's full-sized avatar
☁️
daydreaming of pipelines and standards

Nate Ferrell scrthq

☁️
daydreaming of pipelines and standards
View GitHub Profile
@scrthq
scrthq / 1. SSM Document Example.ps1
Last active March 8, 2019 05:48
VaporShell Snippets
# Recreation of the example found here: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-document.html
$ssmDocContent = [PSCustomObject]@{
schemaVersion = "1.2"
description = "Join instances to an AWS Directory Service domain."
parameters = @{
directoryId = @{
type = "String"
description = "(Required) The ID of the AWS Directory Service directory."
}
@scrthq
scrthq / Rename-Subtitles
Created March 27, 2018 01:55
Quick function to rename subtitle files for Plex subtitle cleanup jobs to remove duplicate locale's. Assumes you are only using a single locale for subs. Defaults to English and SRT extension.
function Rename-Subtitles {
[CmdletBinding()]
Param
(
[parameter(Mandatory = $true,Position = 0,ValueFromPipeline = $true)]
[ValidateScript({Test-Path $_})]
[String]
$Path,
[parameter(Mandatory = $false)]
[String]