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
| import android.accessibilityservice.AccessibilityService; | |
| import android.accessibilityservice.AccessibilityServiceInfo; | |
| import android.util.Log; | |
| import android.view.accessibility.AccessibilityEvent; | |
| public class RecorderService extends AccessibilityService { | |
| static final String TAG = "RecorderService"; | |
| private String getEventType(AccessibilityEvent event) { |
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 -h HOST_HERE -u USER_HERE -p'PASS_HERE' DATABASE_NAME_HERE | mysql -h ANOTHER_HOST_HERE \ | |
| -u ANOTHER_USER_HERE -p'ANOTHER_PASS_HERE' ANOTHER_DATABASE_NAME_HERE |
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 netstat -tlpn | grep 8080 |
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' |
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
| <?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
| <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
| 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
| 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
| #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 |