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
pip3 install -y adafruit-python-shell | |
git clone https://github.com/adafruit/Raspberry-Pi-Installer-Scripts/ | |
cd Raspberry-Pi-Installer-Scripts/ | |
#https://www.tal.org/tutorials/setup-raspberry-pi-headless-use-usb-serial-console | |
#cmdline additions: | |
sed -i 's/fbcon=font:VGA8x8/fbcon=font:VGA8x8 modules-load=dwc2,g_serial/g' adafruit-pitft.py | |
#boot additions | |
sed -i 's/dtparam=i2c_arm=on/dtparam=i2c_arm=on\ndtoverlay=dwc2/g' adafruit-pitft.py | |
systemctl enable getty@ttyGS0.service | |
python adafruit-pitft.py |
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 re | |
import argparse | |
class LIRCConfigParser: | |
def __init__(self, file_path): | |
self.file_path = file_path | |
self.config = {} | |
self.header = None | |
self.one = None | |
self.zero = None |
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 <ArduinoJson.h> | |
#include <ArduinoOTA.h> | |
#include <DNSServer.h> | |
#include <ESP8266WebServer.h> | |
#include <ESP8266WiFi.h> | |
#include <PubSubClient.h> | |
#include <WiFiManager.h> | |
#include "Config.h" | |
#include "SerialCom.h" |
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
header = ''' | |
#pragma once | |
#include <stdio.h> | |
#include "freertos/FreeRTOS.h" | |
#include "freertos/task.h" | |
#include "driver/rmt.h" | |
#include "driver/gpio.h" | |
#include "esp_system.h" | |
#include "esp_log.h" |
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
//https://github.com/mswietlicki/Lirc_remotes/blob/master/benq.config | |
#include <stdio.h> | |
#include "freertos/FreeRTOS.h" | |
#include "freertos/task.h" | |
#include "driver/rmt.h" | |
#include "driver/gpio.h" | |
#include "esp_system.h" | |
#include "esp_log.h" |
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
// ==UserScript== | |
// @name FBMP Hider | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-09-08 | |
// @description Add a button to hide FB MP listings | |
// @author Jarrett Rainier | |
// @match https://www.facebook.com/marketplace/* | |
// @require https://code.jquery.com/jquery-3.2.1.min.js | |
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js | |
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== |
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
""" | |
Swaps the location of two selected components | |
""" | |
import pcbnew | |
class ComponentSwap(pcbnew.ActionPlugin): | |
""" | |
Select two (or more!) components and press the button | |
""" | |
def defaults(self): |
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 subprocess | |
# .\stm8flash.exe -c stlinkv2 -p stm8s105?4 -r out.bin -b 1 | |
out = b'\x00' | |
while out == b'\x00': | |
subprocess.run(['stm8flash.exe', '-c', 'stlinkv2', '-p', 'stm8s105?4', '-r', 'out.bin', '-b', '1']) |
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
# | |
# Automatically generated file; DO NOT EDIT. | |
# Linux/arm 4.15.0-rc8 Kernel Configuration | |
# | |
CONFIG_ARM=y | |
CONFIG_ARM_HAS_SG_CHAIN=y | |
CONFIG_MIGHT_HAVE_PCI=y | |
CONFIG_SYS_SUPPORTS_APM_EMULATION=y | |
CONFIG_HAVE_PROC_CPU=y | |
CONFIG_STACKTRACE_SUPPORT=y |
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
#Modifications to /boot/* files, will not be saved when powered on. | |
#Please ensure you edit from the DietPi-RamDisk location /DietPi/* | |
#NB: This is intended for advanced users, unless you know what you are doing, do not edit this file. Please use the DietPi programs instead. | |
#NB: Do not remove uncommented lines, as the items are scraped by DietPi programs, on demand. | |
#------------------------------------------------------------------------------------------------------ | |
# D I E T - P I | |
# DietPi-Automation settings, applied on the 1st boot of DietPi, ONCE | |
#------------------------------------------------------------------------------------------------------ |
NewerOlder