This file contains hidden or 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
| <?php | |
| // Charge le fichier wp-load.php pour accéder aux fonctions WordPress. | |
| require_once('./wp-load.php'); | |
| // Vérifiez que le script est exécuté en toute sécurité (ajoutez une sécurité supplémentaire si nécessaire). | |
| if (php_sapi_name() !== 'cli') { | |
| die("Ce script doit être exécuté depuis la ligne de commande ou sécurisé."); | |
| } | |
| // Remplacez 'username' par le nom d'utilisateur et 'newpassword' par le nouveau mot de passe. |
This file contains hidden or 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
| pip freeze | % {pip uninstall -y $_.split('==')[0]} |
This file contains hidden or 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
| python -c "lines = open('_top_level_domains.txt').readlines(); lines.sort(key=len); open('output.txt', 'w').writelines(lines)" |
This file contains hidden or 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
| ini_set('display_errors', 1); | |
| ini_set('display_startup_errors', 1); | |
| error_reporting(E_ALL); |
This file contains hidden or 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
| f = open("text.txt", "r") | |
| s = f.read() | |
| s = s.split("\n") | |
| s.reverse() | |
| s = "\n".join(s) | |
| f.close() | |
| f = open("reverse_text.txt", "w") | |
| f.write(s) | |
| f.close() |