Skip to content

Instantly share code, notes, and snippets.

View bpotmalnik's full-sized avatar
🦖

Bart Potmalnik bpotmalnik

🦖
View GitHub Profile
@mpociot
mpociot / ralph-test.sh
Created January 10, 2026 12:09
Ralph for tests
set -e
if [ -z "$1" ]; then
echo "Usage: $0 <iterations>"
exit 1
fi
for ((i=1; i<=$1; i++)); do
echo "Iteration $i"
result=$(claude -p "@test-coverage-progress.txt \
@marckohlbrugge
marckohlbrugge / x.sh
Created January 3, 2026 08:43
Requires jq. Simple command to work around X blocking bots. Returns LLM-friendly summary of a user account or post. Put in bin/ and optionally instruct Claude or your favorite LLM to use it when trying to fetch X links.
#!/bin/bash
# Fetch tweet or user profile in an LLM-friendly format using fxtwitter API
set -e
if [ -z "$1" ]; then
echo "Usage: x <twitter-url-or-username>"
echo "Examples:"
echo " x https://x.com/marckohlbrugge/status/2005972157445333371"
echo " x https://x.com/marckohlbrugge"
@stevebauman
stevebauman / User.php
Created May 28, 2024 17:07
Enum Based Laravel Media Collection Registration
<?php
namespace App\Models;
// ...
use App\Enums\UserMediaCollection;
class User extends Authenticatable
{
// ...