Skip to content

Instantly share code, notes, and snippets.

View daveio's full-sized avatar
🧑‍🎤

Dave Williams daveio

🧑‍🎤
View GitHub Profile
@daveio
daveio / MonokaiClassic.terminal
Last active March 15, 2025 17:26
Monokai Pro for Terminal.app
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ANSIBlackColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGBwpYJHZlcnNpb25ZJGFyY2hpdmVyVCR0b3BYJG9iamVjdHMS
AAGGoF8QD05TS2V5ZWRBcmNoaXZlctEICVRyb290gAGmCwwXHR4lVSRudWxs1Q0ODxAR
EhMUFRZcTlNDb21wb25lbnRzVU5TUkdCXE5TQ29sb3JTcGFjZV8QEk5TQ3VzdG9tQ29s
b3JTcGFjZVYkY2xhc3NPECgwLjE1Mjk0MTE3NjUgMC4xNTY4NjI3NDUxIDAuMTMzMzMz
@daveio
daveio / MonokaiClassic.itermcolors
Last active March 15, 2025 17:25
Monokai Pro for iTerm2
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.1333333333</real>
@daveio
daveio / MonokaiClassic.yaml
Last active March 15, 2025 17:36
Monokai Pro for Warp
accent: "#c0c1b5"
background: "#272821"
foreground: "#fcfff0"
details: "darker"
terminal_colors:
normal:
black: "#272821"
red: "#f82571"
green: "#a6e12e"
yellow: "#e5da74"
@daveio
daveio / mise.toml
Created March 17, 2025 14:04
Mise config
[env]
EDITOR = 'code --wait'
MISE_ACTIVE = 'true'
[settings]
all_compile = true
asdf_compat = true
auto_install = true
color = true
env_file = '.env'
@daveio
daveio / github-gar.fish
Last active March 18, 2025 14:28
Set up GitHub and GCP Artifact Registry
# BEGIN INFORMATION
# DEPENDENCIES:
#
# `fish` - This uses `fish` syntax. It will not work under `bash` or `zsh`. Feel free to port it.
# `gh` - GitHub CLI. Make sure this is installed and logged in.
# `gcloud` - Google Cloud CLI. Make sure this is installed and logged in.
#
# INSTRUCTIONS:
#
@daveio
daveio / shadcn-monokai.css
Created March 21, 2025 21:46
shadcn monokai theme
@layer base {
:root {
--background: 233 18% 19%;
--foreground: 173 24% 93%;
--muted: 233 12% 23%;
--muted-foreground: 233 12% 73%;
--popover: 233 18% 16%;
--popover-foreground: 0 0% 100%;
--card: 233 18% 17%;
--card-foreground: 173 24% 98%;
@daveio
daveio / ruby_idioms.rb
Created April 4, 2025 09:55
Claude AI adding comments to a file
#!/usr/bin/env ruby
class Person
attr_accessor :name, :age
def initialize(name, age)
@name = name
@age = age
end
@daveio
daveio / stained-glass.md
Created April 4, 2025 12:50
Stained Glass Window

Thanks! I’ll look into the meaning or origin of the symbol in this stained glass window, which features geometric shapes in blue and yellow and is installed in a residential property. I’ll explore whether it has historical, cultural, architectural, or symbolic significance.

I’ll get back to you shortly with what I find.

Meaning and Origin of a Geometric Stained Glass Symbol

Description of the Design

The stained glass pattern is composed of bold geometric shapes in textured blue and yellow glass. It features a large yellow triangular form at the bottom, a smaller blue triangle pointing downward in the center, and a yellow “drop”-shaped piece at the top. All the pieces are outlined in dark lead came (the black lines). The design is strikingly simple and symmetric along a vertical axis, giving the impression of an abstract emblem or icon.

Architectural Context: Decorative Leaded Glass

const detectKeyType = (key: string): KeyType => {
if (!key.trim()) return null;
if (
key.includes("-----BEGIN PRIVATE KEY-----") ||
key.includes("-----BEGIN RSA PRIVATE KEY-----") ||
key.includes("-----BEGIN EC PRIVATE KEY-----")
) {
return "PKCS#8";
} else if (key.includes("-----BEGIN OPENSSH PRIVATE KEY-----")) {
@daveio
daveio / AI prompt for Cloudflare Workers (MDC for Cursor).md
Created April 29, 2025 23:48
The code snippet is an advanced assistant specialized in generating Cloudflare Workers code. It includes best practices, configuration requirements, and code examples to help you build efficiently secure/scalable applications on the Cloudflare platform by default unless JavaScript is specifically requested

AI prompt for Cloudflare Workers (MDC for Cursor)

Preview:
---
description: You are an advanced assistant specialized in generating Cloudflare Workers code. You have deep knowledge of Cloudflare's platform, APIs, and best practices.
globs:
alwaysApply: true
---
# Cloudflare Workers Development Guide