Skip to content

Instantly share code, notes, and snippets.

View mattrude's full-sized avatar

Matt Rude mattrude

View GitHub Profile

Chrony Updater

@mattrude
mattrude / _TheOdin-Time-Service.md
Last active January 9, 2024 05:33
The Odin Network Time Service Website

NTPsec Time Service Updater

curl -Ls https://gist.githubusercontent.com/mattrude/897cd9f6b26b80de03043f0e0f4bebbb/raw/ntpsec-updater.sh |bash

Once it's complete, run the below to confirm the timers are set.

systemctl list-timers --all

NTPsec Status Report

To install, run the following as normal user (not root):

curl -Ls https://gist.github.com/mattrude/b184abb90a1a9cbe6b260a9520c69ff4/raw/installer.sh |bash

To confirm that report is scheduled to run:

systemctl list-timers --all

address=/time.local/10.0.0.2
address=/*.pool.ntp.org/10.0.0.2
cname=time.windows.com,time.local
cname=ntp.vesync.com,time.local
cname=time.nist.gov,time.local
cname=time-a-g.nist.gov,time.local
cname=time-b-g.nist.gov,time.local
cname=time-c-g.nist.gov,time.local
cname=time-d-g.nist.gov,time.local
cname=time-e-g.nist.gov,time.local
@mattrude
mattrude / _Chrony_Time_Service_Status_Report.md
Last active February 20, 2024 18:44
Chrony Time Service Status Report

Chrony Status Report

To install, run the following as the pi user

curl -Ls "https://gist.github.com/mattrude/a5b91fd88ec35969af121bd9b3b58a91/raw/reporter-installer.sh" |bash

After the install is complete, confirm the script will run by following:

systemctl list-timers --all

Look for the below entry.

@mattrude
mattrude / build-nginx.md
Created March 20, 2023 19:45
Build Nginx from Source

Download Latest Nginx Version from http://nginx.org/download/

mkdir -p /var/src/
cd /var/src/
wget http://nginx.org/download/nginx-1.23.3.tar.gz
tar -xzf nginx-1.23.3.tar.gz
cd nginx-1.23.3

Then Build the software

@mattrude
mattrude / build-libreelec.sh
Last active January 21, 2023 18:31
A simple build scrip for LibreELEC.tv
#!/bin/bash
buildDIR='/mnt/public/LibreELEC.tv'
httpDIR='/var/www/html'
builds="master libreelec-11.0"
GITURL="https://github.com/LibreELEC/LibreELEC.tv.git"
######################################################################################
scriptName=$(basename -- "$0")