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
#!/bin/bash | |
## Script to install metabase on Debian 12 | |
## Author: Paulo Amaral | |
## Note: Please change db, password in the environment part of the script | |
# Define colors | |
GREEN='\033[0;32m' | |
YELLOW='\033[1;33m' | |
RED='\033[0;31m' | |
NC='\033[0m' # No Color |
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
#Paulo sérgio amaral - 2021 | |
#A+ FOR DRUPAL - BEHIND NGINX REVERSE PROXY | |
#Security headers, mozilla observatory and others. | |
#Add this line on your server config and create a file into /etc/nginx: | |
#include security.conf; | |
#start headers config | |
add_header X-Frame-Options "SAMEORIGIN" always; | |
add_header X-XSS-Protection "1; mode=block" always; | |
add_header X-Content-Type-Options "nosniff" always; |
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
#!/bin/bash | |
#Script to save records by date to better organize your recordings | |
#Use on : | |
#mounted NFS SHARE VIA FSTAB or local folder. | |
#The folder to save records is configured on Jibri json file (config.json. | |
#Dependencies : mailutils | |
RECORDINGS_DIR=$1 | |
# Find latest modified directory |
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
#!/bin/bash | |
set -e | |
#apt-get install -y curl | |
cat << "EOF" | |
___ _ _ ____ _____ _ _ _ | |
|_ _| \ | / ___|_ _|/ \ | | | | | |
| || \| \___ \ | | / _ \ | | | | | |
| || |\ |___) || |/ ___ \| |___| |___ | |
|___|_| \_|____/ |_/_/ \_\_____|_____| |
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
#!/bin/sh | |
TABLE_SCHEMA=$1 | |
TABLE_NAME=$2 | |
mytime=`date '+%y%m%d%H%M'` | |
hostname=`hostname | tr 'A-Z' 'a-z'` | |
file_prefix="trimax$TABLE_NAME$mytime$TABLE_SCHEMA" | |
bucket_name=$file_prefix | |
splitat="4000000000" | |
bulkfiles=200 |