Skip to content

Instantly share code, notes, and snippets.

View lint's full-sized avatar

Sean Linton lint

View GitHub Profile

How to enable/disable a section in Spotify settings

Create your custom section classes

@interface SettingsSection
- (id)initWithSettingsViewController:(id)arg1;
@end

@interface FirstSettingsSection : SettingsSection
@lint
lint / Tweak.xm
Created June 26, 2020 01:21
*Easier* access of swift ivars with FLEXing
%hook NSObject
%new
- (id)getIvar:(NSString *)arg1 {
id obj;
@try {
const char *str = [arg1 UTF8String];
obj = MSHookIvar<id>(self, str);
}
@lint
lint / Page.xm
Last active June 20, 2020 19:45
Add custom sections and pages in the official Reddit application's settings page.
@interface BaseView : UIView
@end
@interface BaseLabel : UILabel
+ (id)labelWithSubheaderFont;
@end
@interface AttributedLabelRegular : BaseLabel
@end
@lint
lint / install_theos.sh
Last active November 4, 2021 01:24
Install theos on mac without administrator access.
#!/bin/bash
echo -e "\tMaking theos directory"
cd ~/
mkdir theos
echo -e "\tSetting $THEOS path"
export THEOS=~/theos
echo "export THEOS=~/theos" > ~/.bash_profile
@lint
lint / Hello.bat
Last active September 18, 2019 14:36
Gist for u/symch - Hello.bat & startmax.bat
@ECHO OFF
ECHO s@@G%7777%e@@^
ECHO B77777777777777777777@
ECHO C77777777777777777777777777@73@
ECHO @777777777777777777777777777777@t77G
ECHO 77777777777777777777777@777777777@t7@777
ECHO 77777777777777777777777777777777777Qttt77t
ECHO @7777777777777777777777777777777777737tttt@7@
ECHO 777777777777777777777777777777%7s77%7t777t73t7
ECHO @777777777777777777777777777777777777t777t777t77