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
esphome: | |
name: battest | |
friendly_name: battest | |
esp32: | |
board: esp32-c3-devkitm-1 | |
framework: | |
type: arduino | |
# Enable logging |
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
#include <Arduino.h> | |
#include <heltec_unofficial.h> | |
#include <LoRaWAN_ESP32.h> | |
#include <OneWire.h> | |
#define HELTEC_WIRELESS_STICK_LITE | |
#define MINIMUM_DELAY 300 //300 Sekunden = 5 Minuten | |
const char* band = "EU868"; | |
const uint8_t subband = 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
#!/bin/bash | |
# Mastodon v4.3.x docker character limit change | |
# Does *NOT* word with >= 4.3.4 as the handling was changed | |
# Based on https://mpp-service.de/en/mastodon-character-limit-increase-in-a-docker-environment/ | |
# Based on https://fouquet.me/2024/10/10/mastodon-4-3-char-limit | |
# ./postLimit.sh 2500 → change post limit to 2500 | |
# Must be executed in the directory Mastodons docker-compose.yaml is located | |
set -e |
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
#include <Arduino.h> | |
#include <SoftwareSerial.h> | |
SoftwareSerial SRSerial(D1, D0); | |
void setup() { | |
Serial.begin(115200); | |
SRSerial.begin(9600); | |
} |
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
esphome: | |
name: smlgw | |
friendly_name: smlgw | |
esp32: | |
board: esp32-c3-devkitm-1 | |
# Enable logging | |
logger: | |
level: WARN |
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
#!/usr/bin/env python3 | |
import argparse | |
import subprocess | |
def set_resolution(output, mode, refresh, apply): | |
modeline = False | |
width, height = mode.split('x') | |
gtf_cmd = f"gtf {width} {height} {refresh}" | |
gtf_output = subprocess.check_output(gtf_cmd, shell=True, text=True) |
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
/* | |
Based on Neil Kolban example for IDF: https://github.com/nkolban/esp32-snippets/blob/master/cpp_utils/tests/BLE%20Tests/SampleNotify.cpp | |
Ported to Arduino ESP32 by Evandro Copercini | |
Create a BLE server that, once we receive a connection, will send periodic notifications. | |
The service advertises itself as: 6E400001-B5A3-F393-E0A9-E50E24DCCA9E | |
Has a characteristic of: 6E400002-B5A3-F393-E0A9-E50E24DCCA9E - used for receiving data with "WRITE" | |
Has a characteristic of: 6E400003-B5A3-F393-E0A9-E50E24DCCA9E - used to send data with "NOTIFY" | |
The design of creating the BLE server is: |
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
#!/usr/bin/env python3 | |
# Free Open Source Software released under GPLv2 | |
# see http://www.gnu.org/licenses/gpl-2.0 | |
# Author: Florian Knodt <[email protected]> | |
# Original Author: Tilman Schmidt <[email protected]> | |
# Contributor: Peter Pawn @ IP Phone Forum | |
# inspired by http://www.administrator.de/contentid/214598 | |
# Requirements (for example via pip): graypy, requests |
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
import sys | |
import json | |
import base64 | |
import argparse | |
from binascii import Error as BinasciiError | |
from urllib.parse import urlparse, parse_qs, urlencode, urlunparse, parse_qsl | |
version = "0.1" | |
def urlsafe_base64_decode(s): |
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
#Maintainer: Matthias Mailänder <matthias at mailaender dot name> | |
#Contributor NiNjA <heinep at gmail dot com> | |
#Contributor float <flo.at at gmx dot de> | |
#Contributor adlerweb <aur at adlerweb dot info> | |
pkgname=s25rttr | |
pkgver=0.9.5 | |
pkgrel=3 | |
pkgdesc="Return to the Roots is a reimplementation of Settlers II (Die Siedler II) by BlueByte Software GmbH. Put the files from the original game in the folder (/usr/share/s25rttr/S2/)" | |
arch=('i686' 'x86_64') |
NewerOlder