Skip to content

Instantly share code, notes, and snippets.

View asdfugil's full-sized avatar

Nick Chan asdfugil

View GitHub Profile
@aamiaa
aamiaa / RevertNewLayout.md
Last active June 16, 2024 08:39
Revert New Discord Layout

The original snippet no longer works!

On 02/09/2024 at around 8pm UTC, Discord flipped an experiment (2023-09_mobile_redesign_override_toggles) which ignores the layout toggle that this script relied on.

If you want to continue using the old layout, you can either use a modded mobile client (such as Vendetta) to disable that experiment, or downgrade to an old version of the app.

Method 1 - Downgrading (Android)

Tip

Use this one if you want a fast, beginner-friendly solution and don't mind using a version from November 2023

  1. Download version 205.15 of Discord mobile app from ApkMirror
@khanhduytran0
khanhduytran0 / ProcursusTSHelper.c
Last active January 13, 2024 14:25
ProcursusTSHelper.c
// fork() and rootless fix for Procursus bootstrap (named libTS2JailbreakEnv.dylib)
// there's lots of stuff not cleaned up, feel free to play around
// Requires fishhook from https://github.com/khanhduytran0/fishhook
// Usage: inject to libiosexec.dylib, ensure all binaries have get-task-allow entitlement
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <mach/mach_init.h>
#include <mach-o/dyld.h>
@Orangera1n
Orangera1n / 15on16sepactivationguide.md
Last active June 15, 2024 07:11
How to activate a device on iOS 15 that was futurerestored on 16 sep

whatisthisthisthisthisthisthis?

This is a guide on how to activate ur idevice on ios 15 (maybe ios 14 idk) when its futurerestored on 16 sep.

DISCLAIMER: I am very aware people might use this to bypass icloud, but I am NOT encouraging you to bypass icloud.

ALSO: THIS IS RECOMMENDED FOR ADVANCED USERS ONLY, i am not responsable for ur device being broken (tho idk how it becomes broken via this)

also, i've only tested this on macOS, might work on linux tho if u replace darwin with linux and shit.

@LinusHenze
LinusHenze / iOS_16_Launch_Constraints.txt
Created June 15, 2022 16:30
Description of the Launch Constraints introduced in iOS 16
iOS 16 introduced launch constraints, which can be used to constraint the launch of an application.
There are three types of constraints:
Self Constraints, which the launched application itself must meet
Parent Constraints, which the parent process must meet
Responsible Constraints, which the "responsible process" must meet (I assume that the responsible process is the process that asked launchd to launch a service)
Additionally, the TrustCache format was updated (see below) to support assigning each binary a "Constraint Category", which forces Self and Parent Constraints.
Note that Self, Parent and Responsible Constraints can also be set by the process performing the launch and they can be included in the code signature, in the new blob type 0xFADE8181. In both cases, the constraints are DER encoded (just like the DER entitlements).
Constraint Categories (from TrustCache, new in version 2):
@asdfugil
asdfugil / README
Last active February 19, 2022 04:27
chinaq.tv 中國人線上看 downloader 下載器
chinaq.tv downloader
===================
chinaq.tv 中國人線上看 downloader 下載器
Dependencies 依賴: yt-dlp, nodejs, node-fetch
Usage 用法: node download.mjs [-l, --list-sources] <url> <source>
其中url為網址
@dhinakg
dhinakg / tutorial.md
Last active December 9, 2023 01:50
iOS/iPadOS 14.3 OTA
@asdfugil
asdfugil / README.md
Last active April 6, 2021 01:48
Ubuntu-like motd for Procursus

Ubuntu-like motd for Procursus

Ubuntu-like motd for jailbroken iOS users using the Procursus bootstrap. Supports bash and zsh.

Installation

  1. Install dependencies: sudo apt install coreutils grep nodejs darwintools
  2. Copy the text of greeting.sh
  3. Create a file at /etc/profile.d/greeting.sh and paste the contents.
  4. Test it. Try opening NewTerm.
@asdfugil
asdfugil / Requirements.md
Last active December 28, 2020 11:02
checkn1x system requirements
@burritosoftware
burritosoftware / ultimateguidetoaltstore.md
Last active December 2, 2022 09:07
The Ultimate Guide to Troubleshooting AltStore

The Ultimate Guide to Troubleshooting AltStore

Having issues with AltStore? This is the right place for you.

Wi-Fi Sideloading/Refreshing Is Not Working

  • Check that your Mac or PC and your device are connected to the same network.

  • Check that iTunes/Finder Wi-Fi Sync is turned on.

    1. Plug in your device to your computer.
    2. Launch iTunes (or Finder on Catalina and later).
  1. Select your device in the sidebar or top bar.
@JohnSundell
JohnSundell / StarPlane.swift
Created July 8, 2020 22:41
A simple game written in SwiftUI. Note that this is just a fun little hack, the code is not meant to be taken seriously, and only works on iPhones in portrait mode.
// A fun little game written in SwiftUI
// Copyright (c) John Sundell 2020, MIT license.
// This is a hacky implementation written just for fun.
// It's only verified to work on iPhones in portrait mode.
import SwiftUI
final class GameController: ObservableObject {
@Published var plane = GameObject.plane()
@Published private(set) var clouds = [GameObject]()