Skip to content

Instantly share code, notes, and snippets.

Matthew Macdonald-Wallace proffalken

View GitHub Profile
View Example.md

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 Feb 29, 2020
Mautic Nginx Configuration
View README.md

Mautic Nginx Configuration

These files allow you to configure Mautic using Nginx.

@proffalken
proffalken / exengpsserial.ino
Created Feb 28, 2018
Exen Mini Serial GPS Connection
View exengpsserial.ino
#include <TinyGPS.h>
// Create our GPS Object
TinyGPS tracker;
// Hold the speed somewhere
float mph;
// How many satelites do we have in view?
View .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
View vimrc
"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 Jun 13, 2017
Python Classes and Functions
View heartrate-__init__.py
"""
HeartRate - Use bluetooth low energy to detect heartrate
"""
import threading
import random
import ble
class HeartRate(threading.Thread):
@proffalken
proffalken / LICENSE
Last active Feb 26, 2017
PY3STATUS_CONNECTOR_DB
View LICENSE
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
View keybase.md

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:

View TTNDustSensor.ino
/*******************************************************************************
* Copyright (c) 2015 Thomas Telkamp and Matthijs Kooijman
*
* Permission is hereby granted, free of charge, to anyone
* obtaining a copy of this document and accompanying files,
* to do whatever they want with them without any restriction,
* including, but not limited to, copying, modification and redistribution.
* NO WARRANTY OF ANY KIND IS PROVIDED.
*
* This example sends a valid LoRaWAN packet with payload "Hello,
View TTNFlow.json
[
{
"type" : "tab",
"id" : "1c22d96f.2f9077",
"label" : "Devices To Dweet.io"
},
{
"x" : 129,
"field" : "",
"app" : "f4ab65e6.65e3e8",
You can’t perform that action at this time.