Skip to content

Instantly share code, notes, and snippets.


Davide Depau depau

View GitHub Profile
depau /
Last active March 6, 2023 06:40
Force sound mode on LG C1 OLED webOS TV

Force sound mode on LG C1 OLED webOS TVs

This script works around the annoying feature of LG webOS TVs which automatically change the sound mode to "Game optimizer" when Game optimizer is selected as the video mode.

It works around it by setting it back to a user-selected mode every 5 seconds in case it changed to something else.

To install it your TV needs to be rooted. See RootMyTV and WebOSBrew.

View jcl.vim
" Vim syntax file
" Language: MVS jcl (jcl)
" Maintainer: Fiorenzo Zanotti
" Last Change: 2002 Sep 22
" For version 5.x: Clear all syntax items
" For version 6.x: Quit when a syntax file was already loaded
if version < 600
syntax clear
elseif exists("b:current_syntax")
depau /
Last active January 18, 2022 17:41
Kelon AC IR command decoder
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
0: "heat",
1: "smart",
2: "cool",
3: "dehum",
depau /
Last active March 25, 2023 01:39
Valetudo Gamepad Control

PyGame-based Valetudo Gamepad Remote Control

Uses PyGame, so it should work with all gamepads that work in actual games.

Nasty code ;)

It requires the gamepad to have at least one analog stick.

Modify the script and set DRY_RUN to True to avoid contacting Valetudo during gamepad testing.

depau /
Created January 9, 2021 15:14
Strace indent and colorize

Strace indent and colorize

Parses strace's output and indents filesystem access calls, colorizing and indenting equally all access to the same file descriptor.


depau / Dockefile
Last active January 6, 2021 09:59
3D printing group sex spam bot nuker bot
View Dockefile
FROM python:3.9.1
MAINTAINER "Davide Depau <>"
RUN pip install pyrogram TgCrypto
COPY . /app
ENTRYPOINT ["python3", "/app/"]
depau / tapo.js
Created November 27, 2020 15:25
Tapo app Frida request inspector
View tapo.js
setTimeout(function() {
Java.perform(function () {
var Account = Java.use("com.tplink.libtpnetwork.cameranetwork.model.Account");
var Request = Java.use("com.tplink.libtpnetwork.cameranetwork.model.Request");
var Response = Java.use("com.tplink.libtpnetwork.cameranetwork.model.Response");
var TPIoTResponse = Java.use("com.tplink.libtpnetwork.IoTNetwork.TPIoTResponse");
var RequestInterceptor = Java.use("com.tplink.libtpnetwork.cameranetwork.c.a.a.b");
var ByteString = Java.use("");
var Buffer = Java.use("");
depau /
Last active March 10, 2021 08:02
Hoppscotch Valetudo API v2 requests

Hoppscotch collection for Valetudo

To import

  • Open Collections tab
  • Click Import/Export
  • Click the 3-dot menu and select Import from Gist
  • Paste this Gist URL
View 0001-Set-the-non-git-package-as-provided-by-this-package.patch
From 81b4613a576e031e15be98f4b27ffdd262f2676d Mon Sep 17 00:00:00 2001
From: Davide Depau <>
Date: Wed, 13 May 2020 19:30:08 +0200
Subject: [PATCH 1/3] Set the non-git package as provided by this package
.SRCINFO | 2 ++
PKGBUILD | 7 ++++++-
2 files changed, 8 insertions(+), 1 deletion(-)
depau /
Last active January 13, 2020 17:11
Libaums QEMU setup


  • Install qemu-system-x86_64
  • Download Android-x86 RPM from
  • Extract the RPM (I'm using rpmextract from Arch, GitHub)
  • cd into the android-[version] directory from the RPM
  • Create a backing image for the USB drive:
    • qemu-img create -f raw USB.img 4G
  • Use my adapted QEMU launcher script