Skip to content

Instantly share code, notes, and snippets.


Davide Depau Depau

View GitHub Profile
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 Jan 18, 2022
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 Feb 19, 2022
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 Jan 9, 2021
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 Jan 6, 2021
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 Nov 27, 2020
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 Mar 10, 2021
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 Jan 13, 2020
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
Depau /
Created Aug 23, 2019
Run Android-x68 on QEMU with emulated USB stick
# By Chih-Wei Huang <>
# License: GNU Generic Public License v2
echo "Please Enter to continue or Ctrl-C to stop."