Skip to content

Instantly share code, notes, and snippets.

View twocanoes's full-sized avatar

Twocanoes Software, Inc twocanoes

View GitHub Profile
#!/usr/bin/env bash
#Thanks to Craig Hair for crafting this magic.
ARRAY=()
ARRAY=( "0:0"
"1:Grey"
"2:Space Grey"
"3:Yellow"
"4:Green"
"5:Blue"
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).
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) = /
#include <HID-Project.h>
#include <HID-Settings.h>
void setup() {
BootKeyboard.begin();
}
void loop() {
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
asdfasdf asdfasdfasd
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 April 26, 2012 17:03 — forked from macshome/gist:2500721
Super Simple MC Simulation on OS X 10.7. No error checking or anything like that…
#import <Foundation/Foundation.h>
#define ARC4RANDOM_MAX 0x100000000
int main(int argc, const char * argv[])
{
@autoreleasepool {