Skip to content

Instantly share code, notes, and snippets.

/*
Quick and dirty script to help catch package.json missmatches in large projects / mono repros.
Created with PHIND.COM as a pair programmer ;)
Usage:
node scripts/find-versions-missmatches.js [--fix] [--latest]
--fix - Update all packages to the latest version (local)
--latest - Update all packages to the latest version (npm)
Script will parse all package.json files in the current directory and sub-directories and
@a-c-m
a-c-m / prepare-commit-msg
Last active September 27, 2023 11:28
git/hooks/prepare-commit-msg (auto prefix ticketID)
#!/bin/bash
# Idea is mine (@a_c_m), code it ChatGPT-4, don't forget to `chmod +x .git/hooks/prepare-commit-msg`
# Automatically adds the ticket ID to the commit message, or warns how to do it.
# Get the current branch name
BRANCH_NAME=$(git symbolic-ref --short HEAD)
# Parse arguments
COMMIT_MSG_FILE="$1"
@a-c-m
a-c-m / zoom-auto-close-tab.user.js
Last active April 27, 2020 08:44 — forked from jeremy-w/zoom-auto-close-tab.user.js
Zoom: Auto-Close App Bouncer Tab #userscript
// ==UserScript==
// @name Zoom: Auto-Close App Bouncer Tab
// @namespace https://bignerdranch.com/
// @version 1.1
// @description Close the tab Zoom uses to redirect to its app after several seconds.
// @author Jeremy W. Sherman <jeremy@bignerdranch.com>
// @author Alex McFadyen <gist@acmconsulting.eu>
// @downloadURL https://gist.github.com/a-c-m/86a10ad240e23f778b2564a459238df8/raw/zoom-auto-close-tab.user.js
// @match https://zoom.us/j/*
// @match https://*.zoom.us/j/*