Skip to content

Instantly share code, notes, and snippets.

Avatar

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
Depau / kelon_decoder.py
Last active Jan 18, 2022
Kelon AC IR command decoder
View kelon_decoder.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
MODES = {
0: "heat",
1: "smart",
2: "cool",
3: "dehum",
@Depau
Depau / README.md
Last active Feb 19, 2022
Valetudo Gamepad Control
View README.md

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 Jan 9, 2021
Strace indent and colorize
View README.md

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 Jan 6, 2021
3D printing group sex spam bot nuker bot
View Dockefile
FROM python:3.9.1
MAINTAINER "Davide Depau <davide@depau.eu>"
RUN pip install pyrogram TgCrypto
COPY . /app
WORKDIR /app
ENTRYPOINT ["python3", "/app/userbot.py"]
@Depau
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("com.android.okhttp.okio.ByteString");
var Buffer = Java.use("com.android.okhttp.okio.Buffer");
@Depau
Depau / README.md
Last active Mar 10, 2021
Hoppscotch Valetudo API v2 requests
View README.md

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
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 <davide@depau.eu>
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 Jan 13, 2020
Libaums QEMU setup
View README.md

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 Aug 23, 2019
Run Android-x68 on QEMU with emulated USB stick
View android-qemu.sh
#!/bin/bash
# By Chih-Wei Huang <cwhuang@linux.org.tw>
# License: GNU Generic Public License v2
continue_or_stop()
{
echo "Please Enter to continue or Ctrl-C to stop."
read
}