Parses strace's output and indents filesystem access calls, colorizing and indenting equally all access to the same file descriptor.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3.9.1 | |
MAINTAINER "Davide Depau <[email protected]>" | |
RUN pip install pyrogram TgCrypto | |
COPY . /app | |
WORKDIR /app | |
ENTRYPOINT ["python3", "/app/userbot.py"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import sys | |
MODES = { | |
0: "heat", | |
1: "smart", | |
2: "cool", | |
3: "dehum", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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") |
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(GlobalVariable* GA = M.getGlobalVariable("llvm.global.annotations")) { | |
// the first operand holds the metadata | |
for (Value *AOp : GA->operands()) { | |
// all metadata are stored in an array of struct of metadata | |
if (ConstantArray *CA = dyn_cast<ConstantArray>(AOp)) { | |
// so iterate over the operands | |
for (Value *CAOp : CA->operands()) { | |
// get the struct, which holds a pointer to the annotated function | |
// as first field, and the annotation as second field | |
if (ConstantStruct *CS = dyn_cast<ConstantStruct>(CAOp)) { |
- Open the JupyterLite Lab (runs fully locally in the browser via a WebAssembly Python build based on Pyodide)
- File > Open from URL > paste this link
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euo pipefail | |
# Place this script next to `normalizer.bat` | |
# Set JC_CLASSIC_HOME to the parent directory of the script location | |
JC_CLASSIC_HOME=$(dirname "$(readlink -f "$0")")/.. | |
# Print warning if no JAVA_HOME set | |
if [ -z "$JAVA_HOME" ]; then |