Skip to content

Instantly share code, notes, and snippets.

View proffalken's full-sized avatar

Matthew Macdonald-Wallace proffalken

View GitHub Profile
#include <lmic.h>
#include <hal/hal.h>
#include <SPI.h>
#include <U8x8lib.h>
#define BUILTIN_LED 25
// the OLED used
U8X8_SSD1306_128X64_NONAME_SW_I2C u8x8(/* clock=*/ 15, /* data=*/ 4, /* reset=*/ 16);
// Rotate the entire assembly for printing
rotate([90,0,0]) {
// Create the main beam and cut a cylinder that's
// wide enough for the SMA connector to pass through
difference(){
// Main beam, 90x15x5mm
cube([90,15,5]);
// Hole for SMA connector, radius of 5mm,
// smooth the edges by a factor of 200,
@proffalken
proffalken / Example.md
Created May 24, 2018 06:33
Ansible issues

Hey folks, Ansible is messing me around. I've got a load of nested defaults that are setup in <role>/defaults/main.yml as follows:

aaa:
  accounts:
    min_uid: 1000
    max_uid: 60000
    min_system_uid: 500
    max_system_uid: 999
    encryption_method: SHA512
@proffalken
proffalken / README.md
Last active January 29, 2026 19:55
Mautic Nginx Configuration

Mautic Nginx Configuration

These files allow you to configure Mautic using Nginx.

@proffalken
proffalken / exengpsserial.ino
Created February 28, 2018 15:26
Exen Mini Serial GPS Connection
#include <TinyGPS.h>
// Create our GPS Object
TinyGPS tracker;
// Hold the speed somewhere
float mph;
// How many satelites do we have in view?
@proffalken
proffalken / .vimrc
Created July 21, 2017 06:11
My .vimrc
"dein Scripts-----------------------------
"
" MAKE SURE YOU INSTALL github.com/Shougo/dein.vim FIRST!
"
if &compatible
set nocompatible " Be iMproved
endif
" Required:
set runtimepath^=~/.vim/repos/github.com/Shougo/dein.vim
"dein Scripts-----------------------------
if &compatible
set nocompatible " Be iMproved
endif
" Required:
set runtimepath+=/home/mmw/.vim/bundles/repos/github.com/Shougo/dein.vim
" Required:
if dein#load_state('/home/mmw/.vim/bundles')
@proffalken
proffalken / heartrate-__init__.py
Last active June 13, 2017 18:44
Python Classes and Functions
"""
HeartRate - Use bluetooth low energy to detect heartrate
"""
import threading
import random
import ble
class HeartRate(threading.Thread):
@proffalken
proffalken / LICENSE
Last active February 26, 2017 07:36
PY3STATUS_CONNECTOR_DB
Copyright 2017 Matthew Macdonald-Wallace
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR TH

Keybase proof

I hereby claim:

  • I am proffalken on github.
  • I am proffalken (https://keybase.io/proffalken) on keybase.
  • I have a public key ASB-xl_50PZWUepYOVX_rZBQRRxE140RRTvLrnyOWPm0lgo

To claim this, I am signing this object: