Skip to content

Instantly share code, notes, and snippets.

Avatar

Matt Rude mattrude

View GitHub Profile
View build-script.md

To run:

curl -Ls "https://gist.githubusercontent.com/mattrude/4195d155c5deb53b628055a5f83fd5e3/raw/raspi-build.sh" |sh -
@mattrude
mattrude / cloudflare-zone-updater.sh
Last active Sep 5, 2020
Cloudflare Zone Updater
View cloudflare-zone-updater.sh
#!/bin/bash
Host="lora"
Domain="theodin.network"
User="<--Cloudflare-Username-->"
Key="<--Cloudflare-API-Key-->"
###############################################################################################
Missing=''
@mattrude
mattrude / LHT65-chirpstack-decoder.js
Last active Sep 9, 2020
TTN or ChirpStack Payload Decode Codec for the Dragino LHT65 Remote Sensor
View LHT65-chirpstack-decoder.js
/*
* ChirpStack Payload Decode Codec for the Dragino LHT65 Remote Sensor
* Version 0.1.0 - 2020-08-14 - Matt Rude <matt@mattrude.com>
*
* *******************************************************************************
*
* Copyright (c) 2020 Matt Rude <matt@mattrude.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
View radar.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mattrude
mattrude / _The_Things_Network_coding_data.md
Last active Jul 23, 2020
This is the decoder/converter/validator code used in my "The Things Network" Applications Payload Formats
View _The_Things_Network_coding_data.md

This is the decoder/converter/validator code used in my "The Things Network" Applications Payload Formats

View GNU Screen Cheat Sheet.md

GNU Screen Cheat Sheet

Basics

  • ctrl a c -> cre­ate new win­dow
  • ctrl a A -> set win­dow name
  • ctrl a w -> show all win­dow
  • ctrl a 1|2|3|… -> switch to win­dow n
  • ctrl a " -> choose win­dow
  • ctrl a ctrl a -> switch between win­dow
  • ctrl a d -> detach win­dow
View raspi-fan-control-installer.md

Raspberry PI Fan Controller

To install run:

curl -Ls "https://git.io/JU4cX" |bash -
@mattrude
mattrude / AdvancedTrafficLight.c
Last active Mar 20, 2020
ATtiny85, 74HC959 Traffic Light program written for Atmel Studio 7
View AdvancedTrafficLight.c
/* ATtiny85 - Advanced Traffic Stop Light - Version 0.1.1 - 2020-03-20
* Copyright (c) 2020 Matt Rude <matt@mattrude.com>
*
* *********************************************************************************
*
* This is the Advanced Traffic Stop Light program written for an ATtiny85 using
* Atmel Studio 7: https://www.microchip.com/mplab/avr-support/atmel-studio-7
*
* For more on the ATtiny85, see: https://www.microchip.com/wwwproducts/en/ATtiny85
*
View SolarBearMPPTController.ino
/* SolarBear MPPT Controller - Version 6.3
* Copyright (c) December 2017 - Sergey Vekli, Ted Luginbuhl, & Matt Rude
*
* https://www.rcgroups.com/forums/showthread.php?3007750-BNF-SolarBear-pure-solar-powered-32-wing-Free-plans
*
* **************************************************************************************
*
* Solar Cells
*
* The solar cells are soldered in series with a piece of 29guage magnet wire going to each pad on the
@mattrude
mattrude / ATtiny85_TrafficStopLight.c
Last active Mar 7, 2020
ATtiny85 Traffic Stop Light - Written with the Atmel Studio 7 - This program turns on (in order) the Red LED, waits for 5 seconds, then turns on the Green LED, waits for 5 seconds, then turns on the Yellow LED, waits for 2.5 seconds and repeats cycle.
View ATtiny85_TrafficStopLight.c
/* ATtiny85 Traffic Stop Light - Version 0.2.0 - 2020-03-07
* Copyright (c) 2020 Matt Rude <matt@mattrude.com>
*
* *********************************************************************************
*
* This is a simple Traffic Stop Light program written for an ATtiny85 using
* Atmel Studio 7: https://www.microchip.com/mplab/avr-support/atmel-studio-7
*
* For more on the ATtiny85, see: https://www.microchip.com/wwwproducts/en/ATtiny85
*
You can’t perform that action at this time.