All New

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Register

Login

All New Register Login

All gists

Recently created
Least recently created
Recently updated
Least recently updated
iwalkalone's Avatar

iwalkalone / Update all certificates with certbot (nginx)

0 likes
0 forks
1 files
Last active 25 minutes ago
Renews all certificates about to expire and restarts nginx
1 #!/bin/bash
2
3 sudo certbot renew
4 sudo /etc/init.d/nginx restart
iwalkalone's Avatar

iwalkalone / Create a new certificate with certbot (nginx)

0 likes
0 forks
1 files
Last active 30 minutes ago
Creates a new certificate with certbot and setup in nginx existing configuration
1 #!/bin/bash
2
3 DOMAIN=$1
4
5 sudo certbot certonly --nginx -d $DOMAIN
6 sudo certbot install --nginx -d $DOMAIN
iwalkalone's Avatar

iwalkalone / Update CDMON DNS A record

0 likes
0 forks
1 files
Last active 48 minutes ago
Useful for dynamic IPs and automatic updates to combine with cron
1 #!/bin/bash
2
3 APIKEY=""
4 DOMAIN=""
5
6 IP_FILE="ip.txt"
7
8 # Get current public IP
9 NEW_IP=$(curl -s https://api.ipify.org)
iwalkalone's Avatar

iwalkalone / Update name.com DNS A record

0 likes
0 forks
1 files
Last active 50 minutes ago
Useful for dynamic IPs and automatic updates to combine with cron
1 #!/bin/bash
2
3 # Configuration
4 USERNAME=""
5 API_TOKEN=""
6 DOMAIN=""
7 SUBDOMAIN="" # Leave empty or use "@" for the root domain
8 RECORD_ID="" # You can find this via 'List DNS Records' in their API docs
9
10 IP_FILE="ip.txt"
Newer Older

Powered by Opengist ⋅ Load: 254ms⋅

English
العربية Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 简体中文 繁體中文