Skip to content

Instantly share code, notes, and snippets.

View mmemfox's full-sized avatar

mmemfox

  • Vilnius, Lithuania
View GitHub Profile
@mmemfox
mmemfox / activator.sh
Created May 18, 2025 19:11
Mandarin activator
find . -type f -name "*.php" -exec sed -i -E '/function\s+theme_is_activated\s*\(\s*\)\s*\{/,/^\s*}/ { /^\s*return\s+[^;]+;/ s//return true;/ }' {} \;
@mmemfox
mmemfox / wp-run.sh
Last active May 25, 2025 13:59
WordPress dev env with podman
#!/usr/bin/env bash
set -eu -o pipefail
RESET='\033[0m'
BOLD='\033[1m'
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[0;33m'
CYAN='\033[0;36m'