- ]c - next difference
- [c - previous difference
- Ctrl+w+w - switch windows
- do - diff obtain
- dp - diff put
- zo - open folded text
#! /bin/bash | |
# Simple Utility Script for allowing debug of hardened macOS apps. | |
# This is useful mostly for plug-in developer that would like keep developing without turning SIP off. | |
# Credit for idea goes to (McMartin): https://forum.juce.com/t/apple-gatekeeper-notarised-distributables/29952/57?u=ttg | |
# Update 2022-03-10: Based on Fabian's feedback, add capability to inject DYLD for sanitizers. | |
# | |
# Please note: | |
# - Modern Logic (on M1s) uses `AUHostingService` which resides within the system thus not patchable and REQUIRES to turn-off SIP. | |
# - Some hosts uses separate plug-in scanning or sandboxing. | |
# if that's the case, it's required to patch those (if needed) and attach debugger to them instead. |
There are some issues with LIFX lights reliability that can be fixed on home routers by using Open Source firmware such as OpenWrt.
As I've recently observed on my network, the LIFX bulbs often don't respond to the AP frequently enough to avoid being disassociated for inactivity (see notes later about ap_max_inactivity
and max_listen_interval
). Another issue common to OpenWrt or any Linux-based router that uses hostapd
is that disassoc_low_ack=1
is the default setting unless you turn it off explicitly with disassoc_low_ack=0
.
The comments in the default example hostapd.conf
explain what this setting does:
# Disassociate stations based on excessive transmission failures or other
May 17 13:42:40 examplehost kernel: usb 1-3: new full-speed USB device number 12 using xhci_hcd | |
May 17 13:42:40 examplehost kernel: usb 1-3: New USB device found, idVendor=0403, idProduct=6015, bcdDevice=10.00 | |
May 17 13:42:40 examplehost kernel: usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 | |
May 17 13:42:40 examplehost kernel: usb 1-3: Product: Infinite Noise TRNG | |
May 17 13:42:40 examplehost kernel: usb 1-3: Manufacturer: 13-37.org | |
May 17 13:42:40 examplehost kernel: usb 1-3: SerialNumber: 1337-XXXXXXXX | |
May 17 13:42:40 examplehost kernel: ftdi_sio 1-3:1.0: FTDI USB Serial Device converter detected | |
May 17 13:42:40 examplehost kernel: usb 1-3: Detected FT-X | |
May 17 13:42:40 examplehost kernel: usb 1-3: FTDI USB Serial Device converter now attached to ttyUSB0 | |
May 17 13:42:40 examplehost mtp-probe[4012024]: checking bus 1, device 12: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-3" |
BdsDxe: failed to start Boot0008 "EFI Internal Shell" from Fv(7CB8BDC9-F8EB-4F34-AAEA-3EE4AF6516A1)/FvFile(7C04A583-9E3E-4F1C-AD65-E05268D0B4D1): Invalid Parameter | |
BdsDxe: loading Boot0003 "UEFI QEMU HARDDISK QM00021 " from PciRoot(0x0)/Pci(0x6,0x0)/Sata(0x4,0xFFFF,0x0) | |
BdsDxe: starting Boot0003 "UEFI QEMU HARDDISK QM00021 " from PciRoot(0x0)/Pci(0x6,0x0)/Sata(0x4,0xFFFF,0x0) | |
OCC: No compatible mode for 1344x840@0 (max: 0) resolution | |
OC: Changed resolution to 1344x840@0 (max: 0, force: 0) from 1344x840@32 - Not Found | |
#[EB|LOG:EXITBS:END] _ | |
#[EB.BST.FBS|-] | |
#[EB|B:BOOT] | |
#[EB|LOG:HANDOFF TO XNU] _ | |
======== End of efiboot serial output. ======== |
Mar 01 06:47:44 examplehost.internal kernel: 00000040: 3a 35 3e 14 bc 41 1a d2 ab 75 8b cc 9f 6f b5 74 :5>..A...u...o.t | |
Mar 01 06:47:44 examplehost.internal kernel: 00000050: 65 39 12 fa 5c b0 6c bc 15 7d 59 74 88 54 96 f2 e9..\.l..}Yt.T.. | |
Mar 01 06:47:44 examplehost.internal kernel: 00000060: 69 f2 38 59 ec 1f 5a 42 31 01 8f 1f 93 a3 45 81 i.8Y..ZB1.....E. | |
Mar 01 06:47:44 examplehost.internal kernel: 00000070: 3a d3 96 3a d8 fb 97 97 53 e9 c6 1d 6a 62 07 66 :..:....S...jb.f | |
Mar 01 06:47:44 examplehost.internal kernel: XFS (md0): Metadata corruption detected at xfs_buf_ioend+0x1a0/0x5e0 [xfs], xfs_inode block 0x4d3d1d80 xfs_inode_buf_verify | |
Mar 01 06:47:44 examplehost.internal kernel: XFS (md0): Unmount and run xfs_repair | |
Mar 01 06:47:44 examplehost.internal kernel: XFS (md0): First 128 bytes of corrupted metadata buffer: | |
Mar 01 06:47:44 examplehost.internal kernel: 00000000: 41 06 81 bb 31 15 ee 55 d2 fc e7 32 d7 ac 0a 5d A...1..U...2...] | |
Mar 01 06:47:44 examplehost.internal kernel: 00000010: da ee db 3 |
$ cat /proc/mdstat | |
Personalities : [raid1] [raid6] [raid5] [raid4] | |
md0 : active raid6 sdf1[2] sda1[1] sdb[0] nvme0n1p6[3] nvme1n1p6[4] | |
5860540224 blocks level 6, 64k chunk, algorithm 2 [5/5] [UUUUU] | |
unused devices: <none> | |
$ sudo mdadm --detail /dev/md0 | |
/dev/md0: | |
Version : 0.90 |
# Old checksums | |
$ sha256sum ~/Downloads/pcloud /usr/bin/pcloud | |
209cee76dcd39b776bb6bdb7e8309ef41c739f34c3301cbe0c9c58420c302e40 /home/exampleuser/Downloads/pcloud | |
209cee76dcd39b776bb6bdb7e8309ef41c739f34c3301cbe0c9c58420c302e40 /usr/bin/pcloud | |
$ ls -lA ~/.config/pcloud | |
total 72 | |
drwx------ 3 exampleuser exampleuser 4096 Feb 28 04:23 blob_storage | |
drwx------ 3 exampleuser exampleuser 12288 Nov 26 18:10 Cache | |
-rw------- 1 exampleuser exampleuser 20480 Nov 26 18:10 Cookies |
execve("/usr/bin/pcloud", ["/usr/bin/pcloud"], 0x7ffec7b79740 /* 158 vars */) = 0 | |
brk(NULL) = 0xf2c2000 | |
brk(0xf2c2d80) = 0xf2c2d80 | |
arch_prctl(ARCH_SET_FS, 0xf2c2400) = 0 | |
set_tid_address(0xf2c26d0) = 2634759 | |
set_robust_list(0xf2c26e0, 24) = 0 | |
rseq(0xf2c2320, 0x20, 0, 0x53053053) = 0 | |
prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 | |
readlinkat(AT_FDCWD, "/proc/self/exe", "/usr/lib/appimagelauncher/binfmt"..., 4096) = 44 | |
getrandom("\xa9\x0c\x3d\xc0\x56\xc6\x70\x73", 8, GRND_NONBLOCK) = 8 |
When adding and removing devices to a QEMU VM created from OSX-KVM
, I
encountered some device problems.
While tinkering and fiddling with adding and removing different QEMU devices to
the VM, the order of -device
flags passed caused PCI addresses to keep
changing. This, in turn caused keyboard and mouse support to stop working for
me, until I found out what the problem was.