This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm i -g npm-check-updates | |
ncu -u | |
npm install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# We parse parameter to ensure middleman.sh can be called using: | |
# 1. Double quoted parameter value chains | |
# E.g. "--parameter value" "--parameter2 value" | |
# Designed for GitHub actions as action.yml args is sent this way. | |
# Parameter value chains are parsed to send in unquoted format | |
# 2. Parameter value chain | |
# This is the normal usage, parameters are sent through as they are | |
# E.g. --parameter value --parameter2 value |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git remote set-url origin "ssh://git@github.com/USERNAME/REPOSITORY.git" | |
# Verify new remote URL | |
git remote -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config --local user.name "undergroundwires" | |
git config --local user.email "git@undergroundwires.dev" | |
# git config --local user.email "undergroundwires@users.noreply.github.com" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
reg add "HKLM\SYSTEM\CurrentControlSet\Control\FileSystem" /v "LongPathsEnabled" /t REG_DWORD /d 1 /f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo 'setlocal textwidth=72' > ~/.vimrc | |
# For troubleshooting, open up git commit message edior and run: ":verbose set tw?" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ------------- | |
# -- Create --- | |
# ------------- | |
# Generate a key | |
gpg --gen-key | |
# Generate a key with full wizard | |
gpg --full-generate-key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$tdc="D:\uncategorized\" | |
do { | |
$dirs = Get-ChildItem $tdc -Directory -Recurse | Where { (Get-ChildItem $_.FullName).count -eq 0 } | Select -ExpandProperty FullName | |
foreach($dir in $dirs) { | |
Remove-Item "$dir" # Use -Force for removing hidden items | |
} | |
} while ($dirs.count -gt 0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function replaceHashComment(line: string): string { | |
const makeInlineComment = (comment: string) => { | |
const value = comment?.trim(); | |
if (!value) { | |
return '<##>'; | |
} | |
return `<# ${value} #>`; | |
}; | |
const parts = line.split('#'); | |
if (parts.length === 1) { // No hash |
OlderNewer