Plop your flip flop back in place. Grab a strong stick and a few inches of string (or vine/thick weed if you're in the woods) and place on your shoe as pictured.
Securely tie the string around the stem, making sure the stick is on there tight.
Depending on your level of hardcore, cut or bite off excess string.
Pull the stem of your flip flop upwards to secure it back in place tightly.
Bam! Look at that fine stick letting your flip flop see another day. You should probably start looking for your next pair though.