Skip to content

Instantly share code, notes, and snippets.

View starfreck's full-sized avatar
🕳️
Building Portal

Vasu starfreck

🕳️
Building Portal
View GitHub Profile
@asheroto
asheroto / Remove-Duplicate-Entries-From-Path-Variables.ps1
Last active May 17, 2026 18:16
PowerShell script to remove duplicate entries from PATH environmental variables in Windows.
Clear-Host;
# Begin
Write-Output "⏲️⏲️⏲️ Starting ⏲️⏲️⏲️"
Write-Output ("-" * 50)
Write-Output ""
# System PATH
Write-Output "🖥️ Checking System PATH 🖥️"
$TempMachinePath = [System.Environment]::GetEnvironmentVariable("Path", "Machine");
use anyhow::{ensure, Context as _};
use byteorder::{BigEndian, ReadBytesExt as _};
use easy_ext::ext;
use itertools::Itertools as _;
use ress::tokens::{IdentExt as _, StringLitExt as _};
use scraper::{Html, Selector};
fn main() -> anyhow::Result<()> {
let client = reqwest::blocking::Client::new();
@troyfontaine
troyfontaine / 1-setup.md
Last active August 3, 2026 19:46
Signing your Git Commits on MacOS

Methods of Signing Git Commits on MacOS

Last updated March 13, 2024

This Gist explains how to sign commits using gpg in a step-by-step fashion. Previously, krypt.co was heavily mentioned, but I've only recently learned they were acquired by Akamai and no longer update their previous free products. Those mentions have been removed.

Additionally, 1Password now supports signing Git commits with SSH keys and makes it pretty easy-plus you can easily configure Git Tower to use it for both signing and ssh.

For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing your commits with GPG.