Skip to content

Instantly share code, notes, and snippets.

View kevtainer's full-sized avatar
🚴‍♂️
zooooom!

Kevin Crawley kevtainer

🚴‍♂️
zooooom!
View GitHub Profile
#!/usr/bin/python
# -----------------------------------------------------------------
# route53-update.py -- Updates a DNS record in Amazon's Route 53.
#
# See documentation here:
# http://docs.amazonwebservices.com/Route53/2012-02-29/DeveloperGuide/RESTRequests.html
#
# Copyright 2012 Michael Kelly (michael@michaelkelly.org)
#
# This program is released under the terms of the GNU General Public

Keybase proof

I hereby claim:

  • I am kevtainer on github.
  • I am kevtainer (https://keybase.io/kevtainer) on keybase.
  • I have a public key ASCZQBn2Wlil1-OEfeRSNHuS68Xca5--7i67aebdK3Pl3Qo

To claim this, I am signing this object:

@kevtainer
kevtainer / k0s+traefik.md
Last active December 4, 2020 13:18
Getting Started with Traefik and K0S

K0S is a new Kubernetes distribution from Mirantis that is similar to K3S, however it ships with only the bare minimum of extensions. This allows flexibility for users who want to customize it to their needs, by allowing them to define their own ingress, storage, and other controllers in the CRD manifest which configures the cluster during bootstrap.

In the example below, I'll be guiding you through how to accomplish getting a functioning Kubernetes cluster by:

  1. Installing K0S on a clean linux VM
const url = 'https://www.trainerroad.com/api/workoutdetails/' + document.location.href.split('/').pop().split('-')[0]
function download(filename, text) {
var element = document.createElement('a');
element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(text));
element.setAttribute('download', filename);
element.style.display = 'none';
document.body.appendChild(element);
const SerialPort = require('serialport')
const Delimiter = require('@serialport/parser-delimiter')
const port = new SerialPort('/dev/ttyUSB0', {
baudRate: 19200
})
var peletonData = {
cadence: 0,
power: 0
}
@kevtainer
kevtainer / res-12.log
Created September 4, 2020 22:42
6c delimited
<Buffer 6c>
Hex: <Buffer 0c 81 84 a8 0c 80 84 84 a7>
Decimal: [
12, 129, 132, 168,
12, 128, 132, 132,
167
]
Hex: <Buffer a0 a6 04 fd 0c 81 84 a8 0c 80 84 84 a7>
Decimal: [
160, 166, 4, 253, 12,
@kevtainer
kevtainer / res-10.log
Created September 4, 2020 22:14
static samples
Hex: <Buffer 6c 80 a5 44 fd 0c 81 84 a8 0c 80 84 84 a7>
Decimal: [
108, 128, 165, 68, 253,
12, 129, 132, 168, 12,
128, 132, 132, 167
]
Hex: <Buffer 6c 80 a5 44 fd 0c 81 84 a8 0c 80 84 84 a7>
Decimal: [
108, 128, 165, 68, 253,
12, 129, 132, 168, 12,
Hex: <Buffer 0c>
Decimal: [ 12 ]
Hex: <Buffer a1 84 aa>
Decimal: [ 161, 132, 170 ]
Hex: <Buffer 0c 80 84 84 a5>
Decimal: [ 12, 128, 132, 132, 165 ]
Hex: <Buffer 6c a0 84 64 fd>
Decimal: [ 108, 160, 132, 100, 253 ]
Hex: <Buffer 0c a1 84 aa>
Decimal: [ 12, 161, 132, 170 ]
Hex: <Buffer 0c 81>
Decimal: [ 12, 129 ]
Hex: <Buffer 86 ab>
Decimal: [ 134, 171 ]
Hex: <Buffer 0c c0 a4 84 a6>
Decimal: [ 12, 192, 164, 132, 166 ]
Hex: <Buffer 6c a0 a6 04 fd>
Decimal: [ 108, 160, 166, 4, 253 ]
Hex: <Buffer 0c a1 86 a8>
Decimal: [ 12, 161, 134, 168 ]
Hex: <Buffer 0c>
Decimal: [ 12 ]
Hex: <Buffer 80 84 84 a7>
Decimal: [ 128, 132, 132, 167 ]
Hex: <Buffer 6c a0 84 44 fd>
Decimal: [ 108, 160, 132, 68, 253 ]
Hex: <Buffer 0c 81 84 a8>
Decimal: [ 12, 129, 132, 168 ]
Hex: <Buffer 0c 80 84 84 a7>
Decimal: [ 12, 128, 132, 132, 167 ]