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 / 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 / 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 / video_stream.liq
Created August 28, 2024 15:48 — forked from BusterNeece/video_stream.liq
Liquidsoap 2.1 Video Stream with HLS
# What is This Script?
# This script allows you to broadcast your AzuraCast radio signal to a remote video stream, using a
# static video file that loops in the background and dynamically writing the currently playing track
# on top of that video file.
#
# This script replaces the previous "radio-video-stream" project, allowing you to manage files directly from
# within AzuraCast and not requiring any changes to your Docker configuration at all.
#
# To use this script, you must be running at least AzuraCast 0.19.0 or a later Rolling Release version.
#
#!/usr/bin/php
<?php
/* Yes this is terribly cobbled togethor, no there are no tests, it does what it needs to do,
which is to allow you to dump a bind format zonefile over the WHM API, and to update a
WHM domain from a bind zonefile, over the API, so you only need usual WHM access, resellers are fine. */
if(count($argv) < 2)
{
echo "\nBind To/From WHM API, Especially For Resellers\n";
  1. Taking Gmail as an example, put the following into /etc/postfix/main.cf.

     relayhost = [smtp.gmail.com]:587
     smtp_sasl_auth_enable = yes
     smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
     smtp_sasl_security_options = noanonymous
     smtp_sasl_mechanism_filter = plain
     smtp_tls_CAfile = /etc/pki/tls/certs/ca-bundle.crt
     smtp_use_tls = yes
    

smtp_tls_security_level = encrypt

@sitedata
sitedata / bookmarklets-history.md
Created March 7, 2024 21:03 — forked from RadLikeWhoa/bookmarklets-history.md
A history of the networks added to the bookmarklets list.

January 14, 2013

News

  • Google Reader
  • Instapaper
  • Pinboard
  • Pocket
  • Readability
  • Storify
@sitedata
sitedata / l.php
Created October 28, 2023 01:30 — forked from adriengibrat/l.php
Extreme minification of shortest possible PSR-0 compliant autoloader, 5 lines !
<?php
//set_include_path(get_include_path() . PATH_SEPARATOR . __DIR__); // optional
spl_autoload_register(function ($class) {
$file = preg_replace('#\\\|_(?!.+\\\)#','/', $class) . '.php';
if (stream_resolve_include_path($file))
require $file;
});
@sitedata
sitedata / kickstart-ubuntu-docker-mongodb.sh
Created November 17, 2022 11:57 — forked from aedm/kickstart-ubuntu-docker-mongodb.sh
Installs Docker & Nginx on Ubuntu 16.04, starts MongoDB container
#!/bin/sh
# curl {URL to this script} | sh -s
# install docker
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
apt-cache policy docker-ce
sudo apt-get install -y docker-ce
sudo systemctl status docker
#!/usr/bin/env bash -x
# Creates RAM disk.
#
# SYNOPSIS
# create_ramdisk [size [label]]
#
# OPTIONS
# size: RAM disk size in megabytes. Default: 1024
# label: RAM disk volume label. Default: UUID
@sitedata
sitedata / btcpayserver.service
Last active October 12, 2022 11:28 — forked from mariodian/btcpayserver.service
BTCPayServer Systemd Service
[Unit]
Description=BtcPayServer daemon
Requires=btcpayserver.service
After=nbxplorer.service
[Service]
ExecStart=/usr/bin/dotnet run --no-launch-profile --no-build -c Release -p "/home/sitedata/source/btcpayserver/BTCPayServer/BTCPayServer.csproj" -- $@
User=sitedata
Group=sitedata
Type=simple