Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
#
## Script by /u/TomLube and improved by @AppleBetasDev
#
rm -f /usr/bin/lzmainfo
rm -f /usr/bin/iomfsetgamma
rm -f /usr/bin/gpgv
rm -f /usr/bin/toe
@AppleBetas
AppleBetas / UIApplication+GracefulExit.swift
Created May 28, 2017 23:32
UIApplication+GracefulExit.swift - exit an app (using private APIs) with the default iOS animation
//
// UIApplication+GracefulExit.swift
//
// Created by AppleBetas on 2017-05-28.
//
import UIKit
extension UIApplication {
document['\x62\x6f\x64\x79']['\x69\x6e\x6e\x65\x72\x48\x54\x4d\x4c']=document['\x62\x6f\x64\x79']['\x69\x6e\x6e\x65\x72\x48\x54\x4d\x4c']['\x72\x65\x70\x6c\x61\x63\x65'](/Dynastic( Development)?/gi,'\x44\x6f\x75\x62\x6c\x65\x20\x44\x69\x63\x6b\x69\x6e\x67')['\x72\x65\x70\x6c\x61\x63\x65'](/development/gi,'\x6c\x61\x72\x67\x65\x20\x73\x65\x74\x20\x6f\x66')['\x72\x65\x70\x6c\x61\x63\x65'](/people/gi,'\x73\x68\x69\x74\x73')['\x72\x65\x70\x6c\x61\x63\x65'](/(quality|talent(s)?)/,'\x6c\x65\x6e\x67\x74\x68\x73')['\x72\x65\x70\x6c\x61\x63\x65'](/software|theme(s)?|team|app(s)?/gi,'\x63\x6f\x63\x6b\x73')['\x72\x65\x70\x6c\x61\x63\x65'](/(tweak(s)?|service(s)?|project(s))/gi,'\x64\x69\x6c\x64\x6f\x73')['\x72\x65\x70\x6c\x61\x63\x65']('\x47\x6f\x6c\x64\x65\x6e\x20\x52\x69\x6e\x67\x73','\x47\x6f\x6c\x64\x65\x6e\x20\x43\x6f\x63\x6b\x20\x52\x69\x6e\x67\x73')['\x72\x65\x70\x6c\x61\x63\x65'](/Coming Soon/gi,'\x73\x75\x63\x6b\x20\x61\x20\x64\x69\x63\x6b\x21')['\x72\x65\x70\x6c\x61\x63\x65'](/Developer/gi,'\x50\x69\x65\x63\x6
@AppleBetas
AppleBetas / gist:4ddf91c8ead4b2a87a71bcd52eab258b
Last active December 24, 2019 00:03 — forked from steventroughtonsmith/gist:6763213
Non-opaque application windows in iOS 7, with optional blur. Shows the user's wallpaper under the app, with Parallax if supported.
typedef NS_ENUM(NSUInteger, UIBackgroundStyle) {
UIBackgroundStyleDefault,
UIBackgroundStyleTransparent,
UIBackgroundStyleLightBlur,
UIBackgroundStyleDarkBlur,
UIBackgroundStyleDarkTranslucent,
UIBackgroundStyleExtraDarkBlur,
UIBackgroundStyleBlur
};
@AppleBetas
AppleBetas / UIViewController+CurrentViewController.swift
Last active April 26, 2017 17:45
UIViewController+CurrentViewController.swift - Get the actual currently displaying view in your app
//
// UIViewController+CurrentViewController.swift
//
// Created by AppleBetas on 2017-01-24.
// Copyright © 2017 AppleBetas. All rights reserved.
//
import UIKit
extension UIViewController {
@AppleBetas
AppleBetas / API.swift
Last active August 26, 2022 11:41
API.swift - A dead simple drop-in URLRequest wrapper for making easy API requests in Swift.
//
// API.swift
//
// Created by AppleBetas on 2017-01-15.
// Copyright © 2017 AppleBetas. All rights reserved.
//
import Foundation
class API {
@AppleBetas
AppleBetas / WatchInfo.swift
Last active February 24, 2023 05:51
WatchInfo.swift - Quickly get connected Apple Watch and installed Watch app state
//
// WatchInfo.swift
//
// Created by AppleBetas on 2016-12-10.
// Copyright © 2016 AppleBetas. All rights reserved.
//
import Foundation
import WatchConnectivity
@AppleBetas
AppleBetas / Netflix PIP Bookmarklet.js
Last active July 6, 2018 16:00
Netflix PIP Bookmarklet - Paste this into a Safari bookmarklet, and enjoy PIP Netflix!
// NETFLIX PIP BOOKMARKLET
// Paste the following into a bookmarklet, and from the Safari Develop menu, check "Allow JavaScript from Smart Search Field". Whenever you open this bookmarklet with a Netflix video playing, it will pop into Picture in Picture.
// Some accounts have different UIs for some reason so use the one that matches yours
// New UI:
javascript:document.querySelector(".NFPlayer > .video-container > div > video").webkitSetPresentationMode("picture-in-picture");
// Old UI:
javascript:document.querySelector(".player-video-wrapper video").webkitSetPresentationMode("picture-in-picture");
@AppleBetas
AppleBetas / Randoms.swift
Created November 19, 2016 21:05
Randoms.swift - Random helper methods for Int, Double, Float, Dictionaries, and Arrays
//
// Randoms.swift
//
// Created by AppleBetas on 2016-02-21.
// Copyright © 2016 AppleBetas. All rights reserved.
//
import Foundation
extension Array {
@AppleBetas
AppleBetas / NSAlert+QuickAlert.swift
Last active February 7, 2019 23:11
NSAlert+QuickAlert.swift - A Swift NSAlert extension to quickly show alerts (macOS)
//
// NSAlert+QuickAlert.swift
//
// Created by AppleBetas on 2016-10-24.
// Copyright © 2016 AppleBetas. All rights reserved.
//
import Cocoa
extension NSAlert {