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 <ESP8266WiFi.h> | |
| const char* ssid = "SSID"; | |
| const char* password = "12345678"; | |
| const char* loggerIP = "192.0.0.2"; | |
| const uint32_t loggerSerial = 3110000000; | |
| const uint16_t loggerPort = 8899; |
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
| #!/data/data/com.termux/files/usr/bin/sh | |
| TMP_DIR=$PREFIX/../tmp | |
| secontext=$(sudo ls -Zd "$PREFIX" | awk '{ print $1 }') | |
| owner=$(sudo stat -c '%U' "$PREFIX") | |
| group=$(sudo stat -c '%G' "$PREFIX") | |
| mkdir -p "$TMP_DIR" |
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
| # | |
| # SUN-5/6/8/10/12K-SG04LP3 and SUN-5/6/8/10/12/15/20/25K-SG01HP3-EU-AM2 | 5-32kW and 5-128kW | Three Phase | 4 MPPT | Hybrid Inverter | LV and HV Battery Supported | |
| # | |
| # Reference: https://github.com/user-attachments/files/16798469/MODBUS.RTU.V105.1-20231006.pdf and https://github.com/user-attachments/files/16597916/MODBUSRTU.V104.3.1.1111_SG01-HP3-AM2.pdf | |
| # | |
| # Tested with 25K-SG01HP3 12K-SG04LP3 and LSW3_15_FFFF_1.0.91R Stick Logger | |
| # | |
| info: | |
| manufacturer: Deye |
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/sh | |
| apk update | |
| apk add coreutils mariadb-client mariadb-connector-c libwebp-tools | |
| MYSQL_HOST=db | |
| MYSQL_USER=root | |
| MYSQL_PASS=example | |
| MYSQL_DB=ghost | |
| GHOST_PATH=/var/lib/ghost |
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
| type: custom:yasno-card | |
| city: "Київ" | |
| dso: "ПРАТ «ДТЕК КИЇВСЬКІ ЕЛЕКТРОМЕРЕЖІ»" | |
| group: "1.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
| services: | |
| set-permissions: | |
| image: alpine | |
| user: root | |
| volumes: | |
| - buildroot:/mnt/buildroot | |
| command: chown -R 1000:1000 /mnt/buildroot | |
| build: | |
| image: buildroot/base:20211120.1925 | |
| volumes: |
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 | |
| if [ -z "$1" ]; then | |
| echo "Usage: $0 <WG_IFACE>" > /dev/stderr | |
| exit 1 | |
| fi | |
| wg addconf wg0 <(wg-quick strip wg0) |
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 datetime | |
| import fcntl | |
| import glob | |
| import html.parser | |
| import logging | |
| import os | |
| import re | |
| import shutil | |
| import socket |
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
| /* | |
| * gcc -fPIC -Wall -ldl -shared -o pwd_override.so -Wl,-soname,pwd_override.so pwd_override.c | |
| */ | |
| #define _GNU_SOURCE | |
| #include <pwd.h> | |
| #include <stdio.h> | |
| #include <dlfcn.h> |
NewerOlder