全部 新建

user:thomas 由使用者建立的 Gists

title:mygist Gists 的標題

description:sync gists with given description

filename:myfile.txt Gists 的檔案名稱

extension:yml Gists 的副檔名

language:go Gists 的程式語言

topic:homelab gists with given topic

all:systemctl search all fields

註冊

登錄

全部 新建 註冊 登錄

所有 Gists

倒序排序 創建
順序排序 創建
倒序排序 更新
順序排序 更新
iwalkalone's Avatar

iwalkalone / Update all certificates with certbot (nginx)

0 喜歡
0 分支
1 檔案
最後活躍 1 hour 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 喜歡
0 分支
1 檔案
最後活躍 1 hour 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 喜歡
0 分支
1 檔案
最後活躍 1 hour 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 喜歡
0 分支
1 檔案
最後活躍 1 hour 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"
上一頁 下一頁

由 Opengist 提供支持 ⋅ Load: 182ms⋅

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