Skip to content

Instantly share code, notes, and snippets.

View markdavidburke's full-sized avatar
🎯
Focusing

Mark Burke markdavidburke

🎯
Focusing
View GitHub Profile
@virtualbeck
virtualbeck / ecr_copy.sh
Last active February 18, 2024 02:32
copy n number of tagged docker images from one aws ecr account to another
#!/bin/bash
set -e
################################# UPDATE THESE #################################
LAST_N_TAGS=10
SOURCE_REGION="us-west-1"
DESTINATION_REGION="us-east-1"
SOURCE_PROFILE="profile_1"
@ShvaykaD
ShvaykaD / upgrade-postgresql-service-centos-7.md
Created May 4, 2020 16:29
Upgrading PostgreSQL service from 9.x or 10.x to 11 version on CentOS 7
@47ronin
47ronin / yt-dlp.sh
Last active April 7, 2024 06:28
Use yt-dlp to merge best video and best audio formats together into an MPEG-4 container, check for AV1/VP9, and transcode to H.264 if necessary. Usage: ./yt-dlp.sh <video_url>
#!/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
# 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