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 / git.aliases.ps1
Created January 25, 2019 21:35
Handy Git Aliases
# Run from PowerShell
$aliasList = @(
"a = !git add . && git status"
"aa = !git add . && git add -u . && git status"
"ac = !git add . && git commit"
"acm = !git add . && git commit -m"
"alias = !git config --get-regexp '^alias\.' | sort"
"amend = !git add -A && git commit --amend --no-edit"
"au = !git add -u . && git status"
@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]