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 | |
| /* | |
| Converte caracteres especiais em caracteres simples(ASCII). | |
| Exemplos: ç > c, á > a, Á > A, etc... | |
| */ | |
| function utf8_translit($string) { | |
| $characters = array( | |
| " " /* 00a0 'NO-BREAK SPACE' */ => " ", | |
| "¡" /* 00a1 'INVERTED EXCLAMATION MARK' */ => "!", | |
| "¢" /* 00a2 'CENT SIGN' */ => "c", |
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 | |
| /* | |
| * Date: 17/03/2014 | |
| * Author : RobertoPC | |
| * Author URI : http://www.robertopc.com.br | |
| * Gist URI : https://gist.github.com/robertopc/43bcf4d28a32bc95956f | |
| * Description: Functions to debug code in PHP | |
| * Functions : print_r_pre, var_dump_pre, print_r_console, var_dump_console | |
| * Version : 1.0 | |
| * License : MIT |
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
| # Permissão 644 em lote para arquivos | |
| find DIRETORIO -type f -exec chmod 644 {} \; | |
| # Permissão 755 em lote para pastas | |
| find DIRETORIO -type d -exec chmod 755 {} \; | |
| # Recupera pasta encriptada | |
| sudo ecryptfs-recover-private | |
| # Adicionar usuário ao grupo |
NewerOlder