This gist was created based on the following guide: upgrading to postgresql 11 on centos 7
Create a backup:
sudo -Hiu postgres pg_dumpall > mybackup.sqlInstall PostgreSQL 11:
| #!/bin/bash | |
| set -e | |
| ################################# UPDATE THESE ################################# | |
| LAST_N_TAGS=10 | |
| SOURCE_REGION="us-west-1" | |
| DESTINATION_REGION="us-east-1" | |
| SOURCE_PROFILE="profile_1" |
This gist was created based on the following guide: upgrading to postgresql 11 on centos 7
Create a backup:
sudo -Hiu postgres pg_dumpall > mybackup.sqlInstall PostgreSQL 11:
| { | |
| "globals" : | |
| { | |
| "alwaysShowTabs" : true, | |
| "defaultProfile" : "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", | |
| "initialCols" : 120, | |
| "initialRows" : 30, | |
| "keybindings" : | |
| [ | |
| { |
| #!/bin/bash | |
| # IMPORTANT: Make sure your VM's network security rules allows access over TCP Port 80. | |
| # This is required to pass the HTTP challenge. | |
| # Download: curl -o setup.sh <raw URL of this gist> | |
| # Enable execution: sudo chmod +x setup.sh | |
| # Run: ./setup.sh -d "yourdomain.tld" -e "[email protected]" | |
| while getopts d:e: option |
| #!/bin/sh | |
| sleep 5 | |
| ffmpeg -re -f mjpeg -r 10 -i "http://localhost/?action=stream" -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -acodec aac -ab 1k -strict experimental -s 640x360 -vcodec h264 -pix_fmt yuv420p -g 20 -vb 500k -preset ultrafast -crf 31 -r 10 -f flv "rtmp://a.rtmp.youtube.com/live2/xxxx-xxxx-xxxx-xxxx" 2> /home/pi/ffmpeg.log |
| sudo su | |
| yum --enablerepo=extras install epel-release | |
| yum -y install patch dkms kernel-devel perl | |
| yum update | |
| #Required for kernel num 5: | |
| yum --enablerepo=elrepo-kernel -y install kernel-ml-devel | |
| reboot |
| #!/bin/bash | |
| # | |
| # 1, Create AWS IAM user with a policy allowing only AWS SNS Publish command | |
| # 2, Install awscli with 'yum -y install awscli' on zabbix server | |
| # 3, Add /bin/bash shell for zabbix user: usermod -s /bin/bash zabbix | |
| # 4, Deploy this script to: /etc/zabbix/send-aws-sns-sms.sh | |
| # 5, Edit this script and define the required variables | |
| # 6, Run the script manually to test | |
| # 7, Use the script in Zabbix. Create a new Media Type -> Script | |
| # Use zabbix documentation for the script parameter setup |
| #!/bin/bash | |
| # Fast way for adding lots of users to an openvpn-install setup | |
| # See the main openvpn-install project here: https://github.com/Nyr/openvpn-install | |
| # openvpn-useradd-bulk is NOT supported or maintained and could become obsolete or broken in the future | |
| # Created to satisfy the requirements here: https://github.com/Nyr/openvpn-install/issues/435 | |
| if readlink /proc/$$/exe | grep -qs "dash"; then | |
| echo "This script needs to be run with bash, not sh" | |
| exit 1 |
| #!/bin/bash | |
| youtube_url="$1" | |
| echo "Downloading video..." | |
| video_info=$(yt-dlp -e -o "%(title)s" -- "$youtube_url") | |
| sanitized_title=$(echo "$video_info" | sed 's/[^a-zA-Z0-9_.-]/_/g') | |
| output_file="${sanitized_title}.mp4" | |
| yt-dlp -o "temp.mp4" -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best' -- "$youtube_url" |
| !/bin/bash | |
| # Set the internal field separator | |
| IFS=$'\n' | |
| ## | |
| # Install pre-reqs | |
| ## | |
| yum install libtool autoconf git |