Si vous voulez faire tourner en bourrique vos collègues développeurs, voici Mimic !
Cet utilitaire est diabolique puisqu’il remplace automatiquement certains points virgules (;) présent dans du code source par un point d’interrogation grec (;). Ainsi au moment du debug, vos amis ou ennemis, vont y perdre leur grec, euuuh, leur latin !
Pour l’installer :
pip install git+git://github.com/reinderien/mimic.git
Et pour l’utiliser :
mimic –list # Show all of the homoglyphs
mimic –explain=o # What crazy things can we do with this letter?
mimic –me-harder 100 # Type some lines in and mess with every single char
mimic –reverse # Undo the mayhem. Boooring.
cat somefile | mimic # Pipe some source through at 1%# Turn up the knob and save the results
cat somefile | mimic –me-harder 25 > mimicked# Find out exactly where we broke the source
cat mimicked | mimic –check | less# Now we know the source is broken, so fix it
cat mimicked | mimic –reverse > fixedfile# This should output nothing (i.e. the files are the same)
diff fixedfile somefile
Par contre après ça, planquez-vous car vos victimes vont surement chercher à vous tuer. Notez que Mimic est aussi capable d’inverser le processus… ouf !
Puis si votre C# ne se compile plus, c’est peut-être parce que vous avez des collègues farceurs 😉