Skip to content

Instantly share code, notes, and snippets.

View baiyunping333's full-sized avatar

tony eve baiyunping333

  • guangzhou
View GitHub Profile
@baiyunping333
baiyunping333 / .Cloud.md
Created November 27, 2024 04:04 — forked from imba-tjd/.Cloud.md
☁️ 一些免费的云资源

  • IaaS指提供系统(可以自己选)或者储存空间之类的硬件,软件要自己手动装。PaaS提供语言环境和框架(可以自己选)。SaaS只能使用开发好的软件(卖软件本身,如税务会计、表格文字)。BaaS一般类似于非关系数据库,但各家不通用
  • 云服务的特点:零前期成本&按需付费&弹性(类似于租,可随时多加、退掉;但没有残值)、高可用(放在机房中,不同AZ间水电隔离)

其他人的集合

@baiyunping333
baiyunping333 / arm64_sysregs_ios.py
Created January 10, 2024 17:24 — forked from bazad/arm64_sysregs_ios.py
Label iOS arm64 system registers in IDA Pro
#
# arm64_sysregs_ios.py
# Brandon Azad
#
# Based on https://github.com/gdelugre/ida-arm-system-highlight by Guillaume Delugre.
#
import idautils
import idc
@baiyunping333
baiyunping333 / autowire-resttemplate.md
Created May 23, 2023 07:45 — forked from RealDeanZhao/autowire-resttemplate.md
How to autowire RestTemplate using annotations

From StackOverflow

Errors you'll see if a RestTemplate isn't defined

Consider defining a bean of type 'org.springframework.web.client.RestTemplate' in your configuration.

or

No qualifying bean of type

@baiyunping333
baiyunping333 / nsurlsession.objc
Created March 6, 2023 18:55 — forked from Shosta/nsurlsession.objc
NSURLSession use in Objective-C with Delegate or with Blocks
- (void)downloadSomethingWithoutDelegate{
NSURL *url = [NSURL URLWithString:@"https://vignette.wikia.nocookie.net/vsbattles/images/4/4a/Askeladd.jpg"];
NSURLSessionDownloadTask *downloadTask = [[NSURLSession sharedSession] downloadTaskWithURL:url completionHandler:^(NSURL *location, NSURLResponse *response, NSError *error) {
// 4
downloadedImage = [UIImage imageWithData:[NSData dataWithContentsOfURL:location]];
}];
//3
//[downloadTask resume];
@baiyunping333
baiyunping333 / FWEncryptorAES.h
Created March 6, 2023 14:41 — forked from FrankWu100/FWEncryptorAES.h
AES Encryption/Decryption on Objective-C
//
// FWEncryptorAES.h
// AES Encryptor
//
// Created by FrankWu on 2013/12/20.
// Copyright (c) 2013年 FrankWu. All rights reserved.
//
#import <Foundation/Foundation.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdlib.h>
#include <blkid/blkid.h> /* Linux, requires libblkid-dev on Debian/Ubuntu */
/* Small program to print the device name that a file resides on.
Uses stat to get the device id then devname or blkid_devno_to_devname
to convert the dev id to a device name */
int main(int argc, char **argv)
@baiyunping333
baiyunping333 / Apple_mobile_device_types.txt
Created February 27, 2023 10:21 — forked from adamawolf/Apple_mobile_device_types.txt
List of Apple's mobile device codes types a.k.a. machine ids (e.g. `iPhone1,1`, `Watch1,1`, etc.) and their matching product names
i386 : iPhone Simulator
x86_64 : iPhone Simulator
arm64 : iPhone Simulator
iPhone1,1 : iPhone
iPhone1,2 : iPhone 3G
iPhone2,1 : iPhone 3GS
iPhone3,1 : iPhone 4
iPhone3,2 : iPhone 4 GSM Rev A
iPhone3,3 : iPhone 4 CDMA
iPhone4,1 : iPhone 4S
@baiyunping333
baiyunping333 / iOS 越狱检查.m
Created February 14, 2023 06:23 — forked from TimorYang/iOS 越狱检查.m
iOS 越狱检查
.h 文件
#import <Foundation/Foundation.h>
@interface JailbreakDetectTool : NSObject
/**
* 检查当前设备是否已经越狱。
*/
+ (BOOL)detectCurrentDeviceIsJailbroken;
@end
.m 文件
#import "JailbreakDetectTool.h"
@import Darwin;
@import Foundation;
@import MachO;
#import <mach-o/fixup-chains.h>
// you'll need helpers.m from Ian Beer's write_no_write and vm_unaligned_copy_switch_race.m from
// WDBFontOverwrite
// Also, set an NSAppleMusicUsageDescription in Info.plist (can be anything)
// Please don't call this code on iOS 14 or below
// (This temporarily overwrites tccd, and on iOS 14 and above changes do not revert on reboot)
@baiyunping333
baiyunping333 / .gitignore
Created June 14, 2020 17:03 — forked from TooTallNate/.gitignore
low-level objc runtime apis
*
!*.m
!Makefile