Skip to content

Instantly share code, notes, and snippets.

@BestPig
BestPig / analogue-pocket-game-patches.md
Last active April 20, 2024 20:01
Patches to convert GameBoy ROM to `.pocket` (Analogue Pocket ROM)

Patches

Those patches are to convert GameBoy ROM to .pocket ROM. This allows you to play games from the SD Card on your Analogue Pocket.
Feature like RTC and Link cable seems to be unsupported by the Analogue Pocket in GB Studio mode.

Legend of Zelda, The - Link's Awakening DX

GitHub: https://github.com/BestPig/LADX-Disassembly-Pocket

Zelda no Densetsu - Yume o Miru Shima DX

@dannote
dannote / final-cut-pro-trial-reset.swift
Last active May 8, 2024 03:08
Final Cut Pro X trial reset
#!/usr/bin/swift
import Foundation
let path = URL(fileURLWithPath: NSString(string: "~/Library/Application Support/.ffuserdata").expandingTildeInPath)
let data = try! NSData(contentsOf: path) as Data
let dictionary = try! NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(data) as! NSDictionary
let mutableDictionary = dictionary.mutableCopy() as! NSMutableDictionary
for (key, value) in mutableDictionary {
@kellyrmilligan
kellyrmilligan / s3Sync.sh
Created June 8, 2017 13:38
Sync files to s3 and set cache control headers
#!/bin/bash
if [[ "$1" != "" ]]; then
S3BUCKETNAME="$1"
else
echo ERROR: Failed to supply S3 bucket name
exit 1
fi
aws s3 sync build s3://$S3BUCKETNAME --delete --cache-control max-age=31536000,public
#!/bin/bash
# Usage:
# ./charles.sh on
# ./charles.sh off
# sed needs write permissions to the parent folder to create temp file
sudo chmod -R 777 /usr/share/php/Zend/Http/Client/Adapter
sudo chmod -R 777 /usr/share/php/BBC/Http/Multi/Client/Adapter/
if [ $1 = "on" ]; then
@visiongeist
visiongeist / table-grid-accessibility-test.html
Last active April 25, 2019 12:41
Testing Accessibility of Table and ARIA role grid
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>Table Accessibility</title>
<link href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/github.min.css" rel="stylesheet">
<style id="grid-css">
/* make grid elements work like a table */