Skip to content

Instantly share code, notes, and snippets.

@nom3ad
Forked from w568w/antigravity.sh
Created February 4, 2026 09:33
Show Gist options
  • Select an option

  • Save nom3ad/4a7d7ffc133e1f67de7adcf4670e9550 to your computer and use it in GitHub Desktop.

Select an option

Save nom3ad/4a7d7ffc133e1f67de7adcf4670e9550 to your computer and use it in GitHub Desktop.
Antigravity workaround
#!/bin/bash
readonly UNIT_NAME="antigravity-$(date +%s)"
readonly APP_BIN="/usr/bin/antigravity --verbose"
readonly TRIGGER="Lifecycle#onWillShutdown - end 'antigravityAnalytics'"
echo "[*] Start as: $UNIT_NAME"
systemd-run --user \
--scope \
--unit="$UNIT_NAME" \
--property=KillMode=control-group \
/bin/bash -c "exec prlimit --core=0 $APP_BIN 2>&1 | systemd-cat --identifier=$UNIT_NAME" &
journalctl --user --identifier="$UNIT_NAME" --follow | \
grep --line-buffered --max-count=1 "$TRIGGER" && \
systemctl --user kill --signal=SIGKILL "$UNIT_NAME.scope"
echo "[*] Remaining processes are killed."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment