Enroll macOS Beta Seed without profile installation
$ sudo /System/Library/PrivateFrameworks/Seeding.framework/Versions/A/Resources/seedutil
usage: seedutil enroll SEED_PROGRAM
seedutil unenroll
seedutil current
# Generate a BaseSystem.dmg with 10.13 Install Packages | |
hdiutil attach /Applications/Install\ macOS\ 10.13\ Beta.app/Contents/SharedSupport/InstallESD.dmg -noverify -mountpoint /Volumes/highsierra | |
hdiutil create -o /tmp/HighSierraBase.cdr -size 7316m -layout SPUD -fs HFS+J | |
hdiutil attach /tmp/HighSierraBase.cdr.dmg -noverify -mountpoint /Volumes/install_build | |
asr restore -source /Applications/Install\ macOS\ 10.13\ Beta.app/Contents/SharedSupport/BaseSystem.dmg -target /Volumes/install_build -noprompt -noverify -erase | |
cp -R /Volumes/highsierra/Packages /Volumes/OS\ X\ Base\ System/System/Installation | |
hdiutil detach /Volumes/OS\ X\ Base\ System/ | |
hdiutil detach /Volumes/highsierra/ | |
mv /tmp/HighSierraBase.cdr.dmg /tmp/BaseSystem.dmg |
Pull the VideoLAN Docker container and run it in interactive mode with bash:
(The -v ~/docker:/root/shared
maps /root/shared
in the container to ~/docker
on your machine to easily obtain the build results, so make sure ~/docker
exists.)
docker pull registry.videolan.org:5000/vlc-debian-win64
docker run -v ~/docker:/root/shared -it registry.videolan.org:5000/vlc-debian-win64 /bin/bash
#!/bin/bash | |
ROOT=output | |
CC=x86_64-linux-musl-g++ | |
CFLAGS=" | |
-nostdinc | |
-isystem $ROOT/x86_64-linux-musl/include/c++/7.2.0 | |
-isystem $ROOT/x86_64-linux-musl/include/c++/7.2.0/x86_64-linux-musl | |
-isystem $ROOT/x86_64-linux-musl/include/c++/7.2.0/backward | |
-isystem $ROOT/x86_64-linux-musl/include/ |
# these are reconstructed from a shell session without runnig them, so make | |
# sure you check that it's a sane thing to do before running it, I make no | |
# guarantees of fitness, and accept no liability. Run at your own risk. | |
sudo launchctl remove com.snap.SnapCameraRemover | |
rm -r ~/Library/Caches/Snap/ | |
rm -r ~/Library/Caches/com.snap.SnapCamera/ | |
rm -r ~/Library/Preferences/Snap/ | |
rm ~/Library/Preferences/com.snap.SnapCamera.plist | |
rm ~/Library/Preferences/com.snap.Snap\ Camera.plist | |
sudo rm -rf /Applications/Snap\ Camera.app/ |
# runs under Python 2 (yes, I know...) | |
# required modules: pip install unicorn pefile | |
# this code is made available under the MIT license, as follows: | |
# Copyright (c) 2018 Ash Wolf | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
- (void)moveToURL:(NSURL *)url completionHandler:(void (^ __nullable)(NSError * __nullable))completionHandler | |
{ | |
NSError *error = nil; | |
NSURL *adjustedURL = nil; | |
if (![[url pathExtension] isEqualToString:@"testextension"]) { | |
adjustedURL = [url URLByAppendingPathExtension:@"testextension"]; | |
} |
// call like "swift remote.swift" | |
import MediaPlayer | |
let centre = MPRemoteCommandCenter.shared() | |
let handler: (String) -> ((MPRemoteCommandEvent) -> (MPRemoteCommandHandlerStatus)) = { (name) in | |
return { (event) -> MPRemoteCommandHandlerStatus in | |
print("\(name)") | |
return .success | |
} |
// | |
// Debug.swift | |
// | |
// Created by Craig Hockenberry on 3/15/17. | |
// Updated by Craig Hockenberry on 2/20/24. | |
// Usage: | |
// | |
// SplineReticulationManager.swift: | |
// |