Skip to content

Instantly share code, notes, and snippets.

@martinvirtel
martinvirtel / backup-cronjob.sh
Last active February 27, 2026 02:27
Backup with S3 and WP All In One Migration Plugini
#!/bin/bash
#
# needs working aws cli
# needs working credentials for wordpress-backup profile to access $BACKUP_DST in ~/.aws/credentials
# needs this plugin: https://wordpress.org/plugins/all-in-one-wp-migration/
export KEEP_FOR_DAYS=+10
export WORDPRESS_NAME="dev.versicherungsmonitor.de"
export BACKUP_DST=s3://bucketname/wordpress_backups/$WORDPRESS_NAME/
@mberman84
mberman84 / all_files.md
Created February 24, 2026 21:09
Matt's Markdown Files

OpenClaw: System Prompt File Templates

Generalized versions of all root .md files used by OpenClaw. These files are loaded into the agent's system prompt on every request (except MEMORY.md which is conditional).

Copy these as starting points and customize for your own setup. Replace <placeholders> with your values.


AGENTS.md

@CodeLeom
CodeLeom / AGENT.๐—บ๐—ฑ
Last active February 27, 2026 02:27
Best practices and workflows to use with an AI agent on any project
## Workflow Orchestration
### 1. Plan Mode Default
- Enter plan mode for ANY non-trivial task (3+ steps or architectural decisions)
- If something goes sideways, STOP and re-plan immediately
- Don't keep pushing.
- Use plan mode for verification steps, not just building
- Write detailed specs upfront to reduce ambiguity
### 2. Subagent Strategy
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active February 27, 2026 02:25
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This does not works in browser for quests which require you to play a game! Use the desktop app to complete those.

How to use this script:

  1. Accept a quest under the Quests tab
  2. Press Ctrl+Shift+I to open DevTools
  3. Go to the Console tab
  4. Paste the following code and hit enter:
---
name: plan-exit-review
version: 2.0.0
description: |
Review a plan thoroughly before implementation. Challenges scope, reviews
architecture/code quality/tests/performance, and walks through issues
interactively with opinionated recommendations.
allowed-tools:
- Read
- Grep
@karpathy
karpathy / microgpt.py
Last active February 27, 2026 02:24
microgpt
"""
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
@timotgl
timotgl / uninstall-razer-synapse.sh
Last active February 27, 2026 02:24
How to fully uninstall Razer Synapse 2 on OS X (10.11-10.13) (El Capitan, Sierra, High Sierra) without using Razer's official uninstall tool
# How to uninstall Razer Synapse 2 ( https://www.razerzone.com/synapse-2 )
# on OS X (10.11-10.13) (El Capitan, Sierra, High Sierra)
# without using Razer's official uninstall tool.
# Tested on OS X 10.11.5 in July 2016.
# Edited with additional steps for later OS X versions,
# contributed by commenters on this gist.
# Step 1: In your terminal: stop and remove launch agents
launchctl remove com.razer.rzupdater
@emschwartz
emschwartz / README.md
Last active February 27, 2026 02:21
The Most Popular Blogs of Hacker News in 2025

This is an OPML version of the HN Popularity Contest results for 2025, for importing into RSS feed readers.

Plug: if you want to find content related to your interests from thousands of obscure blogs and noisy sources like HN Newest, check out Scour. It's a free, personalized content feed I work on where you define your interests in your own words and it ranks content based on how closely related it is to those topics.