Skip to content

Instantly share code, notes, and snippets.


Twocanoes Software, Inc twocanoes

View GitHub Profile
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).
View gist:0e30277dbebc7e973ab79c39d010cf55
#include <HID-Project.h>
#include <HID-Settings.h>
void setup() {
void loop() {
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:16429199c66444a90dc8b7979b6fded8
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:9245642
mkdir /tmp/macs; jot 30 1985|xargs -L 1 -I YEAR bash -c 'curl -o /tmp/macs/YEAR.jpg;open /tmp/macs/YEAR.jpg'