Skip to content

Instantly share code, notes, and snippets.

View kirb's full-sized avatar
🔥

Adam Demasi kirb

🔥
View GitHub Profile
@kirb
kirb / 0-README.md
Last active April 5, 2026 21:07
Analysis of the “AOL Netscape” Chromium browser

For more info on what this is, see my Bluesky thread about “AOL Netscape”, aka AOL Shield, a Chromium browser developed by SentryBay for Yahoo!.

2-Decompiled.nsi is the NSIS script, decompiled by NanaZip 3.1.1080.0 (i.e. 7-Zip). As this file shows the final version of the script after macros are expanded, I’ve been cleaning up the logic into 1-Cleaned up.nsi. This is only intended to be a partial disassembly, there are many parts of it that aren’t interesting for research purposes.

@kirb
kirb / 00-README.md
Created December 9, 2025 13:13
Convert Flashback ONE35 proprietary raw to DNG raw

Convert Flashback ONE35 proprietary raw to DNG raw

This script adapts the proprietary raw format used by the Flashback ONE35 camera to DNG raw.

It’s hit or miss whether apps take this properly. I’ve had the best results opening the DNGs with Affinity Photo.

The parameters of the raw also won’t be perfect because we don’t have a camera or lens profile. You also won’t see the shutter speed, aperture, etc. because the camera doesn’t seem to store this data at all.

License: Apache License, version 2.0

@kirb
kirb / gist:5840276
Last active June 28, 2024 21:16
Download all WWDC videos and PDFs
/**
* Download all WWDC videos and PDFs
* by kirb <http://hbang.ws> / GPLv3 licensed <http://hbang.ws/s/gpl>
*
* Go to <https://developer.apple.com/wwdc/videos> and run this in your JavaScript console
* (option-cmd-i on OS X; F12 on Windows)
*
* Set hd = true if you want HD videos instead of SD (WARNING: will use a large amount of data)
*
* Make sure wget is installed too - it isn't by default for most OSes. You could also change
@kirb
kirb / Device.swift
Last active January 2, 2024 04:18
Get Mac device image based on device class - https://kirb.me/2023/04/15/mac-device-icon-by-device-class.html
import Cocoa
import UniformTypeIdentifiers
extension UTTagClass {
static let deviceModelCode = UTTagClass(rawValue: "com.apple.device-model-code")
}
extension UTType {
static let macBook = UTType("com.apple.mac.laptop")
static let macBookWithNotch = UTType("com.apple.mac.notched-laptop")
@kirb
kirb / absinthe.cmd
Created January 21, 2012 17:40
Absinthe Jailbreak Installer Assistant for iPhone 4S and iPad 2
@echo off & setlocal
rem Absinthe Jailbreak Installer Assistant
rem Written by Ad@m <http://adam.hbang.ws>
rem Licensed under the MIT License <http://adam.mit-license.org>
rem --------------------------------------
rem To use, download download and unzip this batch file from
rem <http://gist.github.com/gists/1653393/download>, then download
rem Absinthe from <http://idownloadblog.com/iphone-downloads>.
rem Now right click this batch file and run as administrator.
title Absinthe Jailbreak
@kirb
kirb / README.md
Last active October 18, 2022 03:26
Install Theos on Linux

Please don't use this. It's old and didn't really even work in the first place. Just keeping it around for historical value.

@kirb
kirb / stuff.sh
Last active September 15, 2022 06:45
Run gnome-control-center in Docker
#!/bin/bash
# I needed this because of bugs in a devel build of gnome-control-center.
# Use at your own risk.
xhost +local:
docker run \
--rm \
--privileged \
-it \
-e DBUS_SESSION_BUS_ADDRESS \
@kirb
kirb / .htaccess
Last active November 16, 2020 22:39
Self-hosted Cydia repo download counter
# Use the Apache rewrite engine to redirect downloads to our script.
RewriteEngine On
RewriteBase /
RewriteRule ^repo/((Packages|Release)(.*)?)$ /repo/counter.php?filename=$1 [L,QSA]
RewriteRule ^repo/downloads/(.*)\.deb$ /repo/counter.php?filename=$1 [L,QSA]
@kirb
kirb / gist:6149827
Last active February 26, 2020 16:20
Doing a respring the right way

Respringing the "right way" allows SpringBoard to save usage data. Otherwise, your usage data is lost and the standby/usage times are reset to "–" until you fully charge again.

Tweaks that respring the right way

  • Activator
  • Auxo
  • Flipswitch
  • Springtomize

(There are probably a few more)

@kirb
kirb / gist:5128340
Last active July 7, 2018 00:29
Best way to watch the syslog on-device

Add this to /etc/profile:

alias syslog="socat - UNIX-CONNECT:/var/run/lockdown/syslog.sock"

Install socat from Cydia if you haven't already, run . /etc/profile to re-read the script and then you can type:

~$ syslog
ASL is here to serve you
> watch