Skip to content

Instantly share code, notes, and snippets.

View SamuelDudley's full-sized avatar

Samuel Dudley SamuelDudley

  • Canberra - Australia
View GitHub Profile
@SamuelDudley
SamuelDudley / gist:e555e4fa2d962d92aa9c807e0d28cdfd
Created October 21, 2019 06:07 — forked from mtigas/gist:952344
Mini tutorial for configuring client-side SSL certificates.

Client-side SSL

For excessively paranoid client authentication.


Updated Apr 5 2019:

because this is a gist from 2011 that people stumble into and maybe you should AES instead of 3DES in the year of our lord 2019.

some other notes:

@SamuelDudley
SamuelDudley / Plan Format
Created February 20, 2018 05:20
QGC Plan Format Example
{
"fileType": "Plan",
"geoFence": {
"breachReturn": [
-34.92845989962295,
138.58120311679926
],
"polygon": [
[
-34.88243164765111,
#!/usr/bin/env python
'''
APM DataFlash log file reader
Copyright Andrew Tridgell 2011
Released under GNU GPL version 3 or later
Partly based on SDLog2Parser by Anton Babushkin
'''
from __future__ import print_function
@SamuelDudley
SamuelDudley / TIME_SYNC_NTP.xml
Created March 29, 2017 23:20
Proposed message definition for new ArduPilot TIMESYNC message
<!-- Round trip time synchronization message -->
<message id="TBD" name="TIME_SYNC_NTP">
<description>Time synchronization message based on NTP implementation</description>
<field name="target_system" type="uint8_t">System ID</field>
<field name="target_component" type="uint8_t">Component ID</field>
<field type="uint64_t" name="t1_usec">Time sync timestamp 1 (microseconds)</field>
<field type="uint64_t" name="t2_usec">Time sync timestamp 2 (microseconds)</field>
<field type="uint64_t" name="t3_usec">Time sync timestamp 3 (microseconds)</field>
<field type="uint64_t" name="t4_usec">Time sync timestamp 4 (microseconds)</field>
<field type="uint8_t" name="mode">0: Basic symmetric mode (default), 1: Interleaved symmetric mode</field>
@SamuelDudley
SamuelDudley / visual_delta.xml
Last active February 27, 2017 12:30
visual system delta position and delta attitude message
<!-- Visual system inter-frame delta position and delta attitude measurement message -->
<message id="11020" name="VISUAL_DELTA">
<description>Visual system inter-frame delta position and delta attitude measurements</description>
<field name="target_system" type="uint8_t">System ID</field>
<field name="target_component" type="uint8_t">Component ID</field>
<field type="uint64_t" name="time_usec">Timestamp of camera frame associated with measurements(microseconds)</field>
<field type="uint64_t" name="d_time_usec">Time since last reported camera frame(microseconds)</field>
<field type="float" name="d_x">Delta x position in body frame measured relative to earth frame, where the earth frame is a RH axis system(m)</field>
<field type="float" name="d_y">Delta y position in body frame measured relative to earth frame, where the earth frame is a RH axis system(m)</field>
<field type="float" name="d_z">Delta z position in body frame measured relative to earth frame, where the earth frame is a RH axis sy
@SamuelDudley
SamuelDudley / StrongSwan_build_notes.txt
Last active July 25, 2019 17:24
StrongSwan vici python usage snippet
# install notes for ubuntu 14.04 / odroid xu4
sudo apt-get install libgmp3-dev
# dont apt-get StrongSwan! (its really old)
wget https://download.strongswan.org/strongswan-5.5.1.tar.bz2
tar xvfj strongswan-5.5.1.tar.bz2
cd strongswan-5.5.1
sudo ./configure --prefix=/usr --sysconfdir=/etc --enable-python-eggs --enable-python-eggs-install --enable-vici
sudo make
sudo make install