Skip to content

Instantly share code, notes, and snippets.

@MatteoGheza
MatteoGheza / Proel-PLLEDSPAR12.qxf
Created January 3, 2023 23:42
Proel-PLLEDSPAR12 fixture for QLC+
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE FixtureDefinition>
<FixtureDefinition xmlns="http://www.qlcplus.org/FixtureDefinition">
<Creator>
<Name>Q Light Controller Plus</Name>
<Version>4.12.6</Version>
<Author>Matteo Gheza</Author>
</Creator>
<Manufacturer>Proel</Manufacturer>
<Model>PLLEDSPAR12</Model>
@MatteoGheza
MatteoGheza / ACME-Color-Fusion-CF-805.qxf
Last active January 3, 2023 23:43
ACME-Color-Fusion-CF-805 fixture for QLC+
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE FixtureDefinition>
<FixtureDefinition xmlns="http://www.qlcplus.org/FixtureDefinition">
<Creator>
<Name>Q Light Controller Plus</Name>
<Version>4.12.6</Version>
<Author>Matteo Gheza</Author>
</Creator>
<Manufacturer>ACME</Manufacturer>
<Model>Color Fusion CF-805</Model>
@MatteoGheza
MatteoGheza / ZMY-STROB18.qxf
Last active January 3, 2023 23:42
ZMY-STROB18 fixture for QLC+
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE FixtureDefinition>
<FixtureDefinition xmlns="http://www.qlcplus.org/FixtureDefinition">
<Creator>
<Name>Q Light Controller Plus</Name>
<Version>4.12.6</Version>
<Author>Matteo Gheza</Author>
</Creator>
<Manufacturer>ZMY</Manufacturer>
<Model>STROB18</Model>
@MatteoGheza
MatteoGheza / smart_tv_ads.txt
Created July 13, 2022 18:48
Smart TV AD Blocklist
||castoola.tv^
||castoola.com^
castoola.tv.lan
@MatteoGheza
MatteoGheza / img_watermark.py
Last active May 1, 2022 20:03
Image watermarker
from PIL import Image, ImageDraw, ImageFont
from matplotlib import pyplot as plt
import glob
import math
from os import path
def displayImage(img, title):
plt.imshow(img)
plt.title(title)
plt.xticks([]), plt.yticks([])
@MatteoGheza
MatteoGheza / YT_History_Exporter.js
Created April 2, 2022 22:40
YT History exporter JS
async function getNewFileHandle() {
const options = {
suggestedName: 'yt-history.json',
startIn: 'downloads',
types: [
{
description: 'Text Files',
accept: {
'text/plain': ['.txt'],
},
@MatteoGheza
MatteoGheza / flash.sh
Created October 8, 2021 21:49
Esp32 flash.bin file generator
dd if=/dev/zero bs=1M count=4 of=./flash.bin
dd if=./bootloader/bootloader.bin bs=1 count=$(stat -c%s ./bootloader/bootloader.bin) seek=$((16#1000)) conv=notrunc of=./flash.bin
dd if=./partitions_singleapp.bin bs=1 count=$(stat -c%s ./partitions_singleapp.bin) seek=$((16#8000)) conv=notrunc of=./flash.bin
dd if=./emulation.bin bs=1 count=$(stat -c%s ./emulation.bin) seek=$((16#10000)) conv=notrunc of=./flash.bin
@MatteoGheza
MatteoGheza / palindrome_A-B.yaml
Last active June 3, 2021 14:37
Turing Machine Simulator Palindrome
name: palindrome_A-B
source code: |
# Accetta parole composte solamente dai caratteri "a" e "b"
input: 'abba'
blank: ' '
start state: start
synonyms:
accept: {R: accept}
reject: {R: reject}
# Un palindromo, in questa simulazione, può essere:
@MatteoGheza
MatteoGheza / script_checker.sh
Last active July 25, 2020 12:40
PlayOnLinux 4 script checker mod
#!/bin/bash
# PlayOnLinux Script checker (MOD)
# Made by Quentin Pâris and SuperPlumus and edited by Matteo Gheza
output="/dev/stderr"
file="$1"
s_echo ()