Skip to content

Instantly share code, notes, and snippets.

@shauninman
shauninman / gist:5a801ff9acdc14cf2cc391f5e1a61b66
Created November 10, 2023 02:51
rg35xx-stock-expand-ROMS-partition-macos
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
@shauninman
shauninman / custom.css
Created December 14, 2020 17:25
white out promoted tweets on twitter.com
/* 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;}
@shauninman
shauninman / afplay-multiple.sh
Last active May 28, 2020 14:08 — forked from sirmews/afplay-multiple.sh
Play all mp3 files in current directory with afplay (sorted properly on Catalina)
#!/bin/bash
find . -name '*.mp3' -print0 | sort -zn | xargs -0 -I '{}' afplay '{}'
//
// Sparrow+SI.h
//
#import <UIKit/UIKit.h>
@interface SPUtils (DeviceAdditions)
+ (BOOL)isDevicePad;
+ (BOOL)isDeviceRetina;
@end