Skip to content

Instantly share code, notes, and snippets.

View depau's full-sized avatar

Davide Depau depau

View GitHub Profile
@depau
depau / kelon_decoder.py
Last active January 18, 2022 17:41
Kelon AC IR command decoder
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
MODES = {
0: "heat",
1: "smart",
2: "cool",
3: "dehum",
@depau
depau / README.md
Last active April 17, 2025 19: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
depau / README.md
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.

screenshot

@depau
depau / Dockefile
Last active January 6, 2021 09:59
3D printing group sex spam bot nuker bot
FROM python:3.9.1
MAINTAINER "Davide Depau <[email protected]>"
RUN pip install pyrogram TgCrypto
COPY . /app
WORKDIR /app
ENTRYPOINT ["python3", "/app/userbot.py"]
@depau
depau / tapo.js
Created November 27, 2020 15:25
Tapo app Frida request inspector
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("com.android.okhttp.okio.ByteString");
var Buffer = Java.use("com.android.okhttp.okio.Buffer");
@depau
depau / README.md
Last active August 31, 2023 15:50
Hoppscotch Valetudo API v2 requests

Hoppscotch collection for Valetudo

https://hoppscotch.io

To import

  • Open Collections tab
  • Click Import/Export
  • Click the 3-dot menu and select Import from Gist
  • Paste this Gist URL
From 81b4613a576e031e15be98f4b27ffdd262f2676d Mon Sep 17 00:00:00 2001
From: Davide Depau <[email protected]>
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
depau / README.md
Last active January 13, 2020 17:11
Libaums QEMU setup

Steps

  • Install qemu-system-x86_64
  • Download Android-x86 RPM from https://www.fosshub.com/Android-x86.html
  • 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
depau / android-qemu.sh
Created August 23, 2019 02:30
Run Android-x68 on QEMU with emulated USB stick
#!/bin/bash
# By Chih-Wei Huang <[email protected]>
# License: GNU Generic Public License v2
continue_or_stop()
{
echo "Please Enter to continue or Ctrl-C to stop."
read
}
@depau
depau / add.md
Last active March 7, 2019 17:57
Filterlist