Skip to content

Instantly share code, notes, and snippets.

#include "DigiKeyboard.h"
// Teclas universais (códigos HID)
#define KEY_MINUS 45
#define KEY_SLASH 56
#define KEY_SPACE 44
#define KEY_COLON 33 // Shift + ;
#define KEY_TAB 43
//#define KEY_SLASH 0x38 // Código físico para tecla '/'
#define KEY_BACKSLASH 0x31
@Spiritdude
Spiritdude / blkenvflash
Created June 18, 2024 10:21
LuckFox Pico Pro/Max SD card writer from .env.txt
#!/usr/bin/python3
# == BLKENVFLASH == written by Rene K. Mueller <[email protected]>
#
# Description:
# Writes an image (.img) or to the SD card direct from existing .env.txt for LuckFox Pico Pro/Max
#
# % ./blkenvflash disk.img
# -- inquery with `lsblk` which device is your SD card resides --
# % sudo dd if=disk.img of=/dev/sdX bs=1M; sync
@bouroo
bouroo / resize_disk.sh
Created November 10, 2023 07:31
linux extend disk partition script
#!/usr/bin/env bash
# find root path
ROOT_DEV=$(findmnt -n -o SOURCE /)
# rescan disk size
echo 1 | sudo tee /sys/block/sda/device/rescan
# grow partition that contains root
# extend partition size
growpart /dev/sda 3
# extend physical volume
pvresize /dev/sda3
@renatoccosta
renatoccosta / install-ha-opi5.adoc
Last active May 3, 2025 14:44
Install Home Assistant on OrangePi 5

Installing Home Assistant on OrangePi 5 Board

This tutorial will enable the use of Home Assistant on an OrangePi 5 board with the following characteristics:

  • OrangePi Debian OS

  • OS running on a SDCard

  • Home Assistant Supervised Instalation

The steps are a compilation with few modifications from instructions found over the web. Links are at the end.

@origamiofficial
origamiofficial / Recaptcha Solver (Automatically solves Recaptcha in browser).user.js
Created March 25, 2022 04:42
Recaptcha Solver in Browser | Automatically solves Recaptcha in browser by engageub | Note: This script is solely intended for the use of educational purposes only and not to abuse any website. This script uses audio in order to solve the captcha. Use it wisely and do not abuse any website. Click "Raw" to install it on Tampermonkey
// ==UserScript==
// @name Recaptcha Solver (Automatically solves Recaptcha in browser)
// @namespace Recaptcha Solver
// @version 2.1
// @description Recaptcha Solver in Browser | Automatically solves Recaptcha in browser
// @author engageub
// @match *://*/recaptcha/*
// @connect engageub.pythonanywhere.com
// @connect engageub1.pythonanywhere.com
// @grant GM_xmlhttpRequest
@agyild
agyild / FSR.glsl
Last active April 19, 2025 04:58
AMD FidelityFX Super Resolution v1.0.2 for mpv
// Copyright (c) 2021 Advanced Micro Devices, Inc. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
@RudraSwat
RudraSwat / gamebuntu.sh
Last active November 19, 2023 14:02
A simple script to transform an Ubuntu install into a complete game-ready (!) setup.
#!/bin/bash
# Gamebuntu, a simple script to transform an Ubuntu install into a complete game-ready (!) setup
# Copyright (C) 2021 Rudra Saraswat
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
@TheGroundZero
TheGroundZero / esp32_ttgo_t5_213.yaml
Created May 8, 2021 23:05
TTGO T5 v2.3.1 2.13" display in ESPHome
# Board
# https://s.click.aliexpress.com/e/_9IDl91
# ESPHome docs:
# - https://esphome.io/components/display/waveshare_epaper.html
# - https://esphome.io/components/spi.html#spi
# - https://esphome.io/components/display/index.html#formatted-text
substitutions:
esphome_name: esp32_ttgo_t5
#!/data/data/com.termux/files/usr/bin/bash
echo "Uninstalling Kali, please be patient..."
chmod 777 -R kali-fs
rm -rf kali-fs
rm -rf kali-binds
rm -rf kali.sh
rm -rf start-kali.sh
rm -rf ssh-apt.sh
@dlashua
dlashua / README.md
Created October 13, 2020 12:26
PyScript Candle Light Simulator

Use this in a Home Assistant Automation or Script to start a candle light effect on a bulb.

action:
  - service: pyscript.candle_light
    data:
      entity_id: light.living_overhead
      state: 'on' #use 'off' to stop the effect
      brightness: 12 #optional
 color_temp: 450 #optional