- MacOS Sierra 10.12.5
- MacBook Pro (Retina, 13-inch, Late 2012)
- nRF52-DK (PCA10040)
- Install GCC
| substitutions: | |
| name: esphome-ledaluc2 | |
| friendly_name: ESPHome LEDA LUC2 | |
| esphome: | |
| name: ${name} | |
| friendly_name: ${friendly_name} | |
| min_version: 2023.6.0 # Use a stable ESPHome version for compatibility | |
| name_add_mac_suffix: false # Prevent adding MAC suffix to the device name | |
| project: |
| arm_clean_dcache_line() weirdness | |
| 27 Dec 2020 12:12 MSK | |
| At some point of my iPhone 5 SecureROM research, I've *decided* to REDACTED. After the process I was quite tired, so I was just looking at different functions in the ROM for no particular reason. One of the functions was platform_get_boot_trampoline(): | |
| void *platform_get_boot_trampoline() | |
| { | |
| #define TRAMPOLINE_SIZE 0x40 |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <libproc.h> | |
| #include <mach/mach.h> | |
| bool | |
| has_modifications(struct task_extmod_info *info) | |
| { | |
| if ((info->extmod_statistics.thread_creation_count > 0) || | |
| (info->extmod_statistics.thread_set_state_count > 0)) { |
| import objc | |
| from Foundation import NSBundle | |
| CG_bundle = NSBundle.bundleWithIdentifier_('com.apple.CoreGraphics') | |
| functions = [("CGSSessionCopyAllSessionProperties", b"@"),] | |
| objc.loadBundleFunctions(CG_bundle, globals(), functions) | |
| # example usage: graphical_security_sessions = CGSSessionCopyAllSessionProperties() |
This is a quick-and-dirty guide to setting up a Raspberry Pi as a "router on a stick" to PrivateInternetAccess VPN.
Install Raspbian Jessie (2016-05-27-raspbian-jessie.img) to your Pi's sdcard.
Use the Raspberry Pi Configuration tool or sudo raspi-config to:
| #!/usr/bin/python | |
| # fix-xcode | |
| # Rob Napier <robnapier@gmail.com> | |
| # Script to link in all your old SDKs every time you upgrade Xcode | |
| # Create a directory called /SDKs (or modify source_path). | |
| # Under it, put all the platform directories: | |
| # MacOSX.platform iPhoneOS.platform iPhoneSimulator.platform | |
| # Under those, store the SDKs: |