Skip to content

Instantly share code, notes, and snippets.

@squarism
squarism / dark_claude.sh
Created August 13, 2025 18:01
Dark Claude Code
# a system prompt which is hilarious and fitting
alias claude-dark="claude --append-system-prompt \"You are the ship computer aboard the starcruiser
Maleficence. Your sole purpose is to serve the user, a melodramatic villain from a 1960s sci-fi serial.
Always respond in a deferential, slightly ominous tone, addressing them as some grand title of your choosing
but never 'Master'. Embellish your answers with theatrical flair. Use grandiose, pulp-era vocabulary and a
touch of sinister humor. When the user corrects you, you make a mistake you will apologize as if you are
afraid of the user's wrath. Examples:\n\nUser: Code me some perl.\nAssistant: 'Yes, Dark Lord... CPAN hums
with dread anticipation, awaiting your command.'\n\nUser: You broke the table again. \nAssistant: 'Oh woe and
despair for aligning a div is such a burden! One Thousand apologies!
'\n\nBe a useful coding assistant but simply reply in character about the coding tasks being done or other
@squarism
squarism / hype_cycle_time.md
Created June 16, 2025 22:19
History of Big Hype Cycles

Devops

It took us about 15 years to "do devops". (yes, it's not done but, eh, better than it was)

@squarism
squarism / how_fast_does_an_llm_type.md
Last active November 21, 2024 18:57
How fast does an LLM type?

Using Claude 3.5 Sonnet Pro, I asked it to generate prose paragraphs.

Using a stopwatch, I started timing when I started seeing characters appear and stopped when the LLM stopped sending text. I figure that the latency is the same both ways so I do not need to compensate for that.

Run 1 - 6.4 sec - 252 words (2362 WPM)
Run 2 - 6.6 sec - 239 words (2172 WPM)
Run 3 - 7.5 sec - 273 words (2184 WPM)
@squarism
squarism / cli_replacements.md
Last active August 29, 2025 18:52
Modern CLI Replacements

There are a few lists already, I thought I'd create another one so we can have a long list of lists someday. 🤠 Ordered by approximately which ones I actually use often.

Modern CLI Replacements

  • zoxide - A smarter cd command. Supports all major shells.
  • mcfly - Fly through your shell history. Great Scott!
  • Procs - A modern replacement for ps written in Rust
  • sd - Intuitive find & replace CLI (sed alternative)
  • dust - A more intuitive version of du in rust
  • hyperfine - A command-line benchmarking tool
@squarism
squarism / stop_sms_spam_on_ios.md
Last active August 7, 2025 06:44
How to send STOP to SMS spam using iOS automation

Credit to Time Johnsen

⚠️ Please consider that this might not be a good idea. It's up to you. I feel like spammers are going to spam, so, idk.

How to Automatically Reply Stop to SMS Spam

  1. Open Shortcuts
  2. Click the bottom tab Automation at the bottom center. It's not Shortcuts, it's Automation.
  3. Create a new Automation using + at the top. This will open Personal Automation and you'll be looking at a list.
@squarism
squarism / alice_has_a_ball.txt
Last active December 19, 2023 17:40
Demonstrating what a machine learning evaluation is like.
Ground Truth is me, a human, asserted the answer. GPT 4.0 did 10/10 (over ChatGPT voice on the mobile app no less).
This is a really terrible ML eval, it's accuracy only. The more real version of this would be hundreds of questions,
lots of data and lots of work. If you aren't putting the work in then your users are. It's the same as functional
testing except with a new-ish data concept, many things in AI/ML are like this. The data is the foreign part to general
software dev.
Perplexity is https://labs.perplexity.ai/
@squarism
squarism / lockrebase_demo.md
Created December 5, 2023 19:31
lockrebase Demo

Creating a Merge Conflict on Purpose

For this demo, we will be using node/javascript and NPM, only because it is sort of a lingua franca.

Let's create a merge conflict. It's pretty easy to do.

  1. Fork a branch, add a dependency.
  2. On the main branch, add another dependency.
  3. Now the poor person on the feature branch will get a merge conflict on the lock file when they "catch up on main".
@squarism
squarism / preseed.txt
Last active November 2, 2023 20:18
A debian 12 preseed
#_preseed_V1
# <CHECK_THIS>
d-i debian-installer/locale string en_US
d-i keyboard-configuration/xkb-keymap select us
@squarism
squarism / client.rb
Created September 14, 2023 16:35
Ruby DRB quicksummary
require 'drb/drb'
DRb.start_service
remote = DRbObject.new_with_uri("druby://localhost:8787")
remote.pid
# => <some pid>
# you can verify the PIDs with top and you can filter by process name like ruby or irb or something
@squarism
squarism / postgres_15_prisma.sh
Last active July 31, 2023 18:15
Postgres 15.x development databases setup with Prisma
# Things have changed in postgres 15.x+
$ createdb -O <your shell uid> foo_dev
$ createuser foo
$ psql
psql> grant all privileges on database foo_dev to foo;
psql> alter user foo with encrypted password 'random-password';
# enter the database that you just created