Skip to content

Instantly share code, notes, and snippets.

View joshp123's full-sized avatar

Josh Palmer joshp123

View GitHub Profile
@joshp123
joshp123 / session.html
Created January 13, 2026 13:28
pi-golang build session (sanitized)
This file has been truncated, but you can view the full file.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Session Export</title>
<style>
:root {
--accent: #8abeb7;
--border: #5f87ff;
@joshp123
joshp123 / SKILL.md
Created January 12, 2026 14:47
ai-stack frontend-design skill
name description
frontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.

Frontend Design Skill

This skill guides creation of frontend interfaces that are both well-designed (usable, clear, appropriate) and visually distinctive (memorable, polished, intentional).

Core Principle

@joshp123
joshp123 / frontend-design-skill.md
Created January 12, 2026 14:46
frontend-design skill
name description
frontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.

This skill guides creation of distinctive, production-grade frontend interfaces that avoid generic "AI slop" aesthetics. Implement real working code with exceptional attention to aesthetic details and creative choices.

The user provides frontend requirements: a component, page, application, or interface to build. They may include context about the purpose, audience, or technical constraints.

Design Thinking

@joshp123
joshp123 / 2026-01-11-plugin-system.md
Last active January 11, 2026 12:33
RFC: Clawdbot Plugin System — The Golden Path

RFC: Clawdbot Plugin System — The Golden Path

  • Date: 2026-01-11
  • Status: Draft
  • Audience: Peter (clawdbot maintainer), nix-clawdbot maintainers

Goals

Peter's goals: Easy extension, maintainable core, thriving ecosystem, ship fast.

@joshp123
joshp123 / developing_in_containers.sh
Created October 30, 2018 15:13
Developing in containers (bad!!!)
Developing in containers (bad!!!)
wget ftp://ftp.vim.org/pub/vim/unix/vim-8.1.tar.bz2
tar -xjvf vim-8.1.tar.bz2
cd vim81/
make
export PATH=$PWD/src:$PATH
git clone https://github.com/joshp123/dotfiles.git /tmp/dotfiles
cp /tmp/dotfiles/.vimrc ~
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
@joshp123
joshp123 / crashy_thread.py
Last active December 12, 2018 16:14
Bare raise inside thread causes segfault
import threading
import time
import logging
logging.basicConfig()
log = logging.Logger(__name__)
class CrashyThread(threading.Thread):
def run(self):
@joshp123
joshp123 / gist:c09ee6ed4b3f56a37adee29603c556e8
Last active October 4, 2018 13:28
vim dictionary-ise variables
:%s/\(\zs\S\+\ze\s\{1}[=]\)/config["\1"]/g
(then do this because it's buggy)
%s/ ="/"/g
given a file like so:
foo = {SomeObject(
a=1,
b=2,
c=3
@joshp123
joshp123 / workspace.sh
Created October 2, 2018 16:22
start aws workspace matching given username
aws workspaces describe-workspaces | jq '.Workspaces[] | select(.UserName=="josh").WorkspaceId' | xargs -I % aws workspaces start-workspaces --cli-input-json "$(aws workspaces start-workspaces --generate-cli-skeleton | sed 's/\"\"/\"%\"/')"
@joshp123
joshp123 / redis-one-line--pattern-delete.sh
Last active July 5, 2017 13:45 — forked from MattSurabian/redis-one-line--pattern-delete.sh
One liner for deleting based on a pattern in redis. KEYS supports wildcards, delete/get/etc doesn't. No worries xargs to the rescue.
redis-cli -h <HOST> -p <PORT> KEYS "<PATTERN>" | xargs -i% redis-cli -h <HOST> -p <PORT> DEL %
#easy mmode:
redis-cli KEYS "<pattern>" | xargs -i% redis-cli GET %
@joshp123
joshp123 / 0_reuse_code.js
Last active August 29, 2015 14:18
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console