Skip to content

Instantly share code, notes, and snippets.

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

Donald Wayne Moore Jr. imgnx

:electron:
Raising my APM
View GitHub Profile
@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