Bookmark: DNS Lookup – Dig Equivalent for Windows
My new favorite DNS troubleshooting tool isĀ https://github.com/ameshkov/dnslookup. Not only does it offer equivalent DIG commands on windows but it can query DNS records over TLS and HTTPS.
Bookmark: Quick Way to Publish Typescript Projects as NPM Modules
Especially useful is the npm link command to test the package before publishing:
Shell Command to Check List of Files
tr '\n' '\0' < check.txt | xargs -0 -r ls -alc --
Adapted from https://unix.stackexchange.com/questions/65584/how-to-execute-command-on-list-of-file-names-in-a-file
Bookmark – GIT Remove files with wrong line endings
1) Remove every file from Git’s index.
git rm --cached -r .
2) Rewrite the Git index to pick up all the new line endings.
git reset --hard
Source: https://www.xspdf.com/help/52265711.html
Disable Line Ending Conversions
git config --global core.autocrlf false
Rescan For Disks Without Rebooting
for host in /sys/class/scsi_host/*; do echo "- - -" | sudo tee $host/scan; ls /dev/sd* ; done
Source:
https://unix.stackexchange.com/questions/404405/how-to-detect-new-hard-disk-attached-without-rebooting/500280#500280?s=a878dbdf0ffd4699bcb88957b7c1c087