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
meta:
id: icondatapack
file-extension: icondatapack
endian: le
seq:
- id: magic
type: strz
size: 16
encoding: ASCII
doc: |
@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;
@spotlightishere
spotlightishere / atom_update
Last active January 19, 2023 16:37
A small command to update atom. Please comment if you see anything wrong, I am just beginning to explore bash as a control language.
#!/bin/bash
###########################
#FUNCTIONS and DEFINITIONS#
###########################
#The following function was taken from https://gist.github.com/crazy-max/5695540.
function wgetFilter() {
local flag=2 c count cr=$'\r' nl=$'\n'
while IFS='' read -d '' -rn 1 c
do
@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 / 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
#!/usr/bin/env xcrun -sdk macosx swift
//
// x2.swift
//
//
// Created by john on 20/1/2020.
//
import ApplicationServices
{ config, pkgs, ... }:
{
imports =
[
./hardware-configuration.nix
];
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
@spotlightishere
spotlightishere / iPod nano 7th generation IPSWs.md
Created January 9, 2023 21:59
iPod nano 7th generation IPSWs
@spotlightishere
spotlightishere / owo_beta.py
Last active April 30, 2024 22:16
OwO Beta status for Badger 2040 W
import badger2040
from badger2040 import WIDTH
import badger_os
import jpegdec
import urequests
import utime
# Display Setup
display = badger2040.Badger2040()
display.led(128)