RSSAmplifier

Blog

Adam's Pile of Hacks

Recent content on Adam's Pile of Hacks

pileofhacks.devRSS feed ↗8 posts

Latest posts

The optimised version of 7-Zip can be built from source

Update : thanks to comments on GitHub and lobste.rs, I’ve been pointed to a) UASM 1 and b) Archlinux 2 , that means most Linux distros could build this version of 7-Zip from source. Now, if only I could convince Debian to add uasm to the dependencies. I’d still like to see benchmarks between the UASM and C-only versions of 7-Zip on Linux. If I was going to lean more into clickbait, I'd…

A native, static binary with SQLite support in C#

This is what I needed to do to get a completely static binary that will run on most (all?) Linux distros, regardless of what weird or ancient libc is on the system. The project file - where most of the hard parts happened: <Project Sdk= 'Microsoft.NET.Sdk' > <PropertyGroup> <OutputType> Exe </OutputType> <TargetFramework> net8.0 </TargetFramework> <ImplicitUsings> enable </ImplicitUsings>…

My home automation project is a fucking disaster

This article hasn&rsquo;t quite gone where I wanted it to, but should serve as a warning to others. Maybe I&rsquo;ll update it as I continue to learn the hard way. Siri&rsquo;s just turned my kitchen lights red. I can&rsquo;t really blame her, it does match my mood. I didn&rsquo;t ask her to do it, but she thinks she&rsquo;s talking to some premium light bulbs, so it&rsquo;s probably my fault.…

Can't start Postgres 12 on Windows 10

I installed Postgres on my Windows 10 21H1 machine and was not able to start the database server - it insisted that port 5432 was in use. Event Viewer showed the following: 2021-08-14 13:03:04.273 AEST [19608] FATAL: could not create any TCP/IP sockets I got suspicious when running the server manually on different ports: PS C:\Users\Adam> & 'C:\Program Files\PostgreSQL\12\bin\postgres.exe' -D…

A Xiaomi dead-end

Booting a custom OS on a Redmi &ldquo;onc&rdquo; 7 I was gifted a Redmi Note 7. MIUI is okay, but there&rsquo;s ads baked into the app installer and I&rsquo;d really rather run something like LineageOS or even postMarketOS. Unfortunately, this is not the onclite variant that&rsquo;s supported by things like TWRP, it&rsquo;s a dual SIM variant that&rsquo;s closer to the Redmi Y3, codename onc .…

Building rtl-sdr and friends for Windows in January 2020

Just a quick write up of what I&rsquo;ve done to get rtl-sdr and kalibrate-rtl building for Windows. TL;DR: Builds can be found at my releases page , interesting Dockerfiles are rtlsdr builder and kalibrate builder Choosing a build environment I initially tried MSYS2, but I wasn&rsquo;t able to get things working properly. I forgot to write down what went wrong, but I may revisit it. I knew Fedora…

Android, Frida and a very strange bug

Skill Trees I&rsquo;m very good at getting side-tracked, but learning quite a lot while down a particular side track. This time I wanted to investigate how a particular app was working. The rise of HTTPS is fantastic for security and privacy, but terrible if you want to know what&rsquo;s actually going out of your network. Instead of starting with the target app itself, I thought I&rsquo;d build…

Teaching Git about Spotify URLs

After losing some songs off a Spotify playlist, I started thinking about how I&rsquo;d version control the playlist itself. What if I could git clone a Spotify playlist? git push to add new songs? git merge two playlists together? Sounds like an interesting experiment, at the very least. When you git clone from a https:// URL, git calls out to git-remote-https and does something to download the…