Skip to content

Instantly share code, notes, and snippets.

View mattrude's full-sized avatar

Matt Rude mattrude

View GitHub Profile
@mattrude
mattrude / changepassword.php
Created October 31, 2010 23:49
LDAP PHP Change Password Page
<?php
/**
* LDAP PHP Change Password Webpage
* @author: Matt Rude <http://mattrude.com>
* @website: http://technology.mattrude.com/2010/11/ldap-php-change-password-webpage/
*
*
* GNU GENERAL PUBLIC LICENSE
* Version 2, June 1991

Chrony Updater

@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 / gnupg-updater.sh
Last active January 26, 2024 20:29
A simple script build for Ubuntu to download and install the current version of GnuPG.
#!/bin/bash
# ---------
# Script to build and install GnuPG 2.2.x
GNUPG='2.4.4'
LIBGPGERROR='1.47'
LIBGCRYPT='1.10.3'
LIBKSBA='1.6.5'
LIBASSUAN='2.5.6'
NTBTLS='0.3.2'

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

@mattrude
mattrude / _TheOdin-Time-Service.md
Last active January 9, 2024 05:33
The Odin Network Time Service Website
@mattrude
mattrude / GnuPG-2.1.md
Last active September 10, 2023 12:05
GnuPG 2.1.18 Build Instructions for Ubuntu 16.04 LTS

GnuPG 2.1.20 Build Instructions

Below you is my build instructions for GnuPG 2.1.20 released on 03-Apr-2017. These instructions are built for a headless Ubuntu 16.04 LTS server.

Or if you wish, you may use the install script to install GnuPG 2.1.20 by entring the following:

curl -sL "https://gist.github.com/mattrude/3883a3801613b048d45b/raw/install-gnupg2.sh" |sh

Install the needed depends

apt-get -y install libgnutls-dev bzip2 make gettext texinfo gnutls-bin \

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