Created
October 9, 2024 09:45
-
-
Save courville/c97928d90c04ca5f1aaa7aa189472f1d to your computer and use it in GitHub Desktop.
List flashed space invaders/flashinvaders retreiveing uid from android phone
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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