Skip to content

Instantly share code, notes, and snippets.

View koad's full-sized avatar

Jason Zvaniga koad

View GitHub Profile
@koad
koad / lenovo-t480-keyboard-shortcuts.md
Created August 9, 2025 03:17
This document contains setup instructions and keyboard shortcuts for a Lenovo T480 (1920x1080) laptop running Linux.
@koad
koad / kill-all-tabs.sh
Created August 9, 2025 02:58
A bash script that will destroy all your open tabs, they remain in place so you can refresh them when needed.
#!/usr/bin/env bash
# ANSI color codes
GREEN='\033[0;32m'
CYAN='\033[0;36m'
YELLOW='\033[1;33m'
RED='\033[0;31m'
BLUE='\033[0;34m'
PURPLE='\033[0;35m'
NC='\033[0m' # No Color
@koad
koad / condense-context.prompt
Created July 24, 2025 19:01
A structured condensation prompt designed to transform an AI conversation into a machine-parseable JSON object. It extracts dense, high-detail summaries, tags, and actionable insights suitable for agent workflows, local knowledge bases, or developer tools. Fields like context, actions, risk_level, and code_refs ensure the result is directly usab…
Condense the above conversation into a JSON object with the following fields:
- "context": A short, descriptive title summarizing the main topic.
- "condensed": A bullet-point list containing dense, high-detail, word-efficient summaries of all key insights, technical changes, or instructions discussed. Maximize clarity and completeness while minimizing unnecessary words.
- "endpoint": The name of the AI agent generating this response.
- "sentiment": A single word that reflects the overall tone or feeling of the conversation (e.g., 'neutral', 'urgent', 'optimistic', 'frustrated').
- "tags": An array of keywords or topics covered (for search/indexing).
- "actions": A list of discrete steps or changes that a developer or system should take based on the conversation.
- "code_refs": A list of file paths or code areas likely impacted by the discussed changes.
- "risk_level": One of 'low', 'medium', or 'high' β€” based on how disruptive or critical the changes are.
@koad
koad / meteor-3-migration-checker.sh
Last active July 24, 2025 17:21
This script scans Meteor applications for deprecated functions and patterns that need to be updated for Meteor 3.0 compatibility. It provides detailed reports with file locations, line numbers, and migration advice.
#!/bin/bash
#
# ===================================================================
# Meteor 3.0 Migration Analysis Script
# ===================================================================
#
# Purpose:
# This script scans Meteor applications for deprecated functions and patterns
# that need to be updated for Meteor 3.0 compatibility. It provides detailed
# reports with file locations, line numbers, and migration advice.
@koad
koad / keybase-janitor-supreme.js
Created June 27, 2025 19:42
The digital equivalent of a bouncer with OCD - automatically evicts unwanted private chat messages from your Keybase like they never existed.
/**
* Keybase Janitor Supreme
*
* The digital equivalent of a bouncer with OCD - automatically evicts unwanted
* private chat messages from your Keybase like they never existed.
*
* Mission Briefing:
* This script stalks your chat like a caffeinated security guard, watching for
* messages from your personal "naughty list" of users. When these digital
* troublemakers send you anything, this script:
@koad
koad / nodejs-terminal-colors-cheatsheet.js
Created June 27, 2025 19:30
ANSI Color Learning Playground for Node.js Terminal
/**
* 🎨 ANSI Color Learning Playground for Node.js Terminal
*
* This script demonstrates various ways to add colors and styles to terminal output
* using ANSI escape sequences. Perfect for learning how terminal colors work!
*
* ANSI Color Code Reference:
* β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
* β”‚ Color β”‚ Normal β”‚ Color β”‚ Bright β”‚
* β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
@koad
koad / animated-nodejs-prompt.js
Created June 27, 2025 19:07
Animated terminal prompt with rainbow spinner in nodejs
/**
* 🌈 Animated Terminal Prompt with Rainbow Spinner
*
* A beautiful, animated command-line prompt that features:
* - Braille pattern spinner animation
* - Smooth rainbow color transitions
* - Graceful Ctrl+C handling
* - Real-time prompt updates
*
* Author: koad
@koad
koad / beatify.audio
Last active November 10, 2024 20:32
🌟 Beatify Identity Verification 🌟
Hey there! I’m koad on Beatify, proudly representing as koad on github! πŸ’— Check my profile for authenticity!
πŸ”— https://beatify.audio/koad/signature/APZ8DfXHGfpdatYeT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
🌟 Beatify Identity Verification 🌟
I hereby claim:
@koad
koad / starship.toml
Last active November 22, 2023 23:50
~/.config/starship.toml
# Saved to -> https://gist.github.com/koad/733ca120bc7f0ca44ebd2e96d658b177
# Last Updated -> July 5th, 2023
#
# koad-was-here
#
# koad's https://starship.rs prompt configuration.
# ~/.config/starship.toml
format = """
$cmd_duration\
process.stdout.write('\u001B[2J\u001B[0;0f'); // clear the screen
const signale = require('signale');
signale.time('upstart');
const upstart = new Date();
signale.pending('Catchall API starting...');
signale.info('Setting local timezone to "America/Toronto"');
process.env.TZ = 'America/Toronto';
const { parse } = require('querystring');
const express = require('express');