Skip to content

Instantly share code, notes, and snippets.

@rajivrnair
rajivrnair / postgres-production-setup.sh
Created October 7, 2024 07:46 — forked from rameerez/postgres-production-setup.sh
PostgreSQL Production Server Setup - Set up a new Ubuntu Server 24.04 LTS machine to run a production Postgres server
#!/bin/bash
# This script takes a clean Ubuntu Server 24.04 LTS image and installs and configures
# everything needed to deploy a production-ready PostgreSQL server.
set -euo pipefail
# --- AESTHETICS ---
GREEN='\033[0;32m'
@rajivrnair
rajivrnair / egghead_YouTube_downloader.py
Last active August 29, 2015 14:22 — forked from SamuelMarks/egghead_YouTube_downloader.py
Added egghead videos through to 59.
# Original script at https://gist.github.com/SamuelMarks/7961833
# This one has a few more videos, though it might be a bit out of order.
"""
Simple algorithm to download all the egghead.io videos in highest-quality from YouTube.
Run from the directory you want the videos to appear. Renames them so that they have the video number + omit the repetitive "Egghead.io - AngularJS -" text.
Installing dependency:
$ pip install git+https://github.com/NFicano/pytube#egg=pytube
"""