Skip to content

Instantly share code, notes, and snippets.

@fideloper
fideloper / certbot.sh
Last active September 17, 2025 14:30
Certbot on Ubuntu, wildcard subdomains via CloudFlare DNS challenge
# Used on Ubuntu 18.04 and 20.04
# Find instructions for other OSes here: https://certbot.eff.org/instructions
# Install Certbot via Snaps
sudo snap install core; sudo snap refresh core
sudo snap install --classic certbot
sudo ln -s /snap/bin/certbot /usr/bin/certbot
# Install DNS CloudFlare plugin
sudo snap set certbot trust-plugin-with-root=ok
@bakar-io
bakar-io / run multiple Redis instances on Ubuntu 20.04.md
Last active November 26, 2024 16:29 — forked from inecmc/notes.md
How to run multiple Redis instances on Ubuntu 20.04

Create the directory for the new instance

$ sudo install -o redis -g redis -d /var/lib/redis2

Create a new configuration file

$ sudo cp -p /etc/redis/redis.conf /etc/redis/redis2.conf
@hoitomt
hoitomt / README.md
Created June 19, 2018 17:58
Run 2 instances of Redis on OSX

OSX: Run two instances of Redis

Copy and update redis.conf

The redis configuration file is likely located at /usr/local/etc/redis.conf

cp /usr/local/etc/redis.conf /usr/local/etc/redis2.conf

Change the port number from 6379 to something else. I used 6380

Accept connections on the specified port, default is 6379.