Skip to content

Instantly share code, notes, and snippets.

View kholia's full-sized avatar
🎯
Focusing

Dhiru Kholia kholia

🎯
Focusing
View GitHub Profile
@VinDuv
VinDuv / smol-penguins.diff
Created January 23, 2021 17:37
Display the boot logo at a smaller size for low-power CPUs
diff --git a/drivers/video/fbdev/core/fbmem.c b/drivers/video/fbdev/core/fbmem.c
index 8268bbee8..708c1846e 100644
--- a/drivers/video/fbdev/core/fbmem.c
+++ b/drivers/video/fbdev/core/fbmem.c
@@ -45,6 +45,8 @@
#define FBPIXMAPSIZE (1024 * 8)
+#define RESIZE_RATIO 75
+
@nstarke
nstarke / find-compressed-data.py
Last active October 14, 2024 05:42
Find Compressed Data without Compression Header
#!/usr/bin/env python3
#
# find-compressed-data.py
#
# A small script to bruteforce embedded compressed data that might not have a header
# Useful for raw binary firmware images that do not contain a standard
# binary header (ELF, PE, MACH-O).
#
# I included a limt on size at 16KB because this has a tendency to create
@lawrenceching
lawrenceching / install-frp-as-systemd-service.sh
Last active March 4, 2025 15:38
Install frp as systemd service
#!/bin/bash
# Update on 2024/05/29
# 1. use wget to fetch latest frp version when curl was not installed
# 2. Remind users that frp will be run in non-root user
# 3. Add CI
#
# Update on 2024/04/13
# 1. Improved OS compatibility: try wget and then curl for downloading files.
#
# Update on 2024/01/26
@kevinelliott
kevinelliott / 01 - Reverse Engineer WebSDR @ Twente WebSocket Audio to SDR IQ.md
Last active November 28, 2024 22:16
Effort to Reverse Engineer WebSDR @ Twente

Trying to figure out how to capture the audio from the WebSDR @ Twente.

http://websdr.ewi.utwente.nl:8901

Mirror the websdr site

wget --mirror http://websdr.ewi.utwente.nl:8901

Current Efforts

The ruby script will successfully pull down the audio IQ, however the IQ cannot be played in Audacity. I believe this is because the audio is encoded or otherwise slightly mangled to deter us.

@kholia
kholia / Backup stock uBitx's calibration values.txt
Last active January 4, 2022 15:10
Backup stock uBitx's calibration values
We couldn’t find that file to show.
#define BUFFER_SIZE 10
enum SlaveMode {
Receiving,
Transmitting,
Listening
} slaveMode = Listening;
uint8_t receivingBuffer[BUFFER_SIZE] = {0};
import serial
from z3 import *
def read_until(serial, until):
out = ''
while until not in out:
out += serial.read(1)
return out
@kholia
kholia / monitor.ino
Last active April 7, 2020 09:08
ESP32 + UT353-BT Mini Sound Level Meter. NO SUPPORT IS PROVIDED.
/**
* A BLE client example that is rich in capabilities.
* There is a lot new capabilities implemented.
* author unknown
* updated by chegewara
*/
// QnD support for "UT353-BT Mini Sound Level Meter" by Dhiru Kholia (March 2020)
// - Publishes sensor data to a Redis server on LAN
@GuzTech
GuzTech / colorlight_5a_75b.py
Created March 30, 2020 21:58
Modified the original so that both UART and SDRAM now work.
#!/usr/bin/env python3
# This file is Copyright (c) 2020 Florent Kermarrec <[email protected]>
# License: BSD
# Disclaimer: This SoC is still a Proof of Concept with large timings violations on the IP/UDP and
# Etherbone stack that need to be optimized. It was initially just used to validate the reversed
# pinout but happens to work on hardware...
# Build/Use:
@coolaj86
coolaj86 / Create a Bootable MacOS Recovery USB with Linux.md
Last active May 8, 2025 23:51
How to create Apple's Bootable MacOS Rescue Image from Linux

See bootableinstaller.com

How to create a Bootable MacOS Recovery USB from Linux

If your Mac is out-of-order or you otherwise cannot download macOS from the App Store, you can still create a bootable OS X recovery USB, and you can use that to create an Installer USB.

The downloads used in this process are legal and freely avaliable - including disk images directly from Apple's IT support pages, and open source utilities for extracting and converting pkg, dmg, and HFS+.