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
| Ayúdame a limpiar de publicidad el móvil Android de un familiar que tengo | |
| enchufado por USB. Es una persona mayor y le cuesta manejarse con anuncios y | |
| apps basura, así que el objetivo es dejarlo simple y sin publicidad. | |
| CONTEXTO Y HERRAMIENTAS | |
| - Estoy en Windows. adb suele NO estar en el PATH: búscalo antes de rendirte, | |
| normalmente está en C:\Users\<USUARIO>\AppData\Local\Android\Sdk\platform-tools\adb.exe | |
| Si no existe, dímelo. | |
| - Empieza con `adb devices`. Si sale vacío, ayúdame a activar la Depuración USB | |
| (Opciones de desarrollador: tocar 7 veces la versión de compilación; en Xiaomi |
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
| -Dawt.useSystemAAFontSettings=lcd | |
| -Dswing.aatext=true |
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 | |
| /* | |
| * Mysql database class - only one connection alowed | |
| */ | |
| class Database { | |
| private $_connection; | |
| private static $_instance; //The single instance | |
| private $_host = "HOSTt"; | |
| private $_username = "USERNAME"; | |
| private $_password = "PASSWORd"; |
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
| {% macro recursiveCategory(category) %} | |
| <li> | |
| <h4><a href="{{ path(category.route, category.routeParams) }}">{{ category }}</a></h4> | |
| {% if category.children|length %} | |
| <ul> | |
| {% for child in category.children %} | |
| {{ _self.recursiveCategory(child) }} | |
| {% endfor %} | |
| </ul> |
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 | |
| $secretword = "secret"; # Change this before use | |
| $matches = null; | |
| if (!empty($_REQUEST['AUTH']) && preg_match('/^(\w++):(\d++):(\w++)$/', $_REQUEST['AUTH'], $matches)) { | |
| $username = str_rot13($matches[1]); | |
| $time = (int)$matches[2]; | |
| $authhash = $matches[3]; | |
| $logged_in = md5($username . $time . $secretword) === $authhash && $time >= time() - 3000; | |
| } |
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
| /* Gmail style scrollbar */ | |
| ::-webkit-scrollbar { | |
| width: 12px | |
| } | |
| ::-webkit-scrollbar-thumb { | |
| border-width: 1px 1px 1px 2px | |
| } | |
| ::-webkit-scrollbar-track { | |
| border-width: 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
| <?php | |
| /** | |
| * Turn all URLs in clickable links. | |
| * | |
| * @param string $value | |
| * @param array $protocols http/https, ftp, mail, twitter | |
| * @param array $attributes | |
| * @return string | |
| */ | |
| public function linkify($value, $protocols = array('http', 'mail'), array $attributes = array()) |