Skip to content

Instantly share code, notes, and snippets.

View raduchiriac's full-sized avatar

Radu Chiriac raduchiriac

  • Bruxelles, Belgium
View GitHub Profile
@courville
courville / get_flashed_invaders.sh
Created October 9, 2024 09:45
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'