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
| # I really don't like getting routing error notifications when scanners try to | |
| # find vulnerabilities in our application. As such, this extends our routing | |
| # to actually give a response, but it's likely not what they were looking for. | |
| # If they're not using a headless browser, the `alert` is going to kill their | |
| # productivity. If they are, they just might enjoy the youtube video anyway. | |
| class AnnoyScannersServer | |
| SCANNER_PATHS = %w[ | |
| /a2billing/admin/Public/index.php | |
| /a2billing/common/javascript/misc.js | |
| /a2billing/customer/templates/default/css/popup.css |
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 to edit commit messages without using rebase interactive | |
| # example: git reword commithash message | |
| reword = "!f() {\n GIT_SEQUENCE_EDITOR=\"sed -i 1s/^pick/reword/\" GIT_EDITOR=\"printf \\\"%s\\n\\\" \\\"$2\\\" >\" git rebase -i \"$1^\";\n git push -f;\n}; f" | |
| # completely wipe git history | |
| wipe-history = "!f() { git add . && git reset --soft $(git rev-list --max-parents=0 HEAD) && git commit --amend -m \"${1:-sup}\" && git push --force; }; f" | |
| # squash the last N commits | |
| squash = "!f(){ git reset --soft HEAD~${1} && git commit --edit -m\"$(git log --format=%B --reverse HEAD..HEAD@{1})\"; };f" |