Skip to content

Instantly share code, notes, and snippets.

View spotlightishere's full-sized avatar
🦊
in your computer

Spotlight spotlightishere

🦊
in your computer
View GitHub Profile
@spotlightishere
spotlightishere / keychain_db.ksy
Created May 1, 2023 23:03
A Kaitai struct for the macOS keychain database format
meta:
# https://github.com/apple-oss-distributions/Security/blob/e4ea024c9bbd3bfda30ec6df270bfb4c7438d1a9/OSX/libsecurity_apple_file_dl/doc/FORMAT
id: keychain_db
file-extension: db
endian: be
seq:
# The header is 4 "Atoms".
# An atom is a uint32_t.
- id: header
type: file_header
@spotlightishere
spotlightishere / mobiclip.ksy
Created March 19, 2023 17:31
A Kaitai struct for Mobiclip on the Nintendo Wii
meta:
id: mobiclip
file-extension: mo
endian: le
seq:
- id: magic
contents: "MOC5"
- id: header_size
type: u4
doc: "Add 8 for the actual header size."
@spotlightishere
spotlightishere / iPod nano 7th generation IPSWs.md
Created January 9, 2023 21:59
iPod nano 7th generation IPSWs
#!/usr/bin/env xcrun -sdk macosx swift
//
// x2.swift
//
//
// Created by john on 20/1/2020.
//
import ApplicationServices
@spotlightishere
spotlightishere / NWC24StatusCode.as
Created March 14, 2022 22:12
NWC24 status codes, per the Kirby TV Channel
class nintendo.vodf.wii.net.nwc24.NWC24StatusCode
{
static var OK = 0;
static var ERR_FATAL = -1;
static var ERR_FAILED = -2;
static var ERR_INVALID_VALUE = -3;
static var ERR_NOT_SUPPORTED = -4;
static var ERR_NULL = -5;
static var ERR_FULL = -6;
static var ERR_PROTECTED = -7;
meta:
id: icondatapack
file-extension: icondatapack
endian: le
seq:
- id: magic
type: strz
size: 16
encoding: ASCII
doc: |
{ config, pkgs, ... }:
{
imports =
[
./hardware-configuration.nix
];
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
#!/usr/bin/ruby
# frozen_string_literal: true
require 'json'
require 'open-uri'
BASE_API = 'https://api.github.com/repos/vector-im/element-web'
response = JSON.parse(URI.open("#{BASE_API}/releases").read)
asset_url = ''
package main
import (
"fmt"
"image"
"image/png"
"log"
"net/http"
"strconv"
)
package main
import (
rpc "github.com/dogboy21/go-discord-rp/connection"
"github.com/godbus/dbus"
"log"
"time"
)
func main() {