This file contains 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
| Region Code | Region Name | | |
| -------------- | ------------------------- | | |
| us-east-1 | US East (N. Virginia) | | |
| us-west-2 | US West (Oregon) | | |
| us-west-1 | US West (N. California) | | |
| eu-west-1 | EU (Ireland) | | |
| eu-central-1 | EU (Frankfurt) | | |
| ap-southeast-1 | Asia Pacific (Singapore) | | |
| ap-northeast-1 | Asia Pacific (Tokyo) | | |
| ap-southeast-2 | Asia Pacific (Sydney) | |
This file contains 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
| Key | Purpose | | |
| ----------------- | ---------------------------- | | |
| ctrl+alt+t | open new terminal window | | |
| ctrl+b % | split vertical | | |
| ctrl+b " | split horizontal | | |
| ctrl+b arrow keys | select split | | |
| ctrl+b x | close tab | | |
| ctrl+b c | open new tab | | |
| ctrl+b n | jump to next tab | | |
| ctrl+b p | jump to previous tab | |
This file contains 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
<leader> is ',' | |
| Key (normal mode) | Purpose | | |
| ----------------- | ----------------------------------------- | | |
| ctrl+n | open file explorer | | |
| ctrl+w (twice) | jump to next split | | |
| ctrl+p | open file finder | | |
| / | enter search; turn off by <leader><space> | | |
| :qa | close all | | |
| :u | undo last step | |
This file contains 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
| Key | Purpose | | |
| ---------------------- | ------------------------------------- | | |
| alt+enter | solve problem / context-aware editing | | |
| ctrl+shift+a | find actions | | |
| ctrl+b | jump to definition | | |
| ctrl+g | jump to line | | |
| ctrl+alt+left OR right | navigate | | |
| ctrl+shift+v | open clipboard | | |
| ctrl+w | smart selection | | |
| ctrl+shit+w | smart deselection | |
This file contains 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
https://github.com/github/hub | |
http://nuclearsquid.com/writings/git-tricks-tips-workflows/ | |
# create repo from working dir | |
git init | |
git create `basename "$PWD"` -d "any descr" # use -p for private repo | |
git add --all && git commit -m "inital commit" && git push origin master | |
# update | |
git fetch # update target branches from remote excepts the current branch |
This file contains 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
.DS_Store | |
Desktop.ini | |
.idea | |
*~ | |
*.swp | |
._* | |
*.pyc | |
Thumbs.db | |
.Spotlight-V100 | |
.Trashes |
This file contains 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
git branch -m old_branch new_branch # Rename branch locally | |
git push origin :old_branch # Delete the old branch | |
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
This file contains 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 | |
escapeshellcmd(); | |
escapeshellarg(); |
This file contains 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 | |
$token = md5( | |
microtime() . | |
rand() . | |
serialize(shuffle($GLOBALS)) | |
); |
This file contains 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
# SQL-Injections | |
.*mysql_query\(.*\s*\$_(GET|POST|REQUEST|COOKIE)).* | |
# reflective xss | |
(echo|print).*\$_(GET|POST|COOKIE|REQUEST) |
NewerOlder