This file contains 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 board | |
from micropython import const as S | |
## Screen parameters | |
LCD_WIDTH = S(130) | |
LCD_HEIGHT = S(64) | |
LCD_ROTATION = S(0) | |
## Button thresholds | |
THRESHOLD_BLUE = S(8000) |
This file contains 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
// pins where things are connected | |
#define PIN_INTERRUPT 2 | |
#define PIN_LED_R 11 | |
#define PIN_LED_G 10 | |
#define PIN_LED_B 9 | |
#define PIN_STATUS 13 | |
#define PIN_RELAY_1 A0 |
This file contains 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
## standard libraries | |
import re | |
import time | |
import queue | |
import threading | |
import json | |
from tkinter import * | |
from tkinter import ttk, font, messagebox, filedialog | |
import datetime | |
import os |
This file contains 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
### | |
username = input('Username? ') | |
password = input('Password? ') | |
import requests | |
import re | |
import sqlite3 | |
import json |
This file contains 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
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries | |
# SPDX-License-Identifier: MIT | |
""" | |
This test will initialize the display using displayio and draw a solid green | |
background, a smaller purple rectangle, and some yellow text. | |
""" | |
import board | |
import terminalio |
This file contains 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
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries | |
# SPDX-License-Identifier: MIT | |
""" | |
This test will initialize the display using displayio and draw a solid green | |
background, a smaller purple rectangle, and some yellow text. | |
""" | |
import board | |
import terminalio |
This file contains 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 <WiFi.h> | |
#include <Preferences.h> | |
#include <esp_task_wdt.h> | |
#define CMDPROMPT "ESP32> " | |
#define TIMEOUT 10000 | |
// cmd line vars | |
char cmdBuffer[32]; | |
int cmdBufferPosition = 0; |
This file contains 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 socket | |
import threading | |
import re | |
class FoxHunter(threading.Thread): | |
def __init__(self): | |
threading.Thread.__init__(self) | |
self.name = 'thread_FoxHunter' | |
self.units = [] | |
self.sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) |
This file contains 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/python3 | |
## | |
## Network device scanner with HTML output, DNS resolution, UniFi info and | |
## PoE/port info. | |
## | |
## Required commands: arping, snmpwalk, host | |
## Required Python3 libraries: requests, Python Imaging Library | |
## Required infrastructure and services: UniFi controller, PoE switch with SNMP, | |
## dnsmasq (DHCP and DNS) | |
## Also requires ieee-data package installed. |
This file contains 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
## Gets VPOS serials not owned by the current account. Copy in your auth | |
## parameters for an existing valid session below. | |
## Nayax preset ID | |
preset_id = '' | |
## Auth cookie value | |
auth_cookie = '' | |
## RVC cookie value |
NewerOlder