Skip to content

Instantly share code, notes, and snippets.

View coltenkrauter's full-sized avatar
🔥
Fire

Colten Krauter coltenkrauter

🔥
Fire
  • Stevensville, MT
View GitHub Profile
@coltenkrauter
coltenkrauter / canon-camera-dat-file-issue.md
Created September 29, 2023 03:20
A guide that explains the DAT file issue in Canon cameras, including the Vixia HFG50, and how to fix it.
View canon-camera-dat-file-issue.md
@coltenkrauter
coltenkrauter / ultimate-typescript.gitignore
Created September 24, 2023 21:48
This gist provides the ultimate .gitignore file tailored for TypeScript projects, covering Node.js, IDE-specific, and operating system files to be ignored by Git.
View ultimate-typescript.gitignore
# ---> Node.js and NPM packages
node_modules/
package-lock.json
yarn.lock
# ---> TypeScript Compiler Output
dist/
*.tsbuildinfo
# ---> IDE - Visual Studio Code
@coltenkrauter
coltenkrauter / create-push-local-github-repo.md
Created September 24, 2023 21:41
A beginner-friendly, detailed guide on creating a local GitHub repository and pushing it to a remote GitHub repository.
View create-push-local-github-repo.md
@coltenkrauter
coltenkrauter / update-node-npm.sh
Created September 24, 2023 14:56
Instructions to update Node.js and NPM to their latest versions.
View update-node-npm.sh
# Check current versions
node -v
npm -v
# Update NPM
npm install -g npm@latest
# Install NVM (Node Version Manager)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | zsh
@coltenkrauter
coltenkrauter / google-takeout-validator.md
Last active September 20, 2023 06:26
A script for validating Google Takeout archives by checking for missing files and verifying their sizes.
View google-takeout-validator.md

Google Takeout Validator

this gist contains a script for validating google takeout archives. it verifies the integrity of the archive by identifying missing files and verifying their sizes.

Intro

this script is built to help you ensure that your google takeout archive is complete and that each file meets the expected size parameters. the script identifies the first and last files in the archive and checks for missing files between these. additionally, it verifies that each file in the archive is not smaller than the specified size.

Contents

@coltenkrauter
coltenkrauter / best-unix-package-manager.md
Created September 14, 2023 16:36
A comprehensive comparison of popular Unix package managers, with a declared winner and room for collaboration.
View best-unix-package-manager.md

Best Unix Package Manager

Alright, folks, let's dive into the eternal quest for the best Unix package manager. In this journey, we'll take a look at eight top-notch contenders, examining their strengths and weaknesses. And yes, we're going to crown a winner, all backed by solid reasoning and evidence. Our mission? To empower Unix users like you to make an educated choice that suits your needs.

Table of Contents

@coltenkrauter
coltenkrauter / check-package-managers.sh
Created September 14, 2023 15:54
This zsh script surveys your UNIX system to identify which package managers are installed, swiftly scanning through a predefined list of popular managers and signaling their availability, making the task of installing new software packages a breeze.
View check-package-managers.sh
#!/bin/zsh
# Define a list of package managers to check
package_managers=("apt" "yum" "dnf" "brew" "zypper" "pacman" "emerge" "nix" "snap" "flatpak")
echo "Initiating package manager detection..."
# Start checking phase
echo "\e[32m==> Starting Detection Phase\e[0m"
@coltenkrauter
coltenkrauter / directory-match-finder.md
Last active September 14, 2023 00:29
This script helps in maintaining a clean and organized directory structure for Plex servers or similar setups. By identifying any nested directories that share the same name with their parent or grandparent directories, it aids in ensuring that automated tools and scripts function idempotently, preventing potential errors due to duplicate nested…
View directory-match-finder.md

Directory Match Finder

In managing a robust Plex server, overseeing a large and complex directory structure is a given. Ensuring that your automated organization tools and scripts operate seamlessly is vital. This script is crafted to be your handy tool in this process, helping you identify directories that share the name with their parent or grandparent directories quickly and efficiently. Below is a user-friendly guide and the script to facilitate this.

Table of Contents

@coltenkrauter
coltenkrauter / blocking-traffic-between-vlans-unifi-router.md
Last active September 12, 2023 17:54
This guide provides a detailed step-by-step walkthrough to help you enhance network security by blocking traffic between VLANs on Unifi routers including UDM, UDM-SE, and the Dream Router. Follow these guidelines to create an IP group representing the internal IP ranges according to RFC1918 and configure firewall rules that prioritize blocking t…
View blocking-traffic-between-vlans-unifi-router.md

Blocking Traffic Between VLANs on Unifi Router (UDM, UDM-SE, Dream Router)

Greetings, network enthusiasts! Today, we are set to embark on an essential task: enhancing the security of your network by blocking traffic between VLANs on Unifi routers such as UDM, UDM-SE, and the Dream Router. Join us as we delve into the nuances of RFC1918 IP ranges and configure firewall rules to safeguard your network effectively.

Table of Contents

  1. Introduction
  2. Why is this Important for Security?
  3. Official Documentation and RFC Links
  4. Instructions