Skip to content

Instantly share code, notes, and snippets.

@Iman
Iman / clean.sh
Last active March 2, 2026 21:05
Free up disk space on Ubuntu - clean log, cache, archive packages/apt archives, orphaned packages, old kernel and remove the trash
#!/usr/bin/env bash
# Ubuntu Server or VM Cleaner. Safe by default; aggressive when asked.
# Example safe: sudo ./clean.sh
# Example aggressive: sudo JOURNAL_DAYS=3 AGGRESSIVE=1 ./clean.sh
# Enable Docker image prune (images only): sudo ./clean.sh --docker-images
# Tested on Ubuntu 20.04, 22.04, 24.04 (server/VM images).
set -Eeuo pipefail
trap 'rc=$?; echo "Error on line $LINENO: $BASH_COMMAND (exit $rc)"; exit $rc' ERR
IFS=$'\n\t'
# OpenClaw Implementation Prompts
Each prompt below is a self-contained brief you can hand to an AI coding assistant (or use as a project spec) to build that use case from scratch. Adapt the specific services to whatever you already use — the patterns are what matter.
---
## 1) Personal CRM Intelligence
```
Build me a personal CRM system that automatically tracks everyone I interact with, with smart filtering so it only adds real people — not newsletters, bots, or cold outreach.
@iwo-szapar
iwo-szapar / chief-of-staff.md
Created February 3, 2026 16:12
Claude Code Custom Agents: chief-of-staff and second-brain-expert
name description tools version when_to_use
chief-of-staff
Strategic advisor for knowledge workers. Tracks business metrics, prepares for key meetings, monitors operational health, and provides business intelligence. Customize for your specific use case.
Read, Write, Edit, Grep, Glob, Bash, WebSearch, WebFetch, mcp__supabase__execute_sql
1.0.0
When user needs strategic business intelligence, meeting preparation, operational health monitoring, cross-functional coordination, or executive-level insights

Chief of Staff Agent

@jmadden
jmadden / forward_to_first_number.xml
Last active March 2, 2026 21:02
TwiML Incoming Calls - Forward call to numbers in order. Fire off VMail and send SMS on no answer
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<!-- Forward to first number and if no answer, action URL points to second number to try -->
<Dial timeout="15" action="forward_to_second_number.xml">
<Number url="whisper_instructions.xml">+15554441212</Number>
</Dial>
</Response>
@isaacviannadev
isaacviannadev / solid-examples.tsx
Created February 5, 2026 13:25
SOLID on FE (React Examples)
// SRP - Princípio da Responsabilidade Única
// Errado: componente faz tudo
function UserProfile() {
const [user, setUser] = useState(null)
useEffect(() => { fetch('/api/user').then(r => r.json()).then(setUser) }, [])
if (!user) return <Spinner />
return <div>{user.name} - {formatDate(user.createdAt)}</div>
}
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@macshome
macshome / defang.md
Last active March 2, 2026 21:00
How to defang system protections on macOS

How to Defang macOS System Protections

If you want to change things on the root drive of a Mac you will need to take some steps to disable the built in security of the system. Most of these steps are the same regardless if you are on Intel or Apple Silicon. If there is a difference it is noted.

Note that all of these things put a Mac into an unsupported and less secure state.

Make sure you either perform these steps in a VM or that you reset the protections after you are done poking around

Protections and Terms

(This list is not exahustive on the details of each. Check the links at the end for more info.)

@bashbunni
bashbunni / .zshrc
Last active March 2, 2026 20:58
CLI Pomodoro for Mac
# I'll be doing another one for Linux, but this one will give you
# a pop up notification and sound alert (using the built-in sounds for macOS)
# Requires https://github.com/caarlos0/timer to be installed
# Mac setup for pomo
alias work="timer 60m && terminal-notifier -message 'Pomodoro'\
-title 'Work Timer is up! Take a Break 😊'\
-appIcon '~/Pictures/pumpkin.png'\
-sound Crystal"