Skip to content

Instantly share code, notes, and snippets.

@courville
Created October 9, 2024 09:45
Show Gist options
  • Save courville/c97928d90c04ca5f1aaa7aa189472f1d to your computer and use it in GitHub Desktop.
Save courville/c97928d90c04ca5f1aaa7aa189472f1d to your computer and use it in GitHub Desktop.
List flashed space invaders/flashinvaders retreiveing uid from android phone
#!/bin/bash
# open your flashinvader android application on your phone to retreive your uid
uid=$(adb logcat -d | grep 'api.space-invaders' | sed -n 's/.*uid=\([^ ]*\).*/\1/p' | head -n 1)
# display a flat array of flashed invaders
curl -s https://api.space-invaders.com/flashinvaders_v3_pas_trop_predictif/api/gallery?uid=$uid | jq -c '[.invaders | to_entries | map(.value.name)] | flatten'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment