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 display_result { | |
RESULT=$1 | |
EXIT_STATUS=$2 | |
TEST=$3 | |
if [ $RESULT -ne 0 ]; then | |
echo -e "\033[31m$TEST failed\033[0m" | |
exit $EXIT_STATUS | |
else |
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
{"lastUpload":"2017-07-25T16:07:16.402Z","extensionVersion":"v2.8.2"} |
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
[Unit] | |
Description=Gunicorn instance to serve a flask api | |
After=network.target | |
[Service] | |
User=<user> | |
Group=www-data | |
WorkingDirectory=/home/<user>/flask_api | |
EnvironmentFile=/home/<user>/flask_api/.env # Specify app environment variables | |
Environment="PATH=/home/<user>/flask_api/venv/bin" # Ensure venv is setup |
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 | |
while : | |
do | |
clear | |
git --no-pager log --graph --pretty=oneline --abbrev-commit --decorate --all $* | |
sleep 200 | |
done |