Skip to content

Instantly share code, notes, and snippets.

View MrGcGamer's full-sized avatar
:octocat:
waiting for some good ideas on what to do

MrGcGamer

:octocat:
waiting for some good ideas on what to do
  • Germany
  • 04:22 (UTC +01:00)
View GitHub Profile
@donato-fiore
donato-fiore / Root.plist
Last active April 4, 2025 20:27
Visually load and unload specific `PSSpecifier`'s based on a different `PSSpecifier`'s value
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>items</key>
<array>
<dict>
<key>cell</key>
<key>PSSwitchCell</key>
<key>default</key>
@donato-fiore
donato-fiore / Tweak.x
Last active June 13, 2025 22:36
Allow ControlCenter modules to load when running in a simulator.
#import <Foundation/Foundation.h>
@interface NSObject (Private)
- (id)safeValueForKey:(NSString *)key;
@end
@interface NSArray (BaseBoard)
- (id)bs_mapNoNulls:(id (^)(id))arg1;
- (id)bs_flatten;
- (id)bs_filter:(BOOL (^)(id))arg1;
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active December 13, 2025 03:11
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This does not works in browser for quests which require you to play a game! Use the desktop app to complete those.

How to use this script:

  1. Accept a quest under Discover -> Quests
  2. Press Ctrl+Shift+I to open DevTools
  3. Go to the Console tab
  4. Paste the following code and hit enter:
@donato-fiore
donato-fiore / PSListController+JSON.h
Last active November 29, 2025 02:28
PSListController extension to load JSON files.
#include <Preferences/PSListController.h>
@interface PSListController (JSON)
- (NSMutableArray *)loadSpecifiersFromJSONName:(NSString *)name target:(PSListController *)target;
- (NSMutableArray *)loadSpecifiersFromJSONName:(NSString *)name target:(PSListController *)target bundle:(NSBundle *)bundle;
@end
@billyshub
billyshub / README.md
Last active December 8, 2025 22:44
DIY Ambilight - Hyperion + Android Grabber (+ WLED Option)

Hyperion + Android Grabber Ambilight Setup Guide

Intro

@danielchg
danielchg / dnsmasq.conf
Last active August 24, 2025 00:08
dnsmasq for dualstack
domain=my.domain.local
domain-needed
interface=ens1f0
bogus-priv
listen-address=192.168.1.1
expand-hosts
server=8.8.8.8
# DHCP IPv4
dhcp-range=ens1f0,192.168.1.100,192.168.1.200,24h
@opa334
opa334 / rootless.h
Last active May 14, 2025 06:19
Macros to support rootless jailbreaks in your packages (OUTDATED / DEPRECATED)
#import <Foundation/Foundation.h>
#include <unistd.h>
// Use for NSString literals or variables
#define ROOT_PATH_NS(path)([[NSFileManager defaultManager] fileExistsAtPath:path] ? path : [@"/var/jb" stringByAppendingPathComponent:path])
// Use for C string literals
#define ROOT_PATH_C(cPath) (access(cPath, F_OK) == 0) ? cPath : "/var/jb" cPath
// Use for C string variables
@nahtedetihw
nahtedetihw / OBWelcomeControllerExample.m
Last active June 11, 2025 22:54 — forked from chrisharper22/OBWelcomeControllerExample.m
Creating a custom OBWelcomeController in iOS 13
//
// How to use an OBWelcomeController in your project.
//
// Simalary (Chris)
// Blurred Background by Ethan Whited
// All the important interfaces
@interface OBButtonTray : UIView
@property (nonatomic,retain) UIVisualEffectView * effectView;
@coolstar
coolstar / libblackjack.h
Last active October 10, 2022 10:56
libhooker/libblackjack headers
//
// libblackjack.h
// libblackjack
//
// Created by CoolStar on 2/24/20.
// Copyright © 2020 CoolStar. All rights reserved.
//
#include "libhooker.h"
@Galactic-Dev
Galactic-Dev / XXXRootListController.m
Created June 6, 2020 16:55
Show a custom version of Apple's native OBWelcomeController when opening a preference bundle.
/*The file that you modify is the XXXRootListController.m file in your
preference bundle directory (XXX being the three characters that you chose for your preference bundle */
//I'm interfacing all the classes you'll need here. But don't forget to change $(BUNDLE_NAME)_PRIVATE_FRAMEWORKS = Preferences to $(BUNDLE_NAME)_PRIVATE_FRAMEWORKS = Preferences OnBoardingKit
#include "XXXRootListController.h"
@interface OBButtonTray : UIView
- (void)addButton:(id)arg1;
- (void)setStackViewTopConstraint:(NSLayoutConstraint *)arg1;
- (NSLayoutConstraint *)stackViewTopConstraint;