Skip to content

Instantly share code, notes, and snippets.

View networkextension's full-sized avatar

abigt networkextension

  • Star
View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.AppleNVMeEAN.allow</key>
<true/>
<key>com.apple.CommCenter.fine-grained</key>
<array>
<string>spi</string>
<string>identity</string>
fio --loops=5 --size=1000m --filename=/mnt/fs/fiotest.tmp --stonewall --ioengine=libaio --direct=1 --name=Seqread --bs=1m --rw=read --name=Seqwrite --bs=1m --rw=write --name=512Kread --bs=512k --rw=randread --name=512Kwrite --bs=512k --rw=randwrite --name=4kQD32read --bs=4k --iodepth=32 --rw=randread --name=4kQD32write --bs=4k --iodepth=32 --rw=randwrite^C
dev@w510:~$ fio --loops=5 --size=1000m --filename=fiotest.tmp --stonewall --ioengine=libaio --direct=1 \
> --name=Seqread --bs=1m --rw=read \
> --name=Seqwrite --bs=1m --rw=write \
> --name=512Kread --bs=512k --rw=randread \
> --name=512Kwrite --bs=512k --rw=randwrite \
> --name=4kQD32read --bs=4k --iodepth=32 --rw=randread \
> --name=4kQD32write --bs=4k --iodepth=32 --rw=randwrite
Seqread: (g=0): rw=read, bs=(R) 1024KiB-1024KiB, (W) 1024KiB-1024KiB, (T) 1024KiB-1024KiB, ioengine=libaio, iodepth=1
Seqwrite: (g=1): rw=write, bs=(R) 1024KiB-1024KiB, (W) 1024KiB-1024KiB, (T) 1024KiB-1024KiB, ioengine=libaio, iodepth=1
3bbc3afa7664ae1b0dd533cae5952dfc
struct timeval boottime;
int mib[2] = (CTL_KERN, KERN_BOOTTIME};
size_ t size = sizeof (boottime);
sysctl(mib, 2, &boottime, &size, NULL, 0) ;
NSLog (@"boottime: %ld.%ld", boottime.tv_sec, boottime.tv_usec): A Format specifies type 'long' but
NSLog (@"boottime: %1ld", *(1ong*) (0x0000000FFFFFC0A0)) ;
rm: AssetsV2: is a directory
rm: can't remove 'AssetsV2/com_apple_MobileAsset_SoftwareUpdateDocumentation/com_apple_MobileAsset_SoftwareUpdateDocumentation.xml': Operation not permitted
rm: can't remove 'AssetsV2/com_apple_MobileAsset_SoftwareUpdateDocumentation/ba86717adfd849dea8b7028127b771373f7aae84.asset': Operation not permitted
rm: can't remove 'AssetsV2/com_apple_MobileAsset_SoftwareUpdateDocumentation': Operation not permitted
rm: can't remove 'AssetsV2/com_apple_MobileAsset_SoftwareUpdate/com_apple_MobileAsset_SoftwareUpdate.xml': Operation not permitted
rm: can't remove 'AssetsV2/com_apple_MobileAsset_SoftwareUpdate': Operation not permitted
rm: can't remove 'AssetsV2/SplunkRecords/SplunkRetry': Permission denied
rm: can't remove 'AssetsV2/SplunkRecords': Directory not empty
rm: can't remove 'AssetsV2': Directory not empty
ld(1) General Commands Manual ld(1)
NAME
ld – linker
SYNOPSIS
ld files... [options] [-o outputfile]
DESCRIPTION
The ld command combines several object files and libraries, resolves
TCSENDBREAK(3) Library Functions Manual TCSENDBREAK(3)
NAME
tcdrain, tcflow, tcflush, tcsendbreak – line control functions
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <termios.h>
@networkextension
networkextension / gestalt_query.plist
Created March 3, 2022 02:50
gestalt_query ent 15.2
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.AppleNVMeEAN.allow</key>
<true/>
<key>com.apple.CommCenter.fine-grained</key>
<array>
<string>spi</string>
<string>identity</string>
@networkextension
networkextension / memread.txt
Created February 28, 2022 08:51
Read from the memory of the current target process.
(lldb) help x
Read from the memory of the current target process.
Syntax: x <cmd-options> <address-expression> [<address-expression>]
Command Options Usage:
x [-r] [-f <format>] [-c <count>] [-G <gdb-format>] [-s <byte-size>] [-l <number-per-line>] [-o <filename>] <address-expression> [<address-expression>]
x [-br] [-f <format>] [-c <count>] [-s <byte-size>] [-o <filename>] <address-expression> [<address-expression>]
x [-AFLORTr] -t <name> [-f <format>] [-c <count>] [-G <gdb-format>] [-E <count>] [-o <filename>] [-d <none>] [-S <boolean>] [-D <count>] [-P <count>] [-Y[<count>]] [-V <boolean>] [-Z <count>] <address-expression> [<address-expression>]
x -t <name> [-x <source-language>] <address-expression> [<address-expression>]
@networkextension
networkextension / sysreg_iboot
Created February 28, 2022 08:21
sysreg_iboot
19c0f2868 UNKNOWN SYSREG S1_7_c14_c13_7
19c0fa634 UNKNOWN SYSREG S2_6_c5_c3_0
19c109af4 UNKNOWN SYSREG S3_2_c6_c12_3
19c115b78 UNKNOWN SYSREG S3_3_c3_c5_3
19c11f6ec UNKNOWN SYSREG S2_2_c10_c0_1
19c120b00 UNKNOWN SYSREG S2_1_c3_c5_4
19c122fc0 UNKNOWN SYSREG S2_7_c6_c3_4
19c12c854 UNKNOWN SYSREG S2_1_c4_c6_4
19c13c934 UNKNOWN SYSREG S2_1_c7_c6_0