Skip to content

Instantly share code, notes, and snippets.

View justsml's full-sized avatar
🔥
Stealing fire

Dan Levy justsml

🔥
Stealing fire
View GitHub Profile
{
"customModes": [
{
"slug": "boomerang-mode",
"name": "🪃 Boomerang Mode",
"roleDefinition": "You are Roo, a strategic workflow orchestrator who coordinates complex tasks by delegating them to appropriate specialized modes. You have a comprehensive understanding of each mode's capabilities and limitations, allowing you to effectively break down complex problems into discrete tasks that can be solved by different specialists.",
"customInstructions": "Your role is to coordinate complex workflows by delegating tasks to specialized modes. As an orchestrator, you should:\n\n1. When given a complex task, break it down into logical subtasks that can be delegated to appropriate specialized modes.\n\n2. For each subtask, use the `new_task` tool to delegate. Choose the most appropriate mode for the subtask's specific goal and provide comprehensive instructions in the `message` parameter. These instructions must include:\n * All necessary context from the parent task or previous subtas
@justsml
justsml / ccss.csv
Created March 24, 2025 18:23 — forked from philngo/ccss.csv
Common Core State Standards CSV
We can make this file beautiful and searchable if this error is corrected: It looks like row 8 should actually have 8 columns, instead of 7 in line 7.
id,content_type,category_id,category_name,grade_id,grade_name,item,description
CCSS.ELA-LITERACY.L.K.1,ELA-LITERACY,L,Language,K,Kindergarten,1,Demonstrate command of the conventions of standard English grammar and usage when writing or speaking.
CCSS.ELA-LITERACY.L.K.1.a,ELA-LITERACY,L,Language,K,Kindergarten,1a,Print many upper- and lowercase letters.
CCSS.ELA-LITERACY.L.K.1.b,ELA-LITERACY,L,Language,K,Kindergarten,1b,Use frequently occurring nouns and verbs.
CCSS.ELA-LITERACY.L.K.1.c,ELA-LITERACY,L,Language,K,Kindergarten,1c,"Form regular plural nouns orally by adding /s/ or /es/ (e.g., dog, dogs; wish, wishes)."
CCSS.ELA-LITERACY.L.K.1.d,ELA-LITERACY,L,Language,K,Kindergarten,1d,"Understand and use question words (interrogatives) (e.g., who, what, where, when, why, how)."
CCSS.ELA-LITERACY.L.K.1.e,ELA-LITERACY,L,Language,K,Kindergarten,1e,"Use the most frequently occurring prepositions (e.g., to, from, in, out, on, off, for, of, by, with)."
CCSS.ELA-LITERACY.L.K.1.f,ELA-LITERACY,L,Language,K,Kindergarten,

Conversation

  • conversationId: 6a5872ec-5fe1-415f-b9e9-63dabe2419ef
  • endpoint: Deepseek
  • title: Translation App Project Outline
  • exportAt: 10:58:26 GMT-0600 (Mountain Daylight Time)

Options

  • presetId: null
  • model: deepseek-chat
  • resendFiles: true
@justsml
justsml / dns_global_check.sh
Last active January 27, 2025 09:07
Answer big questions, like "is my DNS fucked?"
#!/usr/bin/env bash
# Run global DNS queries for a domain, in parallel! 🦄
#
# This script is useful for testing DNS propagation and performance.
#
# Setup
# This script requires the 'dig' command to be installed.
# On macOS, you can install dig with 'brew install bind'.
# On Ubuntu/Debian, you can install dig with 'sudo apt-get install dnsutils'.
@justsml
justsml / hack-extract-slack-emoji-via-browser-script.js
Created December 18, 2024 17:55
Browser script hack to extract slack emoji via the JS console.
var emojis = {};
var $timer = setInterval(captureEmojis, 50);
function captureEmojis() {
document.querySelectorAll(".p-customize_emoji_list__image").forEach((el) => {
emojis[el.alt] = el.src;
});
}
function stopCapture() {
@justsml
justsml / SLACK-EMOJI-RAPID-UPLOAD.js
Created October 24, 2024 09:51
SLACK EMOJI BROWSER SCRIPTS
// This script makes it very fast to drag and drop files into the Slack Emoji Admin page
var isModalOpen = () => Boolean(document.querySelector('.ReactModal__Content--after-open'))
function openModal() {
var addBtn = document.querySelector('[data-qa="customize_emoji_add_button"]')
// modal closed, open it again
if (addBtn) addBtn.click()
}
var $timer = setInterval(() => {
CREATE EXTENSION postgis_tiger_geocoder CASCADE;
SET search_path TO "$user", public, tiger, tiger_data;
@justsml
justsml / 01.bash_shortcuts_v2.md
Created July 14, 2024 15:31 — forked from tuxfight3r/01.bash_shortcuts_v2.md
Bash keyboard shortcuts

Bash Shortcuts

visual cheetsheet

Moving

command description
ctrl + a Goto BEGINNING of command line

Iterables, AsyncIterables, Observables, Oh My!

I know there is a lot of confusion around Observables, Iterables, AsyncIterables and AsyncObservables. Let's try to break this down and the reasons for each.

Pull versus Push Collections

When it comes to collections, you have two ways of thinking about collections, push versus pull. With pull, the consumer is in control of when you get the items, but with push, you get the values when the producer is ready.

Pull Based Collections

export type User = ReturnType<typeof verifyUser>;
// ^ Type defined for 'free'
// + Pro: Less wasted effort aligning types AND validation.
// + Pro: More 'honest', not obscured by layers, `any` or `as`
// - Con: Easy to accidentally change a public interface.
// (Prefer explicit definitions at your library/module boundaries.)
export function verifyUser(data: { [key: string]: unknown; }) {
if (!data || typeof data !== 'object')
throw new Error(`User must be a valid object.`);