Skip to content

Instantly share code, notes, and snippets.

View proffalken's full-sized avatar

Matthew Macdonald-Wallace proffalken

View GitHub Profile
@proffalken
proffalken / gist:f23b7ad26b9f5f9596a5
Created November 6, 2015 08:47
Raspberry Pi Links
Buy it: http://cpc.farnell.com/raspberry-pi/rpi2-modb-8gb-noobs/sbc-rpi-2-model-b8gb-noobs/dp/SC13795
@proffalken
proffalken / Playbook Output
Created November 16, 2015 13:20
Issues with ansible templates
TASK: [nsca | Install NSCA Agent] *********************************************
ok: [localhost]
TASK: [nsca | Install NSCA Agent] *********************************************
skipping: [localhost]
TASK: [nsca | Ensure that the "nagios" user exists] ***************************
ok: [localhost]
TASK: [nsca | Start and enable the NSCA Service] ******************************
@proffalken
proffalken / cv.md
Last active September 22, 2020 22:26
Matthew Macdonald-Wallace
@proffalken
proffalken / Notes
Created January 20, 2017 20:30
XPS-15
* Switch to AHCI mode so USB is detected
* Use UFEI Installer on USB stick
* Disk is on /dev/nvme0*
* Read https://aprescott.com/posts/dual-booting-windows-and-linux-with-encryption
* Resize C: from within windows based on http://www.disk-partition.com/articles/shrink-volume-not-enough-space-4348.html
* Reboot
* Use `gdisk` to create new partitions based on https://wiki.archlinux.org/index.php/Installation_guide and https://wiki.archlinux.org/index.php/Dm-crypt
* Install Arch
* Reboot
#!/bin/bash
#
# list the authors of a given release in Git
#
TAG=$1
START_TAG=$(echo $TAG | cut -d '.' -f 1).0.0
echo "FETCHING TAGS"
git fetch
echo "CLEANING UP....."
rm combinedOutput.tmp
@proffalken
proffalken / Dockerfile
Created January 25, 2017 14:56
Jenkins Blue Ocean Python Development
FROM jenkinsci/blueocean:latest
USER root
RUN apk add --no-cache --update \
python \
python-dev \
py-pip \
build-base \
&& pip install virtualenv \
function Decoder(bytes, port) {
// Decode an uplink message from a buffer
// (array) of bytes to an object of fields.
var decoded = {};
if (port === 10) {
decoded.pm25count = parseFloat((bytes[1] << 8) + "." + bytes[2]);
decoded.pm10count = parseFloat((bytes[3] << 8) + "." + bytes[4]);
}