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
| "ansible_distribution": "Parrot GNU/Linux", | |
| "ansible_distribution_file_parsed": true, | |
| "ansible_distribution_file_path": "/etc/os-release", | |
| "ansible_distribution_file_variety": "NA", | |
| "ansible_distribution_major_version": "3", | |
| "ansible_distribution_release": "stable", | |
| "ansible_distribution_version": "3.11", |
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
| worker_processes 1; | |
| daemon off; | |
| error_log /dev/stdout info; | |
| pid /usr/local/var/nginx/nginx.pid; | |
| events { | |
| worker_connections 1024; | |
| } |
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
| 024010020180215193500 | |
| 02=960x720 | |
| 40=40 per second | |
| 10=10min | |
| 0=PAL | |
| 2018=yyyy | |
| 02=mm | |
| 15=dd | |
| 19=hh | |
| 35=mm |
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/sh | |
| # | |
| # Copy this script to .git/hooks/pre-commit | |
| # | |
| python update-authors.py > AUTHORS | |
| git add AUTHORS |
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
| Notes about kubernetes/minikube |
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
| # Make sure you grab the latest version | |
| curl -OL https://github.com/google/protobuf/releases/download/v3.5.1/protoc-3.5.1-linux-x86_64.zip | |
| unzip protoc-3.5.1-linux-x86_64.zip -d protoc3 | |
| sudo mv protoc3/bin/* /usr/local/bin/ | |
| sudo mv protoc3/include/* /usr/local/include/ | |
| ln -s /protoc3/bin/protoc /usr/bin/protoc |
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
| HOST_DOMAIN="host.docker.internal" | |
| ping -q -c1 $HOST_DOMAIN > /dev/null 2>&1 | |
| if [ $? -ne 0 ]; then | |
| HOST_IP=$(ip route | awk 'NR==1 {print $3}') | |
| echo -e "$HOST_IP\t$HOST_DOMAIN" >> /etc/hosts | |
| 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
| git remote add upstream https://github.com/OWNER/REPO.git | |
| git fetch upstream | |
| git checkout master | |
| git merge upstream/master |
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 | |
| # | |
| # validate nginx config | |
| # | |
| # based on script by Paul Downey | |
| # https://gist.github.com/psd/5042334 | |
| test_conf=`mktemp` | |
| target_conf=$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 | |
| function post_to_slack () { | |
| # format message as a code block ```${msg}``` | |
| SLACK_MESSAGE="\`\`\`$1\`\`\`" | |
| SLACK_URL=https://hooks.slack.com/services/your-service-identifier-part-here | |
| case "$2" in | |
| INFO) | |
| SLACK_ICON=':slack:' |