Skip to content

Instantly share code, notes, and snippets.

View kholia's full-sized avatar
🎯
Focusing

Dhiru Kholia kholia

🎯
Focusing
View GitHub Profile
@kholia
kholia / sipiradio.py
Created May 26, 2024 12:40 — forked from JonathanThorpe/sipiradio.py
Si473x i2c/i2s radio for Rasperrby Pi
#!/usr/bin/python3
import quick2wire.i2c as i2c
import time
import RPi.GPIO as GPIO
import alsaaudio
import threading
import logging
import sys
#Work in progress library for Si473x for Raspberry Pi by Jonathan Thorpe <[email protected]>
@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.
@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

Keybase proof

I hereby claim:

  • I am kholia on github.
  • I am dhiru (https://keybase.io/dhiru) on keybase.
  • I have a public key ASAGxfq3OP4Ew0AxGkHuCnkTjLHO3XTMosvaOEw9nXQ_9Ao

To claim this, I am signing this object:

@kholia
kholia / too-much-optimization.c
Created September 2, 2016 10:02
too-much-optimization.c
// gcc -c -O2 too-much-optimization.c
//
// objdump -d too-much-optimization.o
//
// the overflow check in gdk_pixbuf_new_reduced function disappears under Fedora 24 GCC 6.1.1
//
// http://c-faq.com/misc/intovf.html
// http://c-faq.com/misc/sd26.html
#include <stdio.h>
@kholia
kholia / RpmGrill proposal.rst
Last active December 19, 2015 04:48
RpmGrill proposal

RpmGrill proposal

The basic idea behind RpmGrill project is to run automated tests on Koji packages as well as Fedora stable & testing repositories. RpmGrill analyzes _builds_, not individual rpms: this allows it to detect problems such as compiler warnings (from the build logs) or multilib inconsistencies (by matching 32- and 64-bit rpms) which cannot be identified by examining a single rpm file.

@kholia
kholia / ASLR+vsyscall.rst
Last active August 16, 2022 07:32
Notes on ASLR and vsyscall page

Goals

This documents tries to address some concerns with enabling PIE.

Argument 1

One of the criticism of "Using PIE by default on AMD64" is,

@kholia
kholia / benchmarking-gimp.rst
Last active December 18, 2015 15:49
benchmarking-gimp

Goal

Address Jakub's concerns regarding the performance impact of PIE. See

https://lists.fedoraproject.org/pipermail/devel/2013-April/181171.html

Why Gimp