Kill MacOS Processes by Name

I have a cron job that opens a program every day at a certain time. How can I also close it with a cron job? ...

March 17, 2025 · 1 min · Jake Worth

Understanding Scrollbar Visibility

When doing web programming in a context where scroll might be expected, you may see some surprising behavior in the scrollable HTML– an inexplicable gray bar on the bottom or right of the element: One culprit, on Mac, is the user’s scrollbar setting. As a UX and accessibility aid, Mac allows users to always show scrollbars when they are available. Considering this feature as a programmer, you can make sure you only offer scrolling when it makes sense, and educate users who don’t know they have this setting enabled. ...

April 11, 2024 · 1 min · Jake Worth

XCode Run Hotkey

⌘ + R.

January 30, 2024 · 1 min · Jake Worth

Zoom and Scroll in Figma

When viewing a Figma design file, you can zoom in/out with CMD and up/down on a trackpad or magic mouse. Scroll left or right with one-finger swipe left or right. Zoom and scroll; along with adding comments and copying CSS, that’s most of what I do in Figma. I’m sure that these commands are useful in many other settings, but I find them especially valuable in a Figma file, which can feel otherwise challenging for me to navigate.

December 20, 2022 · 1 min · Jake Worth

Pipe to pbcopy

Adding | pbcopy to the end of any command will send the standard output to your clipboard. ls -al | pbcopy inside a rails project directory allowed me to paste this: Gemfile Gemfile.lock README.md Rakefile app bin config config.ru db features lib log public script spec test tmp vendor

August 26, 2018 · 1 min · Jake Worth