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.sql
Install 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.sql
Install 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 "youremail@yourdomain.tld" | |
while getopts d:e: option |
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 |
For: https://www.reddit.com/r/aws/comments/5jf7fb/permissions_for_lambda_accessing_s3_buckets_in/
This is a little tricky, because it requires several different moving parts, specifically,
bucket-owner-full-control
acl, http://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html otherwise, the bucket owner may not be able to download them.