Skip to content

Instantly share code, notes, and snippets.

View imgnx's full-sized avatar
:copilot:
Raising my APM

Donald Wayne Moore Jr. imgnx

:copilot:
Raising my APM
View GitHub Profile
@imgnx
imgnx / main.sh
Created July 27, 2025 07:37
Clean up src/ director(y/ies)
#!/bin/bash
#shellcheck shell=bash
find $HOME/src -type d \( -name "target" -or -name "node_modules" -or -name "venv" -or -name "dist" -or -name "build" -or -name ".idea" -or -name ".vscode" \) -or -name "*.log" -or -name "*.bak" -or -name "*.swp" -or -name "*~" -or -name "debug" -or -name "debug_log"
@imgnx
imgnx / gist:45caab2c4ce46c1729609c22159bb993
Created July 9, 2025 18:40
Not involved with any fishy crypto fishy business
I'm told that there are people claiming to "tokenize" my git repositories with my approval.
I just want to clarify that that is not the case. I do not believe in monetizing my repositories.
If you believe crypto-currencies are anything but a scam, I have a bridge to sell you.
But I'm not selling source code.
@imgnx
imgnx / sleep.js
Last active January 9, 2025 19:13
// sleep.js
const sleep = async (time = 1000) =>
{
return await new Promise((res) => {
setTimeout(() => {
res();
}, time);
});
};
@imgnx
imgnx / .zprofile
Created December 31, 2024 11:15
Have you ever been creating a repo and you're writing your package.json file, but then you realize you should create a repo first, and then you have to move your hand all the way to your mouse to copy the URL? Well, so have I, and here's a fix for that.
#!/bin/zsh -df
# Et voila!
# No more typing in the same repository owner/repo twice after running
#`gh repo create`
function copy_that_last_repo_address() {
if ! command -v gh &>/dev/null; then
echo "gh command not found. Please install GitHub CLI."
@imgnx
imgnx / gsearch.sh
Last active December 11, 2024 07:05
#!/usr/bin/env node
// Open ("Google") Search in your default browser from your CLI.
// Check if search terms were provided
if (process.argv.length <= 2) {
console.log('Usage: gsearch [search terms]');
process.exit(1);
}
@imgnx
imgnx / ffmpeg.md
Created August 6, 2024 12:50 — forked from steven2358/ffmpeg.md
FFmpeg cheat sheet