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 / 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
@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",
# 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 / .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"
@SeanSobey
SeanSobey / fonts.txt
Last active June 1, 2018 14:58
Coding Fonts
https://github.com/ToxicFrog/Ligaturizer
https://github.com/tonsky/FiraCode
https://github.com/larsenwork/monoid
https://github.com/source-foundry/Hack
@SeanSobey
SeanSobey / .gitconfig
Created March 23, 2018 08:25
Git rename command as alias
[alias]
rename = "!moveit() { branchname=$(git rev-parse --abbrev-ref HEAD); git branch -m $branchname $1; git push origin :$branchname; git push --set-upstream origin $1; }; moveit"
@SeanSobey
SeanSobey / .gitconfig
Created January 9, 2018 09:19
Git incoming and outgoing changes aliases
[alias]
outgoing = log --pretty=oneline --abbrev-commit --graph @{u}..
incoming = !git fetch && git log --pretty=oneline --abbrev-commit --graph ..@{u}
@SeanSobey
SeanSobey / %ProgramFiles(x86)%\Cmder\config\user-profile.ps1
Last active April 24, 2018 08:16
Cmder user profile run default profile.
...
[ScriptBlock]$PostPrompt = {
Update-NavigationHistory $pwd.Path
}
## <Continue to add your own>
# Run profile
@SeanSobey
SeanSobey / TimeoutDebug.js
Created November 19, 2017 16:47
Debug node timer leaks
const activeTimeoutIds = new Map();
const _setTimeout = setTimeout;
setTimeout = function (callback, ms, ...args) {
const timeoutId = _setTimeout(() => {
callback();
activeTimeoutIds.delete(timeoutId);
}, ms, ...args);
const stackTrace = (new Error()).stack;
activeTimeoutIds.set(timeoutId, 'ms: ' + ms + ', trace:' + stackTrace);
return timeoutId;
@SeanSobey
SeanSobey / .gitconfig
Last active November 6, 2017 07:48
Set VSCode as git difftool.
[diff]
tool = vscode
[difftool "vscode"]
cmd = code --wait --diff $LOCAL $REMOTE