Skip to content

Instantly share code, notes, and snippets.

@action121
action121 / MyApp.swift
Created September 19, 2024 06:32 — forked from florentmorin/MyApp.swift
Track scenes state on SwiftUI with visionOS
import SwiftUI
/// Main Window content
private struct MainView: View {
@Environment(\.appState) private var appState
@Environment(\.openWindow) private var openWindow
var body: some View {
NavigationStack {
VStack {
@action121
action121 / srb.py
Created August 22, 2022 02:29 — forked from annidy/srb.py
ASLR修正lldb脚本
#!/usr/bin/python
#coding:utf-8
import lldb
import commands
import optparse
import shlex
import re
# 获取ASLR偏移地址
def get_ASLR():
# 获取'image list -o'命令的返回结果
@action121
action121 / xcode-swift-vers
Created March 18, 2022 12:47 — forked from yamaya/xcode-swift-vers
Xcode swift version record
# Xcode 6.2 (6C131e)
Swift version 1.1 (swift-600.0.57.4)
Target: x86_64-apple-darwin14.1.0
# Xcode 6.3 (6D570)
Apple Swift version 1.2 (swiftlang-602.0.49.3 clang-clang-602.0.49)
Target: x86_64-apple-darwin14.1.0
# Xcode 6.3.1 (6D1002)
Apple Swift version 1.2 (swiftlang-602.0.49.6 clang-602.0.49)
@action121
action121 / DebuggingOverlay.m
Created May 8, 2020 10:19 — forked from ian-mcdowell/DebuggingOverlay.m
UIDebuggingInformationOverlay for iOS 10, 11, and 12
#import <objc/runtime.h>
@interface DebuggingOverlay: NSObject
@end
@implementation DebuggingOverlay
+ (void)toggleOverlay {
id debugInfoClass = NSClassFromString(@"UIDebuggingInformationOverlay");
@action121
action121 / MOWTextField.h
Created April 22, 2018 15:40 — forked from sfsam/MOWTextField.h
MOWTextField is an NSTextField subclass which lets you specify an alternate short string. The short string will be used if the frame is too short for the normal string value.
//
// MOWTextField.h
//
//
// Created by Sanjay Madan on 03/21/13.
// Copyright (c) 2013 mowglii.com. All rights reserved.
//
#import <Cocoa/Cocoa.h>