Skip to content

Instantly share code, notes, and snippets.

@hdoverobinson
hdoverobinson / init.rtklib.sh
Last active October 21, 2018 17:58
Installs RTKLIB on Debian/Ubuntu without prompt for deleting /usr/src/rtklib and ignores exit status
#!/bin/bash
RTKPACKAGES="automake build-essential checkinstall git libblas3 libblas-common libgfortran3 liblapack3"
RTKURL="https://github.com/tomojitakasu/RTKLIB.git -b rtklib_2.4.3"
###INSTALL RTKLIB PACKAGES###
apt-get update &&
apt-get install -y $RTKPACKAGES &&
###PREPARE RTKLIB SOURCE###
@hdoverobinson
hdoverobinson / init.safer-things-client.sh
Last active August 28, 2019 22:33
Compiles OpenVPN with mbedTLS on Debian/Ubuntu for use with safer-things-server: https://github.com/hdoverobinson/safer-things-server
#!/bin/bash
MBEDVERSION="2.16.2"
OVPNVERSION="2.4.7"
COREPACKAGES="openvpn"
BUILDPACKAGES="cmake net-tools python wget"
MBEDURL="https://tls.mbed.org/download/mbedtls-${MBEDVERSION}-apache.tgz"
OVPNURL="https://swupdate.openvpn.org/community/releases/openvpn-${OVPNVERSION}.tar.gz"
@hdoverobinson
hdoverobinson / backup.sh
Last active June 8, 2019 02:30
Multithreaded tar.gz backups with multiple checksum verifications
#!/bin/bash
###AUTHOR###
#Harry Dove-Robinson 2019-06-07
#harry@doverobinson.me
#https://gist.github.com/hdoverobinson
#https://github.com/hdoverobinson
###NOTES###
#Packages required: cmp, pigz, md5sum (Mac users should also install findutils and gnu-tar via Brew)
#This script will do the following: