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 November 23, 2024 05:16
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 / 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 / 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 \

Keybase proof

I hereby claim:

  • I am kirb on github.
  • I am kirb (https://keybase.io/kirb) on keybase.
  • I have a public key whose fingerprint is D918 228C 23BD C424 098A 97B9 5D3B 26B3 D58C 7D91

To claim this, I am signing this object:

#!/bin/sh
PLIST_BUDDY=/usr/libexec/PlistBuddy
function add_compatibility() {
"$PLIST_BUDDY" -c "Add DVTPlugInCompatibilityUUIDs:10 string $2" \
"$1/Contents/Info.plist"
}
function has_compatibility() {
@kirb
kirb / README.md
Last active March 29, 2016 12:14
SublimeClang user preferences json for iOS + theos
  1. Install SublimeClang with Package Control if you don't already have it (you do also need to install Package Control first)
  2. Click Sublime Text -> Preferences -> Sublime Clang -> User
  3. Paste in the contents of SublimeClang.sublime-settings, modifying the location of theos (-I/opt/theos/include) and the SDK (/Applications/Xcode.app/Contents/...etc) if needed
  4. Save, restart Sublime, be happy (or yell at me if it didn't work)

(This was just written from memory so let me know if something is wrong. Note that logos syntax is not supported as SublimeClang expects to only be running clang --analyze, and I know nothing about python.)

@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:5918953
Last active December 19, 2015 07:29
Translations needed for TypeStatus

Translations needed before I can release TypeStatus 1.1

Polish (pl.lproj)

"Check out #TypeStatus by HASHBANG Productions!" = "Check out #TypeStatus by HASHBANG Productions!";
"Hide Text After Delay" = "Hide Text After Delay";
"The delay can be set with the “Overlay Display Duration” slider below." = "The delay can be set with the “Overlay Display Duration” slider below.";

Russian (ro.lproj)

"Check out #TypeStatus by HASHBANG Productions!" = "Check out #TypeStatus by HASHBANG Productions!";

"Hide Text After Delay" = "Hide Text After Delay";

@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 / gist:5748420
Created June 10, 2013 12:39
Find out how many more Cydia packages your repos can have in total until it hits the 65535 package limit
echo $((65535 - `cat /var/lib/apt/lists/*_Packages | grep -cE '^Package:'`))