Skip to content

Instantly share code, notes, and snippets.


Jeremy Davis JedMeister

View GitHub Profile
JedMeister /
Created January 27, 2021 20:29 — forked from mutin-sa/
List of Top Public Time Servers

Google Public NTP [AS15169]:

#!/bin/bash -ex
# convenience functions & vars
# To force all steps to run, FORCE=y
logfile=~/$(date +%s)-buster-setup.log
unset old_pool_path old_release
export FAB_PATH=${FAB_PATH:-/turnkey/fab}
export SRC_PATH=${SRC_PATH:-/turnkey/public}
JedMeister / stunnel.conf
Created October 17, 2019 07:49
stunnel.conf for turnkey v15.x Debian 9/Stretch
View stunnel.conf
; **************************************************************************
; * Global options *
; **************************************************************************
; A copy of some devices and system files is needed within the chroot jail
; Chroot conflicts with configuration file reload and many other features
; Remember also to update the logrotate configuration.
chroot = /var/lib/stunnel4/
; Chroot jail can be escaped if setuid option is not used
setuid = stunnel4
JedMeister /
Last active September 16, 2019 05:33
customise phpBB theme - TKL v14.x
#!/bin/bash -e
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root, please use sudo"
exit 1
if [[ -n $1 ]]; then
JedMeister /
Last active February 28, 2018 16:11
Build v15.0 beta Core (on v14.2 TKLDev)

Please note that this process will add a third party TurnKey repo that I personally manage. I had to do that as I do not have direct access to the offical TurnKey repos and we need updated packages for a Stetch base.

Starting point: v14.2 TKLDev running in a VM (or bare metal if you prefer...), logged into terminal as root.

# checkout appropriate branch of common and core
cd common
git fetch origin # assumes you stil have turnkey as origin - can be skipped on fresh v14.2 install
git checkout -t origin/stretch-dev
View odoo.conf
ServerName localhost
<VirtualHost *:80>
RewriteEngine on
ReWriteCond %{SERVER_PORT} !^443$
RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R=301,L]
<VirtualHost *:443>

Keybase proof

I hereby claim:

  • I am JedMeister on github.
  • I am jeremydavis ( on keybase.
  • I have a public key whose fingerprint is 6EAF 8CC7 9E00 2BA5 CE5B 4580 6D0C A24B 0C5C C21B

To claim this, I am signing this object: