Skip to content

Instantly share code, notes, and snippets.

@squarism
squarism / iterm2.md
Last active November 16, 2025 16:30
An iTerm2 Cheatsheet

In the below keyboard shortcuts, I use the capital letters for reading clarity but this does not imply shift, if shift is needed, I will say shift. So + D does not mean hold shift. + Shift + D does of course.

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
@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 / system_replacements.md
Last active October 11, 2025 12:49
Modern system utility replacements (Go / Rust or even just something new)

Interesting and Modern CLI Tools

The absolute requirement is that these must be binaries that could go into /usr/bin one day. No python, ruby or js stuff. Not that dynamic languages are bad/evil, but I think system utilities should be binaries. I also think it's interesting that people are writing replacements in Go/Rust/Other that rethink some unix legacy. Replacement doesn't mean better in all cases. I just think it's an interesting time but also a good measure of what these compiled languages can handle/tackle/address. Will we see larger and more impressive CLIs? Or will the feature sets be about the same but the quality/stability/safety be better?

It's going to be reductive to explain some of these tools in one line.

  • exa - ls replacement
  • caddy - HTTP server (better than python -m SimpleHTTPServer)
@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 / linux_ksp.md
Last active August 15, 2025 14:57
Kerbal Space Program Linux Box

Kerbal Space Program on Linux

KSP is delaying the 64-bit windows port for a while, at least past 1.0. The 32-bit Windows KSP version is a bit cramped. You install too many mods and the game will crash. It's hard to work out the balance point. On the KSP forums and on reddit, sometime people suggest switching to Linux. Someone is having problems playing a game and someone basically suggests learning Unix. Then the thread dies.

Linux (even if you've used it for a decade) is hard. Especially getting all the things to work properly. I used three different distros until I got AMD video drivers to work correctly and even now I'm not sure. You can have an easy time installing Linux. Maybe you got lucky on your hardware. Having a bad time in Linux is crazy-pants-party-time. You have to know a lot of commands just to collect information on what is going on.

Try a sprinkle of empathy.

So I wrote down what I did since I'm wiping my Linux partition over and over again. I hope this helps someone. Maybe

@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 / 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 / .gitlab-ci.yml
Created May 30, 2023 21:37
Gitlab and Vitest Code Coverage with c8
# stages:
# - whatever
# - test
vitest:
stage: test
script:
# assuming scripts: has "test": "vitest" ...
# run your tests with coverage output
- npm test -- run --coverage
@squarism
squarism / english_is_terrible.md
Last active August 20, 2024 02:02
English is Terrible

I'm sad that the world has adopted English as the language of science and business. English is a mutt language that has never been redone, reworked or even designed. It's a combination of ice cream, meatballs and wine. All fine things by themselves but terrible when combined.

There are more English learners than there are native English speakers in the world. I'm really sorry world. I'm just so so sorry that you have to learn Germanic-French-Latin nonsense. It's terrible. It's a terrible language.

Update: I wrote this before I read Mother Tongue by Bill Bryson. It's fantastic and a better write-up of what I'm trying to say here.


Prepositional phrases