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
#!/usr/bin/env bash
# Enhanced Shell Aliases Configuration
# =====================================
# ============================================================================
# NETWORK & PORTS
# ============================================================================
# Port monitoring with improved formatting
alias ports-all='lsof -Pn -i4 -i6' # Include IPv6
@justsml
justsml / .env.load.sh
Created May 7, 2025 23:43
✨ 1Password secret loader script
#!/bin/bash
set -eo pipefail
# check for `op`
if ! command -v op &> /dev/null; then
printf "\nError: op could not be found\n\n" >&2
printf "Please install 1Password CLI: https://developer.1password.com/docs/cli/get-started\n\n" >&2
printf "MacOS+brew: brew install 1password-cli\n\n" >&2
exit 1
fi
{
"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