Skip to content

Instantly share code, notes, and snippets.

View Madh93's full-sized avatar
🏠
Working from home

Miguel Hernández Madh93

🏠
Working from home
View GitHub Profile
@Madh93
Madh93 / antigravity.sh
Last active January 8, 2026 11:42 — forked from w568w/antigravity.sh
Antigravity workaround (unit per project and run quietly)
#!/bin/bash
readonly UNIT_NAME="antigravity-$(basename "$1")-$(date +%s)"
readonly APP_BIN="/usr/bin/antigravity --verbose"
readonly TRIGGER="Lifecycle#onWillShutdown - end 'antigravityAnalytics'"
# Run the application using systemd-run in the background
systemd-run --user \
--scope \
--unit="$UNIT_NAME" \