This file contains 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 | |
if [ "$1" == "" ] || [ "$2" == "" ] || [ "$3" == "" ]; then | |
>&2 echo "No enough arguments provided. use ./build_nginx.sh nginx-version PCRE-version openssl-version [install]" | |
exit 1 | |
fi | |
if [ "$4" == "yes" ]; then | |
INSTALL='yes' | |
else | |
INSTALL='no' | |
fi |
This file contains 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
// MIT License <https://opensource.org/licenses/MIT> - Copyright (c) 2020 Miguel Dorta | |
package main | |
import ( | |
"fmt" | |
"golang.org/x/sys/unix" | |
"io" | |
"os" | |
"os/exec" | |
"os/signal" |
This file contains 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
PXLKEY='YOUR pxl.lt key' | |
curl -s \ | |
-F "file=@$1" \ | |
-F "upload-key=$PXLKEY" \ | |
https://pxl.lt/screenshot/upload.php; echo |
This file contains 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 | |
if [ "$1" == "" ] || [ "$2" == "" ] || [ "$3" == "" ]; then | |
>&2 echo "No enough arguments provided. use ./build_nginx.sh nginx-version PCRE-version libressl-version" | |
exit 1 | |
fi | |
# names of latest versions of each package | |
export NGINX_VERSION=$1 | |
export VERSION_PCRE="pcre-$2" | |
export VERSION_LIBRESSL="libressl-$3" | |
export VERSION_NGINX=nginx-$NGINX_VERSION |