Skip to content

Instantly share code, notes, and snippets.

View rabilrbl's full-sized avatar

Mohammed Rabil rabilrbl

View GitHub Profile
@rabilrbl
rabilrbl / 01-s3-compatible-init.patch
Created May 2, 2026 03:02
Home Assistant custom component fixes: S3 blocking IO + OpenWrt uBus warning spam
--- a/custom_components/s3_compatible/__init__.py
+++ b/custom_components/s3_compatible/__init__.py
@@ -32,7 +32,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: S3ConfigEntry) -> bool:
aws_access_key_id=data[CONF_ACCESS_KEY_ID],
config=BOTO_CONFIG,
verify=data.get(CONF_VERIFY, None) if data.get(CONF_VERIFY, None) != "" else None,
) as client:
- client.head_bucket(Bucket=data[CONF_BUCKET])
+ await hass.async_add_executor_job(lambda: client.head_bucket(Bucket=data[CONF_BUCKET]))
except ClientError as err:
#!/bin/bash
# Options
APPROVE_INSTALL=y
SERVER_PORT=55555
CLIENT_NAME=client
# Secure WireGuard server installer
# https://github.com/angristan/wireguard-install
@rabilrbl
rabilrbl / firda_print_okhttp_request.js
Created September 19, 2023 05:30
Frida script to print all api request data make using okhttp
setImmediate(function () {
console.log("\n [*] Waiting for Traffic");
Java.perform(function () {
var okhttp_client = Java.use("okhttp3.OkHttpClient");
var okhttp_real_call = Java.use("okhttp3.RealCall");
function printSeparator() {
console.log("----------------------------------------------------------------------------");
}