Skip to content

Instantly share code, notes, and snippets.

View sitedata's full-sized avatar
🎯
Focusing

Larry Johnson sitedata

🎯
Focusing
View GitHub Profile
@sitedata
sitedata / Caddyfile
Created August 31, 2024 22:13 — forked from BusterNeece/Caddyfile
AzuraCast demo server reset script
https://demo.azuracast.com/
tls self_signed
root src
redir / https://azuracast.com/ 302
log stdout
errors stdout
@sitedata
sitedata / install_ubuntu.sh
Created August 31, 2024 22:14 — forked from BusterNeece/install_ubuntu.sh
Pixel.horse Ubuntu Quick Install Script
#!/usr/bin/env bash
#
# Pixel.horse Easy Installer
#
# Drop this script into a folder you want to spin up Pixel.horse in, then run it!
# - Pull the script to a local file (i.e. click the "Raw" button on the top right)
# - Run `chmod a+x ./this_script_name.sh`
# - Run `./this_script_name.sh` as your regular user (not root)
#
#
@sitedata
sitedata / sse_cf_demo.html
Created August 31, 2024 22:17 — forked from Moonbase59/sse_cf_demo.html
AzuraCast HPNP (High-Performance Now Playing) example for station websites, using SSE (Server-Sent Events)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Server-sent events demo (Centrifugo)</title>
<!-- style the indicators: -isonline, -islive, isrequest, progress bar -->
<style>
.label { border-radius: 0.1rem; padding: .1rem .2rem; background: #f0f1f4; color: #5b657a; display: inline-block; }
.label.label-success { background: #32b643; color: #fff; }
@sitedata
sitedata / reload_bash_shell.sh
Created September 18, 2024 04:56 — forked from adikari/reload_bash_shell.sh
reload shell from bash and continue
if [ -f /var/run/rebooting-for-updates ]; then
# start from where we left off on reboot
sed -i '/bash/d' ~/.zshrc
sudo rm -f /var/run/rebooting-for-updates
echo "continuing after shell reload.."
else
echo "running script for the first time"
@sitedata
sitedata / clean_whmcs_logs.php
Last active October 17, 2024 02:47 — forked from shoelaced/clean_whmcs_logs.php
Deletes records from WHMCS's `tbllog_register` table that pile up because it logs every freaking thing.
<?php
/**
* Clean WHMCS Logs
*
* Based on the script by @linux4me at:
* https://whmcs.community/topic/289637-database-cleanup-operations-tbllog_register-and-tblactivitylog/
*
* This script deletes records from the WHMCS `tbllog_register` table that are older than the specified date.
* This is useful for keeping the database size down because WHMCS adds records every 5 minutes when the cron runs.
*
@sitedata
sitedata / readme.md
Created January 23, 2025 09:08 — forked from maxivak/readme.md
Install PowerDNS with recursor and MySQL backend

PowerDNS

PowerDNS is not designed to provide recursive results. It is intended to act only as an authoritative server for the domains it serves. This implies it will be serving domain data to other hosts.

Install pdns and pdns-recursor

sudo apt-get install pdns-server pdns-recursor
@sitedata
sitedata / README.md
Created February 8, 2025 13:33 — forked from tonybruess/README.md
Upgrade e1000e drivers

Upgrade e1000e drivers on Ubuntu

Simply run ./upgrade.sh.

Information

Make sure to run shutdown -r now after completing installation.

Also, use lshw -C network to verify the driver installation.

If the driver is still outdated after reboot, make sure /etc/modules contains e1000e.