Skip to content

Instantly share code, notes, and snippets.

View markjaquith's full-sized avatar

Mark Jaquith markjaquith

View GitHub Profile
@markjaquith
markjaquith / commit.sh
Created August 1, 2022 15:48
git commit helper
#!/bin/zsh
function maybeBail() {
if [[ $? -ne 0 ]]; then
exit 1
fi
}
TYPE=$(gum choose "fix" "feat" "docs" "style" "refactor" "test" "chore" "revert")
maybeBail
@markjaquith
markjaquith / alloptions-optimizer.php
Created September 11, 2022 23:08
Proof of concept alloptions optimizer
<?php
/**
* Plugin Name: Alloptions Optimizer
* Author: Mark Jaquith
*/
class AllOptionsOptimizer {
private static $usedOptions = [];
private static $allOptions = [];
private static $allOptionsBytes;
@markjaquith
markjaquith / Laracon US 2023.md
Created July 20, 2023 21:29
Rough notes from Laracon US 2023

These notes are super rough, and I didn’t take notes for a couple sessions. Let me know if you found them useful or they helped you remember things presented at the conference! @markjaquith on Twitter.

Pest PHP

by Nuno Maduro

[!question] How do snapshots work in CI? Won’t there not be an existing snapshot when the tests run?

Cool new features

@markjaquith
markjaquith / README.md
Last active June 25, 2026 16:08
Control zoom audio/video with JXA (AppleScript in JavaScript)

Zoom JS

Control Zoom audio/video via AppleScript.

Install

Clone the repo somewhere. Assume: ~/Applications/Zoom-JS

Then run: