Skip to content

Instantly share code, notes, and snippets.

@spatula75
spatula75 / GPS-ntpd.md
Last active June 25, 2023 04:14
Setting up a GPS-based ntpd using a Raspberry Pi and the Adafruit Ultimate GPS Hat

The Problem

What sounded like a simple enough thing to want to do-- run ntpd on a Raspberry Pi that synchronizes with gps for use on my local LAN-- quickly turned into a nearly hopeless situation. Many guides existed online purporting to show how to do this; however, they universally failed to achieve results, either because they never actually worked, worked on some older version of Linux, or only worked by sheer luck for the author, and not for anybody else (maybe because they failed to document some critical steps).

Further, many of these guides were written by folks who don't really know what they're doing in Linux/Unix. They mean well,

@progrium
progrium / badger.html
Created October 23, 2011 14:54
Proof of concept for entirely self-contained HTML badge printing system
<html>
<head>
<style type="text/css">
svg { margin-left: -2000px; }
</style>
<script type="text/javascript" src="http://github.com/DmitryBaranovskiy/raphael/raw/master/raphael-min.js"></script>
<script type="text/javascript" src="http://canvg.googlecode.com/svn/trunk/rgbcolor.js"></script>
<script type="text/javascript" src="http://canvg.googlecode.com/svn/trunk/canvg.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
<script src="http://labelwriter.com/software/dls/sdk/js/DYMO.Label.Framework.latest.js" type="text/javascript" charset="UTF-8"> </script>