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
| /* | |
| Usage | |
| ----- | |
| var Cache = new Storage("local"); // or "session" | |
| Cache.set("key", "value"); | |
| Cache.get("key"); // "value" |
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
| /* | |
| Usage | |
| ----- | |
| var Parent = Class.extend( | |
| { | |
| id: null, | |
| _constructor: function(id) { | |
| this.id = id; |
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
| /* | |
| Usage | |
| ----- | |
| var Parent = new Class({ | |
| id: null, | |
| _constructor(id) { | |
| this.id = id; | |
| }, |
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 | |
| function print_dump($expression, $return = false) | |
| { | |
| $objects = array(); | |
| $getObjectId = function($obj) { | |
| $html_errors = ini_get('html_errors'); | |
| ini_set('html_errors', false); |
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 | |
| /** | |
| * Tente de rediriger le domaine demandé vers un autre indiqué dans les enregistrements TXT. | |
| * | |
| * 0 => affichage dans une iframe | |
| * 1 => redirection visible | |
| * | |
| * Example : | |
| * be-angels.com. 1800 IN TXT "0|be-angels.fr" | |
| * be-angels.com. 1800 IN TXT "1|be-angels.fr" |
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
| # Release (Testing / Jessie) | |
| # -------------------------- | |
| # Main / Security | |
| Package: * | |
| Pin: release o=Debian,n=jessie | |
| Pin-Priority: 700 | |
| # Multimedia | |
| Package: * |
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
| -- | |
| -- from `utf8_general_ci` to `utf8_unicode_ci` | |
| -- | |
| -- Génère la requêtes de convertion de la DB `{DB_NAME}` | |
| SELECT CONCAT('ALTER DATABASE `', schema_name, '` DEFAULT COLLATE utf8_unicode_ci;') | |
| FROM information_schema.schemata |
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
| #!/bin/bash | |
| # | |
| # Exécute diverses tâches `PHP` en boucle | |
| # | |
| # Liste des tâches à exécuter en boucle | |
| TASKS=( | |
| "script-1.php" |
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 | |
| // .Htacesss | |
| // --------- | |
| /* | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine on |
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
| RewriteEngine On | |
| #RewriteBase / | |
| # On autorise l'accès à notre adresse IP | |
| #RewriteCond %{REMOTE_HOST} !^123\.123\.123\.123 | |
| # On évite de boucler | |
| RewriteCond %{REQUEST_URI} !^/503\.php | |
| RewriteRule .* 503.php [L] |