Skip to content

Instantly share code, notes, and snippets.

Dustin Barnett dustinlbarnett

  • CA, USA
Block or report user

Report or block dustinlbarnett

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
dustinlbarnett /
Last active Aug 18, 2019
OpenWRT script to setup wireguard public and private keys for a mobile device client. Outputs a QR code for easy setup with the WireGuard app.
#update and install dependencies
echo "Updating package list and installing:"
echo "kmod-wireguard luci-app-wireguard luci-proto-wireguard wireguard wireguard-tools qrencode"
#opkg update
opkg install kmod-wireguard luci-app-wireguard luci-proto-wireguard wireguard wireguard-tools qrencode
#generate keys
wg genkey | tee server-privatekey | wg pubkey > server-publickey
dustinlbarnett /
Last active Aug 29, 2015
Set system clock using GPS hardware
# This script attempts to read the current time from the gpsd daemon by using the gpspipe command to grab gpsdsentences.
# Before attempting to get time, it checks if there is a gps fix to ensure invalid time isn't sent to the system clock.
# gpspipe output is formatted and sent to the date program to update the date/time.
# Dependencies:
# gpsd
# gpsd-clients
dustinlbarnett /
Last active Aug 29, 2015
Raspberry Pi Dashcam
# collects image and location data from a Raspberry Pi and writes it to a file.
# More information can be found here:
# Copyright (C) 2015 Dustin Barnett
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
You can’t perform that action at this time.