Skip to content

Instantly share code, notes, and snippets.

View s1ntoneli's full-sized avatar
🤣
wow! wondering!

Sintone s1ntoneli

🤣
wow! wondering!
View GitHub Profile
@xSke
xSke / acnh_info.py
Created April 10, 2020 20:50
Script for obtaining AC:NH island/profile info by Nintendo account login
import base64
import datetime
import hashlib
import json
import random
import re
import requests
import secrets
import string
import sys
@Treeki
Treeki / TurnipPrices.cpp
Last active May 25, 2025 06:02
AC:NH turnip price calculator
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
// munged from https://github.com/simontime/Resead
namespace sead
{
class Random
{

Note

Apple will reject apps that are using private url schemes (Ugh, Apple....) if they are pretty much obvius. Some apps are rejected and others are not, so, be aware of this issue before implementing any of those URL's in your app as a feature.

Updates

  • [UPDATE 4] iOS 10 update: apparently settings now can be reached using App-Pref instead of prefs
  • [UPDATE 3] For now you just can use url schemes to open your apps's settings with Swift 3.0 (Xcode 8). I'll keep you informed when OS preferences can be reached
  • [UPDATE 2] The openURL() method of UIApplication is now deprecated. You should use application(_:open:options:) instead
  • [UPDATE 1] Not yet tested in iOS 10. It will fail because of policies changes in URL scheme handling.
@xzzz9097
xzzz9097 / classdump.m
Created December 3, 2016 21:03
DFRFoundation.framework dumps
//
// File: /System/Library/PrivateFrameworks/DFRFoundation.framework/Versions/A/DFRFoundation
// UUID: C3548955-29E4-3B77-BB2D-687FDA287B87
//
// Arch: x86_64
// Current version: 104.2.0
// Compatibility version: 1.0.0
// Source version: 104.2.0.0.0
// Minimum Mac OS X version: 10.12.0
// SDK version: 10.12.0
@vitorgalvao
vitorgalvao / Get Title and URL.applescript
Last active December 10, 2024 01:34
AppleScript and JavaScript for Automation to get frontmost tab’s url and title of various browsers.
-- AppleScript --
-- This example is meant as a simple starting point to show how to get the information in the simplest available way.
-- Keep in mind that when asking for a `return` after another, only the first one will be output.
-- This method is as good as its JXA counterpart.
-- Webkit variants include "Safari", "Webkit", "Orion".
-- Specific editions are valid, including "Safari Technology Preview".
-- "Safari" Example:
tell application "Safari" to return name of front document
@0xced
0xced / CopyLaunchedApplicationsInFrontToBackOrder.c
Created August 7, 2009 14:06
Get an array of running applications ordered by last use
#import <Carbon/Carbon.h>
#import <dlfcn.h>
/*
* Returns an array of CFDictionaryRef types, each of which contains information about one of the processes.
* The processes are ordered in front to back, i.e. in the same order they appear when typing command + tab, from left to right.
* See the ProcessInformationCopyDictionary function documentation for the keys used in the dictionaries.
* If something goes wrong, then this function returns NULL.
*/
CFArrayRef CopyLaunchedApplicationsInFrontToBackOrder(void)