Skip to content

Instantly share code, notes, and snippets.

View drewbrokke's full-sized avatar
🦆
work work work

Drew Brokke drewbrokke

🦆
work work work
View GitHub Profile
@drewbrokke
drewbrokke / git-fuzzy-checkout
Last active April 4, 2025 13:42
Fast git checkout using `fzf`
#!/bin/bash
# Requires 'fzf'
# check_dependency fzf git || exit 1
HELP_TEXT="
git fuzzy-checkout
Check out branches quickly with the power of \`fzf\`.
Default view is local branches (HEADS).
#!/bin/bash
check_dependency fzf gsed pup || exit
DELIMITER=" : "
function getUsers() {
URL="${1}"
MARKUP="$(curl -s "https://github.com${URL}")"
#!/bin/bash
# openFiles // opens all files between current branch and master
# openFiles branchName // opens all files between "branchName" and master
# openFiles commitHash // opens all files between "commitHash" and master
# openFiles commitHash1 commitHash2 // opens all files between "commitHash1" and "commitHash2"
function openFiles() {
HASH1="${1}"
@khalidx
khalidx / node-typescript-esm.md
Last active April 15, 2025 14:15
A Node + TypeScript + ts-node + ESM experience that works.

The experience of using Node.JS with TypeScript, ts-node, and ESM is horrible.

There are countless guides of how to integrate them, but none of them seem to work.

Here's what worked for me.

Just add the following files and run npm run dev. You'll be good to go!

package.json