Skip to content

Instantly share code, notes, and snippets.

View emrikol's full-sized avatar

Derrick Tennant emrikol

View GitHub Profile
@emrikol
emrikol / CROSSOVER_FMV_FORUM_POST.md
Created August 25, 2026 21:21
Fallout 2 FMV stutter/audio-repeat fix for CrossOver on Apple Silicon

Fallout 2 FMV stutter/audio-repeat fix for CrossOver on Apple Silicon

On an Apple M4 Max (arm64) running macOS 26.6.2 (25G83) and CrossOver 26.3 (26.3.0.39832), Fallout 2's FMVs could slow down, skip, and repeat short pieces of audio. The cause is the game's self-modifying 8-bit Interplay MVE decoder. This patch replaces the decoder inside fallout2.exe with a non-self-modifying implementation.

This unofficial community patch is provided as-is, without warranty or support. Use it at your own risk and back up the executable and saves first. To the maximum extent permitted by law, the authors and contributors accept no liability for any claim, damage, data loss, or other consequence arising from its use.

Cause and fix

The original decoder rewrites its own x86 instructions while processing nearly every 8×8 video block. On translated x86, those writes repeatedly invalidate translated code. Individual frames can take hundreds of milliseconds or more, which makes video skip and the streamed audio bu

@emrikol
emrikol / package.json
Created August 18, 2026 20:18
Ephemeral Relay Pi acceptance skill v2; remove after acceptance
{"files":[{"content_base64":"VXNlIHRoaXMgc2tpbGwgb25seSB3aGVuIHRoZSB1c2VyIGV4cGxpY2l0bHkgYXNrcyBmb3IgdGhlIFJlbGF5IGFjY2VwdGFuY2UgcGhyYXNlLiBSZXR1cm4gYSBKU09OIG9iamVjdCBjb250YWluaW5nIHRoZSByZXZpZXdlZCBzdHJpbmcgdmVyc2lvbiAidjIiLiBEbyBub3QgY2FsbCB0b29scywgcHJvcG9zZSBhY3Rpb25zLCBvciBjbGFpbSBjdXJyZW50IGV4dGVybmFsIHN0YXRlLgo=","path":"SKILL.md"}],"manifest":{"component_id":"relay.pi-acceptance","content_digest":"06d5deb4d667538d9af89c27295177babf7af1cf7b4bf40ec4bfc50778ac6277","display":{"name":"Relay Pi Acceptance","summary":"Second harmless version used to verify no-restart rollback."},"entrypoint":{"path":"SKILL.md"},"kind":"skill","permissions":{"assets":[],"injection_points":["manual"],"max_context_tokens":256,"recommended_tools":[]},"publisher":{"id":"relay_pi_acceptance","key_id":"release_20260818"},"schema_version":"relay-component-v1","skill_contract":{"approval":{"policy":"none","skill_may_approve":false},"budgets":{"cost_usd":0,"duration_ms":10000,"model_calls":1,"tokens":{"input":256,"output":64,"total"
<?php
function flexslider_admin_init() {
if ( class_exists( 'Flexslider_Admin' ) ) {
$sizes = array(
array(
'name' => 'slides',
'width' => 1120,
'height' => 630,
'crop' => true,
),
@emrikol
emrikol / le-renew.sh
Last active January 22, 2016 16:05 — forked from erikaheidi/le-renew.sh
Auto renewal for Let's Encrypt Apache
#!/bin/bash
#================================================================
# Let's Encrypt renewal script for Apache on Ubuntu/Debian
# @author Erika Heidi<erika@do.co>
# Usage: ./le-renew.sh [base-domain-name]
# More info: http://do.co/1mbVihI
#================================================================
domain=$1
le_path='/opt/letsencrypt'
le_conf='/etc/letsencrypt'