This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# edit ROM path (relative to root of SD card) | |
# and save to the /.userdata/<device> folder | |
ROM="/Roms/Game Boy (GB)/Dr. Mario (World).gb" | |
####################################### | |
# | |
# NO NEED TO EDIT BEYOND HERE UNESS YOU | |
# REALLY KNOW WHAT YOU'RE DOING... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Note: Commands that are prefaced with one backtick (`) are entered directly into the terminal. Commands with two backticks (``) are entered into the gdisk prompt. Each step is explained in English with the corresponding terminal command below it. This was done on MacOS 12.3 Monterey with an M1 processor but should work without problem on any modern MacOS, M1 or otherwise. You will end up formatting the ROM partition completely, so it is best to do this before you waste time copying any rom files over. | |
1. Back up the CFW folder from the ROMS partition. If the image named both partitions "No Name" rename the one with the CFW folder "ROMS" and the other partition "MISC" before starting this. This can be done in the Finder just like renaming any other file. | |
2. Install gdisk using homebrew. If you don't have Homebrew already installed please visit https://brew.sh/ for details on how to install it. | |
`brew install --cask gdisk | |
3. Use diskutil to get the list of mounted drives and look for the micro SD card path, m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* bye-bye brands */ | |
div[aria-label~="Timeline"] div[role="group"]+div{background-color:white;position:absolute !important;top:-24px !important;left:-64px !important;margin-top:0 !important;width:calc(100% + 64px);height:calc(100% + 24px);} | |
div[aria-label~="Timeline"] div[role="group"]+div *{display:none !important;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
find . -name '*.mp3' -print0 | sort -zn | xargs -0 -I '{}' afplay '{}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Sparrow+SI.h | |
// | |
#import <UIKit/UIKit.h> | |
@interface SPUtils (DeviceAdditions) | |
+ (BOOL)isDevicePad; | |
+ (BOOL)isDeviceRetina; | |
@end |