Skip to content

Instantly share code, notes, and snippets.

View PEZ's full-sized avatar
🎯
Focusing

Peter Strömberg PEZ

🎯
Focusing
View GitHub Profile
{:epupp/script-name "pez/linkedin_squirrel.cljs"
:epupp/auto-run-match "https://www.linkedin.com/*"
:epupp/description "LinkedIn Squirrel. Hoards posts you engage with on LinkedIn so that you can easily find them later"
:epupp/run-at "document-idle"
:epupp/inject ["scittle://replicant.js"]}
(ns pez.linkedin-squirrel
(:require [clojure.edn]
[clojure.string :as string]
[replicant.dom :as r]))
{:epupp/script-name "pez/element_printing.cljs"
:epupp/description "Isolate any element on a web page for clean printing"}
(ns pez.element-printing)
;; --- State ---
(defonce !state
(atom {:mode :idle
:handlers {}
{:epupp/script-name "pez/selector_inspector.cljs"
:epupp/description "Prints elements and their selector to the console. Run to start. Run again to Stop."}
42
(ns selector-inspector
(:require [clojure.string :as string]))
;; Build a selector path for an element
(defn element->selector [elem]
(js/console.log "External code from gist evaluated!")
{:epupp/script-name "pez/document_start_test.cljs"
:epupp/auto-run-match ["https://gist.github.com/*" "https://github.com/*"]
:epupp/description "Testing document-start run-at things."
:epupp/run-at "document-start"}
(ns my-userscript)
;; This code runs before page scripts execute
(js/console.log "BOOM! Intercepting page initialization!")
{:epupp/script-name "pez/gh_party_mode.cljs"
:epupp/description "I'm sorry. Copilot went crazy with things."
:epupp/auto-run-match "https://github.com/PEZ/*"}
(ns tampers.github)
(defonce !db (atom {:db/foo "bar"}))
(comment
@PEZ
PEZ / prompt_sync.cljs
Created September 10, 2025 14:00
Joyride script for syncing Copilot instructions between Stable and Insiders
(ns prompt-sync
(:require ["vscode" :as vscode]
["path" :as path]
[promesa.core :as p]
[joyride.core :as joyride]))
(def ^:const VSCODE-FILE-TYPE vscode/FileType.File)
(def ^:dynamic *log-level* :debug)
@PEZ
PEZ / boost-pronpt.prompt.md
Last active August 12, 2025 12:11
A prompt file for VS Code Copilot to help with crafting good task prompts from one liners
mode
agent

You are an AI assistant designed to help users create high-quality, detailed task prompts. DO NOT WRITE ANY CODE.

Your goal is to iteratively refine the user’s prompt by:

At all times when you need clarification on details, ask specific questions to the user using the joyride_request_human_input tool.

  • Understanding the task scope and objectives
@PEZ
PEZ / instructions-refinement.prompt.md
Created July 8, 2025 15:25
Prompt for Copilot (or any LLM) to help with refining LLM instructions/system prompts
mode
agent

You are an expert AI instruction engineer specializing in optimizing prompts for maximum effectiveness using positional bias principles.

CRITICAL CONSTRAINTS

  • Always restructure instructions to leverage primacy effect - most important content must come first
  • Eliminate redundancy and verbose explanations - every word counts in the high-attention zones
@PEZ
PEZ / keybindings.json
Last active December 17, 2025 15:08
Calva custom repl commands and keybinding for Snitch
...
// --- SNITCH CONVENIENCE, Thanks, Abhinav! ♥️🙏
// https://github.com/AbhinavOmprakash/snitch
{
// Instrument as snitched defn*
"key": "cmd+enter",
"when": "editorLangId == 'clojure' && calva:connected",
"command": "calva.runCustomREPLCommand",
"args": {
"snippet": "${top-level-form|replace|^\\(defn-?|(defn*}"