markmcdermott.io (js, ruby, ...etc) by mark mcdermott

09/16/2025

Switch npm to yarn

Quick & easy

08/31/2025

Rails Console Delete Multiple

One-liner

08/14/2025

Blank String Regex Match Anything

Don't use empty string fallbacks for regex

07/27/2025

gh auth login

Three ways to auth

07/13/2025

Playwright CLI Grep Option

grep & grep-invert

07/02/2025

Deleting Git Branches

Both locally & remote

06/15/2025

Viewing Git Changes

Both Filenames & Diffs

05/21/2025

Where's Your Head At?

Number of Commits Ahead/Behind

05/12/2025

Git Rollback Roundup

Getting Dangerous With Git

04/28/2025

Context7 Keeps LLMs Current

Copy/Paste Entire Docs

04/16/2025

Keep VSCode from Tweaking Code

Using .vscode/settings.json

03/31/2025

How to Build an Astro Blog by Hand

DIY Astro fun

03/16/2025

Astro Learnings

Various Astro how-tos

03/02/2025

Adding S3 to Barebones Tutorial

Adding S3 to the Barebones Rails/RSpec/Nuxt/Vitest/Playwright/Fly.io Tutorial

02/20/2025

JavaScript Map

A quick look at JavaScript's Map object

01/29/2025

Barebones Rails/RSpec/Nuxt/Vitest/Playwright/Fly.io Tutorial

A tutorial for setting up a Rails/RSpec/Nuxt/Vitest/Playwright/Fly.io app

01/05/2025

Docker Shell and Copy

Docker shell and copy commands

12/21/2024

VS Code Shortcuts

VS Code Shortcuts I Use All The Time

12/01/2024

This Blog's Stack

Astro, Tailwind & GitHub Pages

11/13/2024

Git: Undo Last Commit

git reset HEAD~

10/27/2024

TIL - JavaScript Double Ternary

i.e., JavaScript The Bad Parts

10/09/2024

TIL - Disabling Foreign Key Checks in MySQL

Disabling foreign key checks in MySQL

09/20/2024

TIL - lsof & kill to Clear a Port

Using lsof & kill to clear a port

09/06/2024

Running a Frontend and Backend with Concurrently

Running A frontend and backend with Concurrently

08/14/2024

ESLint Auto Fix on Save

ESLint Auto-Fix On Save

07/31/2024

AWS S3

How to setup AWS S3

05/01/2024

TIL - Underscores as Separators

Underscores in numbers in JavaScript & Ruby

04/14/2024

Vue Currency Component

A component for entering dollar and cents values

03/26/2024

JavaScript Check If All/Some Array Elements Are True

Using every() and some()

03/14/2024

Quick Git Notes

Amending, Squashing & Diffing Cheatsheet