Skip to content

Instantly share code, notes, and snippets.

@joeskeen
joeskeen / skene-crest.ascii
Created April 19, 2026 18:48
Crest for Clan Skene
█████████████████████████████████████████████████████████████
█████████████████████████████████████████████████████████████
█████████████████████████████████████████████████████████████
█████████████████████████████████████████████████████████████
█████████ ▀██▀▐█████████████ ▀██▀▐█████████████ ▀██▀▐████████
████████▌__/ ▒ ████████████▌__/ ▒ ████████████▌__/ ▒ ████████
██████▀ _▀████████▀ _▀████████▀ _▀██████
█▀▀ 0 ─██▀▀ 0 ─██▀▀ 0 ─█████
█▀▄▄vv┌── _─█▀▄▄vv┌── _─█▀▄▄vv┌── _─████
█└────┘ ▄_ ▐█└────┘ ▄_ ▐█└────┘ ▄_ ▐████
@joeskeen
joeskeen / Get-CopilotUsage.ps1
Last active April 2, 2026 17:03 — forked from m0wer/copilot-quota.sh
Github Copilot subscription quota tracker
<#
.SYNOPSIS
Retrieves GitHub Copilot premium usage and pace details via OpenCode-authenticated APIs.
.DESCRIPTION
This file contains only the function definition. To use it as a command, save it to its
own `.ps1` file and dot-source that file from your `$PROFILE`.
This command depends on OpenCode authentication state. Install OpenCode, then run
`opencode auth` and complete GitHub Copilot authentication before using this command.
@joeskeen
joeskeen / check-git-repos.sh
Last active October 19, 2025 18:05
Check all Git repositories for uncommitted/unpushed changes
#!/usr/bin/env bash
ROOT_DIR="${1:-.}"
ROOT_DIR="$(realpath "$ROOT_DIR")"
echo "Scanning for Git repositories under: $ROOT_DIR"
echo
# Counters and path trackers
total=0
@joeskeen
joeskeen / check-npm-cache.sh
Last active September 24, 2025 06:10 — forked from phxgg/check-npm-cache.sh
This script will check your npm cache and find if any of the affected packages was pulled in your machine. `chmod +x check-npm-cache.sh` before usage. No dependencies - should work on any system with Bash. (Only tested by me on Linux)
#!/usr/bin/env bash
echo "🔍 Scanning for compromised NPM packages..."
# Define compromised packages and versions
declare -A compromised=(
[ansi-regex]="6.2.1"
[ansi-styles]="6.2.2"
[backslash]="0.2.1"
[chalk]="5.6.1"
@joeskeen
joeskeen / distance-between.ts
Last active November 1, 2024 14:13
Calculating distance between two global coordinates (latitude, longitude)
/*
* Based on 'distance-from' NPM package: https://github.com/rickyplouis/distance-from
* refactored to:
* - make the Distance object immutable
* - remove superfluous distance options
* - make types more succinct
* - improve amount of validation for positions
*/
export type Position = [latitude: number, longitude: number];
@joeskeen
joeskeen / name-default-exports.mjs
Created February 12, 2024 16:25
Name the default exports of modules
import { readFileSync, writeFileSync } from "fs";
import glob from "glob";
import { pascalCase } from "change-case";
const defaultExportPattern = /export default \{/;
glob.sync("lib/**/index.js").forEach((file) => {
const fileContents = readFileSync(file, "utf-8").toString();
if (!defaultExportPattern.test(fileContents)) {
return;
@joeskeen
joeskeen / Readme.md
Last active January 2, 2024 05:32
Numbered Coin 3D Model

Numbered Coin 3D Model

image

This SCAD script allows you to print mulitple numbered coin tokens meant to be drawn at random from a bag. There are lines over the top of the number to make it more difficult to feel around for a specific number. To change the number, modify the last line of code to include the desired number. Then take the code to https://ochafik.com/openscad2/ and download it as STL, then slice it with your favorite slicer. It should be able to be printed at any size required, without needing any supports.

@joeskeen
joeskeen / donut.ascii.svg
Last active October 25, 2023 21:30
[wip]donut.ascii.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@joeskeen
joeskeen / Readme.md
Last active June 15, 2023 01:56
ng-conf Hackathon 2023

ng-conf Hackathon 2023

image

Welcome to the ng-conf Hackathon 2023! Get ready for an exciting night of coding, innovation, and prizes. Below are the instructions you need to know to make the most out of this event. Let's get started!

Date and Time

  • Date: June 14th 2023
  • Start Time: 8:00 PM MDT
@joeskeen
joeskeen / coin.scad
Created April 20, 2023 19:55
OpenSCAD model for a stackable coin token for games like Puerto Rico, 7 Wonders, etc.
$thickness = 2;
$outerDiameter = 20;
$innerDiameter = $outerDiameter - 2 * $thickness;
$center = true;
module coin($text) {
difference() {
cylinder($thickness, d=$outerDiameter, center=$center);
cylinder($thickness, d=$outerDiameter - $thickness, center=$center);
}