Skip to content

Instantly share code, notes, and snippets.

@akemin-dayo
akemin-dayo / qemu-screamer-build-usage-guide.md
Last active April 9, 2024 15:12
A guide to building and using the audio-enabled "Screamer" fork of PowerPC QEMU on macOS and Windows

A guide to building and using the audio-enabled "Screamer" fork of PowerPC QEMU on macOS and Windows

Karen/あけみ (Twitter, Homepage)

Last updated: 2021/10/09 (QEMU-screamer version 6.1.50)

Here's a quickly-written guide describing how to build and use mcayland's excellent "Screamer" fork of QEMU which adds working audio support to QEMU for PowerPC guests!

Yes, this means working audio in PowerPC versions of OS X, Mac OS 9, and even Linux!

This guide isn't… quite up to my quality standards yet, but I figured I'd release it in this state regardless for anyone that might benefit from it, especially since I had to figure out quite a bit of this myself due to some of the existing documentation being somewhat outdated or incorrect.

local myname, ns = ...
local Debug
do
local TextDump = LibStub("LibTextDump-1.0")
local debuggable = GetAddOnMetadata(myname, "Version") == '@project-version@'
local _window
local function GetDebugWindow()
if not _window then
_window = TextDump:New(myname)
@FurloSK
FurloSK / extractSubtitles.sh
Last active March 3, 2024 23:06
Extract subtitles from MKV/MP4 videos
#!/bin/sh
# Extract subtitles from each MKV/MP4 file in the given directory
# [updated 2024-01-09 by FurloSK]
# Permanent gist address: https://gist.github.com/FurloSK/7f52303a10ab7478e3cddfe4bcc50881
#
# ===== Usage =====
# extractSubtitles.sh [-i] [<fileOrDirectory>]
# -i
# Supplying this option will skip extraction and only print information about subtitles in file
# <fileOrDirectory>
select a.* from (
select
[id],
[User_Name],
[Client_IP_Address],
[Called_Station_Id],
[Packet_Type],
[Reason-Code],
LAG([Calling_Station_ID],1) OVER( PARTITION BY [User_Name] ORDER BY [User_Name]) client FROM [NPSODBC].[dbo].[accounting_data] WHERE [Reason-Code] != 0
) a
@dreness
dreness / svg2pdf.sh
Last active April 1, 2021 02:25
Batch convert SVGs to PDF using Inkscape
#!/bin/zsh
IMAGE_DIR=$1
INK="/Applications/Inkscape.app/Contents/MacOS/inkscape"
SCRIPT="inkscript"
COUNT=0
# If gdate is available (brew install coreutils), we can show precise timing info
type -a gdate &> /dev/null && HAS_GDATE=1
@frijole
frijole / dmg_extract.sh
Last active December 12, 2020 02:02
a shell script to copy the `Icons` folder out of an IconFactory archive DMG download, based on https://stackoverflow.com/a/48251635
#!/bin/bash
dmg_path="$1"
# use process redirection to capture the mount point and dev entry
IFS=$'\n' read -rd '\n' mount_point dev_entry < <(
# mount the diskimage; leave out -readonly if making changes to the filesystem
hdiutil attach -readonly -plist "$dmg_path" | \
# convert output plist to json
@dmp1ce
dmp1ce / move_zfs_child_datasets.bash
Last active February 6, 2022 03:41
Move all ZFS child datasets to a new parent dataset
#!/bin/bash
# Move all ZFS child datasets to a new parent dataset
# See post about problematic Docker datasets:
# https://daveparrish.net/posts/2020-11-10-Managing-ZFS-Snapshots-ignore-Docker-snapshots.html
if [ ! $# -eq 2 ]; then
echo "Please supply a source and destination ZFS dataset as the first and second parameter"
echo "Example: ./move_zfs_child_datasets.bash zpool/ROOT/default zpool/docker"
exit;
@pwn20wndstuff
pwn20wndstuff / loader.c
Last active October 22, 2023 11:04
Full AMFI/CoreTrust bypass for iOS 11.0-12.1.2 by @Jakeashacks with implementation by @Pwn20wnd
//
// loader.c
// Undecimus
//
// Created by Pwn20wnd on 3/16/19.
// Copyright © 2019 Pwn20wnd. All rights reserved.
// Copyright © 2019 Jakeashacks. All rights reserved.
//
#include <common.h>
@beren12
beren12 / Decrypted iTunes Library.grammar
Created January 24, 2018 16:39 — forked from mrexodia/Decrypted iTunes Library.grammar
Decrypted iTunes Library File Format
<?xml version="1.0" encoding="UTF-8"?>
<ufwb version="1.9">
<grammar name="Decrypted iTunes Library" start="id:148" author="Mr. eXoDia" email="mr.exodia.tpodt@gmail.com" fileextension="itl" uti="com.apple.itunes.db">
<description>Grammar for decrypted iTunes Library files.</description>
<structure name="Defaults" id="149" repeatmin="0" repeatmax="-1" encoding="ISO_8859-1:1987" endian="little" signed="no"/>
<structure name="iTunes Library" id="148" repeatmin="0" repeatmax="-1" extends="id:149" order="variable">
<structref name="hdfm" id="152" repeatmin="0" repeatmax="-1" structure="id:151"/>
<structref name="msdh" id="154" repeatmin="0" repeatmax="-1" structure="id:153"/>
</structure>
<structure name="hdfm" id="151" length="this.headerLength" repeatmin="0" repeatmax="-1" extends="id:149" endian="big">
@ygini
ygini / Reversing 10.13 RootGate, hands notes.md
Last active February 20, 2021 20:26
Work in progress, notes for the current state

Reversing 10.13 RootGate, hands notes

Inital discovery process

Original state of the root.plist

Dict {
    smb_sid = Array {
        S-1-5-18