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
| const val DEFAULT_AWS_CONTENT_TYPE = "application/json" | |
| @FeignClient | |
| interface AwsFeignClient { | |
| @PostMapping(path = ["/"]) | |
| fun actionCreateTaskStep( | |
| @RequestHeader(HttpHeaders.ACCEPT) | |
| acceptedContentType: String = DEFAULT_AWS_CONTENT_TYPE, | |
| @RequestBody | |
| request: ActionRequest, |
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
| #!/bin/bash | |
| need_cmd() { | |
| if ! check_cmd "$1" | |
| then err "[command not found '$1' - please install this command]" | |
| fi | |
| } | |
| check_cmd() { | |
| command -v "$1" > /dev/null 2>&1 |
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
| RewriteEngine On | |
| # We detect the duplicate bars and save the url to eliminate | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteCond %{ENV:FixDoubleSlashes} !=1 | |
| RewriteCond %{THE_REQUEST} ^(?:GET|HEAD|POST)\s(.*?//+.*)\s | |
| RewriteRule . - [E=FixDoubleSlashes:1,E=RewriteUrl:%1,N] | |
| # We eliminate the double bars recursively | |
| RewriteCond %{ENV:FixDoubleSlashes} =1 |
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
| #!/bin/bash | |
| iwatch -v -c 'apache2ctl restart' redirect.conf |
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
| ssh -R 9000:localhost:9000 sshuser@ssh.host.org |
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
| #!/bin/bash | |
| docker rm -vf $(docker ps -a -q) |
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
| #!/bin/bash | |
| sudo kill -9 `ps ax|grep 'coreaudio[a-z]' | awk '{print $1}'` |
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
| #!/bin/bash | |
| ORIGIN=$1 | |
| FINAL=`curl "$ORIGIN" -sLIk -o /dev/null -w '%{url_effective}'` | |
| EXPECTED=$2 | |
| if [ "$FINAL" == "$EXPECTED" ] | |
| then | |
| echo "Ok" | |
| exit 0 | |
| fi |
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
| #!/bin/bash | |
| curl -kILSs "$1" | grep "[Ll]ocation\|HTTP" |