- Do
sudo su
- Copy-paste the script (it will reboot the machine)
NOTE: I am using with with Vagrat's shell provisioner as it is easier (with privileged execution).
# This is a anonymized version of the script I use to renew all my SSL certs | |
# across my servers. This will not work out of the box for anyone as your network will be | |
# different. But may be useful starting place for others. | |
# | |
# I use a cronjob that runs this every week. It only replaces certificates when a certificate has been renewed. | |
# Renews/creates cert from letsencrypt & places it where it needs to be. | |
# Currently, that is: | |
# * Nginx (local for plex) | |
# * Plex Media Server |
#!/bin/bash | |
# Source: https://gist.github.com/yhojann-cl/37df5c5ee2300e7a7b3ff292703a63f3 | |
# Define username, domain, database name, translation language, local path, and remote path variables | |
USERNAME="hackerdev.net" | |
DOMAIN="hackerdev.net" | |
DB_NAME="hackerdev" | |
TRANS_LANGUAGE="spanish_formal_honorifics" | |
LOCAL_PATH="/home/localuser/public_html" |
#!/bin/bash | |
################################################################################ | |
# Name: installer.sh # | |
# Description: Install maintenance script for The Lounge IRC client. Cleans # | |
# SQLite db and text log files. # | |
# # | |
# Usage: ./installer.sh [options] # | |
# Describe how to use the script, including any options or flags. # | |
# # |
import smtplib | |
from email.mime.multipart import MIMEMultipart | |
from email.mime.text import MIMEText | |
def send_html_mail(subject, body, to_addr, from_addr): | |
"""Send an HTML email using the given subject, body, etc.""" | |
# Create message container - the correct MIME type is multipart/alternative here! | |
message = MIMEMultipart('alternative') | |
message['subject'] = subject |
#!/bin/bash | |
helpText=" | |
# Usage:\n | |
#\n | |
# ./monitor_albums.sh -k 'apiKey' -b 'http://host:port' -t [Single|EP|Album] [-m|u|A|h][-n 'artist name'][-i artistId]\n | |
#\n | |
# Required Options:\n | |
# -k Your Lidarr API Key (defaults to \$apiKey env variable)\n | |
# -b Your Lidarr instance URL (defaults to \$baseUrl env variable)\n |
#!/usr/bin/env bash | |
################ Description: ################### | |
# This script disables telemetry opt-out under | |
# Ubuntu 22.04 (Codename: Jammy Jellyfish). | |
# It resolves telemetry domains to 0.0.0.0 and removes | |
# telemetry services system-wide. | |
################ Parameter: ##################### | |
# None |
#!/bin/bash | |
# Function: commit | |
# Description: Commits changes to the current branch with an empty commit message containing the branch name. | |
commit() { | |
# Check if the current directory is within a Git repository | |
if ! git rev-parse --is-inside-work-tree &>/dev/null; then | |
echo "Error: Not in a Git repository. Please navigate to a Git repository directory." | |
return 1 |
#!/usr/bin/env python3 | |
""" | |
$ pip install piper-tts loguru typed-argparse bs4 ebooklib mutagen | |
$ apt install ffmpeg | |
Assuming both piper and ffmpeg are in your path, this script will convert an epub file to an audiobook. | |
""" | |
import math | |
import os | |
import queue |