Skip to content

Instantly share code, notes, and snippets.

@onel0p3z
Last active November 21, 2025 03:36
Show Gist options
  • Select an option

  • Save onel0p3z/ea134214d3deba44cf4c0de40dd82b3a to your computer and use it in GitHub Desktop.

Select an option

Save onel0p3z/ea134214d3deba44cf4c0de40dd82b3a to your computer and use it in GitHub Desktop.
This script automates checking if you have been taken off the Gemini 3 waitlist.

This script automates checking if you have been taken off the Gemini 3 waitlist.

It attempts to use the gemini-3-pro-preview model and reacts based on the result:

  • If it fails (404 Error): It prints "Still waitlisted" to the terminal.
  • If it succeeds (No 404): It triggers a desktop notification to alert you immediately.

Make it executable

  • chmod +x ~/check_gemini_access.sh

run it!

  • ~/check_gemini_access.sh

If you want to add this to a cronjob, you might need to add

# Required for notifications to work via Cron
export DISPLAY=:0
export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/$(id -u)/bus"
#!/bin/bash
# --- CONFIGURATION ---
MODEL="gemini-3-pro-preview"
# Required for notifications to work via Cron
export DISPLAY=:0
export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/$(id -u)/bus"
# 1. Run the command silently and capture the output
# We merge standard error (2) into standard output (1) to catch the 404 message.
OUTPUT=$(gemini -p "hi" -m "$MODEL" 2>&1)
# 2. The Logic Check
# We check if the output contains the "404" error string.
if [[ "$OUTPUT" == *"404"* ]]; then
# CASE A: You are still waitlisted.
# We print this to the terminal so you see it when running manually.
echo "❌ Status: Still waitlisted (404 Not Found detected)."
exit 0
else
# CASE B: The 404 is gone! (Success or a new error)
echo "✅ Status: ACCESS DETECTED! Check your terminal."
# Send the Desktop Notification
notify-send -u critical "Gemini 3 Access" "The 404 error is gone! You likely have access."
exit 0
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment