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
| find . -type f -size +512M -exec ls -lh {} \; |
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
| echo "FRASE" | tr 'A-Z' 'a-z' |
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
| sudo du -hsx * | sort -rh | head -10 |
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
| #bloqueia o acesso ao git | |
| RedirectMatch 404 /\\.git(/|$) | |
| #bloqueia o acesso em arquivos e pastas ocultas | |
| RedirectMatch 404 (?i)/\..+ | |
| #bloqueia o acesso ao node_modules e vendor | |
| RedirectMatch 403 (?i)/View/node_modules | |
| RedirectMatch 403 (?i)/vendor |
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
| mysqldump database_name_1 \ | |
| --host=address_1 \ | |
| --port=3306 \ | |
| --user=username_1 \ | |
| --password=password_1 \ | |
| --single-transaction \ | |
| --compress \ | |
| --no-create-db \ | |
| --skip-add-locks \ | |
| --skip-comments | mysql \ |
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
| GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '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
| <VirtualHost *:80> | |
| ServerName domain1.com | |
| ErrorLog /var/log/apache2/error.log | |
| CustomLog /var/log/apache2/access.log combined | |
| RedirectMatch ^/(.*)$ https://domain2.com/$1 | |
| </VirtualHost> |
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 | |
| // Variáveis de configuração | |
| $width = 600; | |
| $height = 180; | |
| $fontsize = 17; | |
| $angle = 0; | |
| $font = './arial.ttf'; | |
| // Cria a imagem |
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 | |
| $url = 'http://server.com/path'; | |
| $data = array('key1' => 'value1', 'key2' => 'value2'); | |
| // use key 'http' even if you send the request to https://... | |
| $options = array( | |
| 'http' => array( | |
| 'header' => "Content-type: application/x-www-form-urlencoded\r\n", | |
| 'method' => 'POST', | |
| 'content' => http_build_query($data), |
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
| alias cmt='git add .; git commit -am' | |
| alias cmtf='cmt "First commit"' | |
| alias push='git push' | |
| alias pull='git pull' | |
| alias psh='git push origin' | |
| alias pll='git pull origin' | |
| alias ckout='git checkout' | |
| alias st='git status' | |
| alias mmd='git checkout master && git merge dev' | |
| alias lg='git log' |