Skip to content

Instantly share code, notes, and snippets.

Avatar

Twocanoes Software, Inc twocanoes

View GitHub Profile
View gist:9245642
mkdir /tmp/macs; jot 30 1985|xargs -L 1 -I YEAR bash -c 'curl -o /tmp/macs/YEAR.jpg https://www.apple.com/v/30-years/c/images/YEAR/product.jpg;open /tmp/macs/YEAR.jpg'
@twocanoes
twocanoes / gist:2500986
Created Apr 26, 2012 — forked from macshome/gist:2500721
Super Simple MC Simulation on OS X 10.7. No error checking or anything like that…
View gist:2500986
#import <Foundation/Foundation.h>
#define ARC4RANDOM_MAX 0x100000000
int main(int argc, const char * argv[])
{
@autoreleasepool {
View gist:16429199c66444a90dc8b7979b6fded8
AppRepository
D:PAI(A;;FA;;;S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464)(A;CIIO;GA;;;S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464)(A;;0x1301bf;;;SY)(A;OICIIO;GA;;;SY)(A;;0x1200a9;;;BA)(A;OICIIO;GXGR;;;BA)S:AI
AppRepository\1527c705-839a-4832-9118-54d4Bd6a0c89_10.0.15063.296_neutral_neutral_cw5n1h2txyewy.xml
D:AI(A;ID;FA;;;SY)(A;ID;0x1200a9;;;BA)
AppRepository\25217ad4-e4a8-4e47-b4d3-68f2c638cbc7_S-1-5-21-3026564168-2317131983-3543710268-1001_10.rslc
View gist:c9105c4b6363a28dcbd6ff7f0f8605e3
MacbookPro:winclone tperfitt$ sudo diskutil apfs updatePreboot /
Started APFS operation
UpdatePreboot: Commencing operation to update the Preboot Volume for Target Volume disk1s1 Macintosh HD
UpdatePreboot: The Target Volume's OpenDirectory (non-special kind) user count is 4 and the Recovery (any of 3 kinds) user count is 0
UpdatePreboot: There are OpenDirectory user(s) but no Recovery user(s)
UpdatePreboot: The above is an abort condition for some purposes but not UpdatePreboot; continuing
UpdatePreboot: No custom Open Directory path given
UpdatePreboot: Using GivenVolumeMountPointOrNilIfNotMounted for the MacOSSearchPath
UpdatePreboot: Using MacOSSearchPath's child dslocal path for the OpenDirectorySearchPath
UpdatePreboot: MacOS Search Path = (nil=NotMounted) = /
View gist:0e30277dbebc7e973ab79c39d010cf55
#include <HID-Project.h>
#include <HID-Settings.h>
void setup() {
BootKeyboard.begin();
}
void loop() {
View gist:c4ca5370419170ccc700fd4fae33e5c3
log show --style syslog --predicate 'process contains[cd] "Winclone"' --info --last 2d
(you can adjust the argument of "2d" from 2 days to other time periods that you want the log, like "10m" for the last 10 minutes or 3h for the last 3 hours).
You can’t perform that action at this time.