curl -Ls "https://gist.githubusercontent.com/mattrude/95a1d0dde854dfb56edf7f9fab1b36f9/raw/installer.sh" |ash
Download Latest Nginx Version from http://nginx.org/download/
mkdir -p /var/src/
cd /var/src/
wget http://nginx.org/download/nginx-1.23.3.tar.gz
tar -xzf nginx-1.23.3.tar.gz
cd nginx-1.23.3
Then Build the software
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| buildDIR='/mnt/public/LibreELEC.tv' | |
| httpDIR='/var/www/html' | |
| builds="master libreelec-11.0" | |
| GITURL="https://github.com/LibreELEC/LibreELEC.tv.git" | |
| ###################################################################################### | |
| scriptName=$(basename -- "$0") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* File: PIC16F15214-stoplight.c | |
| * Hardware: PIC16F15214 | |
| * Build software: MPLAB X IDE v6.00 & XC8 v2.32 | |
| * Author: Matt Rude <matt@mattrude.com> | |
| * Created on February 3, 2022, 1:11 AM | |
| * | |
| * ---------------------------------------------------------------------------- | |
| * Description: | |
| * | |
| * A simple program that simulates a standard traffic stop light with 6 LEDs. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * File: KnightRider.c | |
| * Author: Matt Rude <matt@mattrude.com> | |
| * | |
| * Created on February 4, 2022, 6:33 PM | |
| */ | |
| #define _XTAL_FREQ 4000000 | |
| #pragma config FOSC = HS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/python | |
| # Python code for writing eeprom data to a 25AA128 | |
| data = bytearray([ | |
| # Set ABP Byte (1-byte) | |
| 0x01, | |
| # TTN Device Address, 4 Bytes, MSB | |
| 0xCB, 0x4B, 0xCC, 0x18, # devaddr |
First start by installing the needed software on your computer.
apt -y install build-essential pkg-config git libusb-1.0-0-dev
Next download, compile, & install the minipro software
cd && rm -rf minipro
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - id: US_902_928_FSB_2 | |
| name: United States 902-928 MHz, FSB 2 (Default, use this one) | |
| description: The Community Network frequency plan for the United States and Canada, using sub-band 2 | |
| base-frequency: 915 | |
| country-codes: [ca, cr, ec, gy, mx, pa, pr, us] | |
| file: US_902_928_FSB_2.yml | |
| - id: US_902_928_FSB_1 | |
| name: United States 902-928 MHz, FSB 1 | |
| description: Default frequency plan for the United States and Canada, using sub-band 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "SX1301_conf": { | |
| "lorawan_public": true, | |
| "clksrc": 1, | |
| "antenna_gain": 0, | |
| "radio_0": { | |
| "enable": true, | |
| "type": "SX1257", | |
| "freq": 904300000, | |
| "rssi_offset": -166.0, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $json = file_get_contents('php://input'); | |
| $data = json_decode($json, true); | |
| $id = $data["dev_id"]; | |
| $lat = $data["payload_fields"]["latitude"]; | |
| $lon = $data["payload_fields"]["longitude"]; | |
| $altitude = $data["payload_fields"]["altitude"]; |