Skip to content

Instantly share code, notes, and snippets.

View SeanSobey's full-sized avatar

Sean Sobey SeanSobey

  • SA HomeLoans
  • South Africa
View GitHub Profile
@SeanSobey
SeanSobey / .gitconfig
Last active February 24, 2020 12:24
Git sync comnmand as alias
[alias]
sync = "! git fetch && git remote prune origin && git branch --merged | tr -d '* ' | grep -vE '^\\s*master' | xargs -n1 -r git branch -d"
# https://joonro.github.io/blog/posts/powershell-customizations.html
# https://hodgkins.io/ultimate-powershell-prompt-and-git-setup
Import-Module posh-docker
Write-Host "Imported posh-docker"
# https://github.com/dahlbyk/posh-git
Import-Module posh-git
Write-Host "Imported posh-git"
@SeanSobey
SeanSobey / settings.json
Created September 30, 2020 07:35
Windows terminal settings
// This file was initially generated by Windows Terminal 1.2.2381.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
@SeanSobey
SeanSobey / DisablePathLengthLimit.ps1
Created November 23, 2023 18:59
Disable 256 character path length limitation
# See https://github.com/Disassembler0/Win10-Initial-Setup-Script
# Disable 256 character path length limitation (MAX_PATH), see https://www.autodesk.com/support/technical/article/caas/sfdcarticles/sfdcarticles/The-Windows-10-default-path-length-limitation-MAX-PATH-is-256-characters.html
Function DisablePathLengthLimit {
Write-Host "Disable path length limitation (MAX_PATH)..."
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Type DWord -Value 1
}
DisablePathLengthLimit