(in 13 lucky steps)
This guide shows how to run acme.sh in a RouterOS container on your USB drive, use Cloudflare DNS‑01, and deploy certs via SSH to RouterOS automatically.
#!/usr/bin/env python3 | |
import os | |
import sys | |
import tarfile | |
import tempfile | |
import subprocess | |
import xml.etree.ElementTree as ET | |
import argparse | |
import shutil |
# DNS_LeaseEvent | |
# Handles a single DHCP lease bind or release/expire event | |
# 1) Locate the exact lease by its MAC & IP | |
:local leaseId [/ip dhcp-server lease find where mac-address=$leaseActMAC and address=$leaseActIP] | |
:if ($leaseId = "") do={ | |
:log warning "DNS_LeaseEvent: lease not found for $leaseActMAC / $leaseActIP, aborting" | |
:return | |
} |
param ( | |
[string]$SourceFile = "C:\source\largefile.iso", | |
[string]$TargetFile = "D:\target\largefile.iso" | |
) | |
$contigUrl = "https://download.sysinternals.com/files/Contig.zip" | |
$contigFolder = "$env:TEMP\ContigTool" | |
$contigExe = Join-Path $contigFolder "contig.exe" | |
$contigZip = Join-Path $contigFolder "contig.zip" |
#!/usr/bin/env python3 | |
# install libraries | |
# apt install python3-requests python3-bs4 python3-tqdm | |
import os | |
import requests | |
from bs4 import BeautifulSoup | |
import re | |
from tqdm import tqdm | |
import argparse |
#!/bin/bash | |
# ----------------------------------------------------------------------------- | |
# x11vnc Setup Script | |
# Version: 1.1 | |
# Date: 2024-08-25 | |
# Description: | |
# This script installs and configures x11vnc to run as a systemd service. | |
# It checks if x11vnc is already installed, configures the VNC password, | |
# and creates the necessary systemd service file if it does not already exist. |
#!/bin/bash | |
# Unified script for downloading videos in various formats, supporting individual and batch downloads | |
# Configuration Variables | |
archivepath="/volume1/atlantic/users/matt/youtube-dl-archive" | |
output_template='%(uploader)s/%(upload_date)s %(title).50s [%(id)s][%(resolution)s][%(vcodec).4s+%(acodec).4s][%(dynamic_range)s][%(format_id)s][%(availability)s].%(ext)s' | |
ffmpeg_location="/var/packages/ffmpeg6/target/bin/" | |
ytdlp_binary="/var/services/homes/matt/.local/bin/yt-dlp" | |
options="--windows-filenames --write-thumbnail --embed-chapters --add-metadata --ffmpeg-location=$ffmpeg_location" | |
alias ffmpeg=ffmpeg6 |
<# | |
.NOTES | |
Script: Get-AllMailboxDelegation.ps1 | |
Author: ergosteur/Matthieu + Copilot | |
Date: 28 May 2024 | |
Version: 1.0 | |
.SYNOPSIS | |
This script retrieves and displays the delegated permissions for a specified mailbox or group in Exchange Online. |
<# | |
.NOTES | |
Script: Rename-OldEXOMailboxes.ps1 | |
Author: ergosteur/Matthieu + Copilot | |
Date: 28 May 2024 | |
Version: 1.0 | |
.SYNOPSIS | |
This script updates the Name and Alias properties of Exchange Online mailboxes to align with Microsoft's new naming convention. |