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
| #!/usr/bin/env bash | |
| echo -e "\\e[32mWait...\\e[0m" | |
| docker network create -d bridge redis || true | |
| echo -e "\\e[32mDone! redis network created\\e[0m" | |
| echo -e "\\e[32mWait...\\e[0m" | |
| docker run -d -p 6379:6379 --name redis --restart always \ | |
| --network=redis \ |
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
| #!/usr/bin/env bash | |
| echo -e "\\e[32mWait...\\e[0m" | |
| docker run -d -p 9000:9000 --name sonarqube --restart always \ | |
| -v sonarqube_conf:/opt/sonarqube/conf \ | |
| -v sonarqube_data:/opt/sonarqube/data \ | |
| -v sonarqube_logs:/opt/sonarqube/logs \ | |
| -v sonarqube_extensions:/opt/sonarqube/extensions \ | |
| sonarqube:lts |
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
| # Provably you will need to set memory_limit=-1 | |
| # Make sure Xdebug is disabled/uninstalled | |
| # vendor/bin/phpunit symlink may file in some environments. Call the original phpunit file | |
| phpdbg -qrr vendor/phpunit/phpunit/phpunit |
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
| docker images | awk '{print $1":"$2}' | grep -v 'none' | grep -iv 'repo' | xargs -n1 docker pull |
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
| { | |
| "graph": "/full/path/docker" | |
| } |
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
| #!/usr/bin/env bash | |
| find /full/path/ -type f -exec grep -Hn "search term" {} \; |
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 | |
| /** | |
| * Original: https://github.com/morrislaptop/laravel-query-builder-dump/blob/master/src/QueryBuilderDumpServiceProvider.php | |
| */ | |
| if (app()->environment() != 'production') { | |
| \DB::listen(function ($executed) { | |
| $flat = \Arr::flatten($executed->bindings); | |
| foreach ($flat as $binding) { |
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
| chsh -s /bin/bash apache | |
| su -c "echo 'test' > /var/www/html/test.txt" - apache |
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
| // finds '' in asdf''asdf | |
| // skips '' in '', | |
| (?!\s*$)('')(?![\s*$,]) |
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
| #!/usr/bin/env bash | |
| TEST_URL=google.com | |
| TEST_IP=$(host $TEST_URL | awk '/has address/ {x = $4}END{print x}') | |
| echo -e "IP: \\e[96m$TEST_IP\\e[0m" |