Download a PDF of my slides and notes
Example code from my MacAdmins Conference at Penn State 2024 presentation.
Download a PDF of my slides and notes
Example code from my MacAdmins Conference at Penn State 2024 presentation.
| #!/usr/bin/env bash | |
| sudo hdiutil create -o /tmp/Monterey -size 16g -volname Monterey -layout SPUD -fs HFS+J | |
| sudo hdiutil attach /tmp/Monterey.dmg -noverify -mountpoint /Volumes/Monterey | |
| sudo /Applications/Install\ macOS\ Monterey.app/Contents/Resources/createinstallmedia --volume /Volumes/Monterey --nointeraction | |
| hdiutil eject -force /Volumes/Install\ macOS\ Monterey | |
| hdiutil convert /tmp/Monterey.dmg -format UDTO -o ~/Downloads/Monterey | |
| mv -v ~/Downloads/Monterey.cdr ~/Downloads/Monterey.iso | |
| sudo rm -fv /tmp/Monterey.dmg |
» sudo systemctl daemon-reload
System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down
==============================================
Edit*
/etc/wsl.conf with any editor:A compile-time 4-Bit Virtual Machine implemented in TypeScript's type system. Capable of running a sample 'FizzBuzz' program.
Syntax emits zero JavaScript.
type RESULT = VM<
[
["push", N_1], // 1
["push", False], // 2
["peek", _], // 3| { | |
| "registry": "https://registry.bower.io" | |
| } |
| # 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 |
| #!/usr/bin/env perl | |
| # Author: philsmd (for hashcat) | |
| # License: public domain | |
| # Date: January 2017 | |
| use strict; | |
| use warnings; | |
| use Crypt::PBKDF2; |
| #!/usr/bin/python | |
| #-------------------------------------------------------------------------------------------------- | |
| #-- bigfixPkgCustomzer | |
| #-------------------------------------------------------------------------------------------------- | |
| # Program : bigfixPkgCustomzer | |
| # To Complie : n/a | |
| # | |
| # Purpose : | |
| # | |
| # Called By : |
| #region Step #1 (optional): Salvaging of drivers | |
| # I had to manually install a disk and network driver the last time I installed Nano Server. | |
| # I saved my previous WIM file and exported the installed drivers using the Dism cmdlets. | |
| # These paths are specific to my system. | |
| # This was my old Nano Server TP5 image. | |
| $NanoTP5ImagePath = 'C:\Users\Matt\Desktop\Temp\NanoTP5Setup\NanoServerBin\NanoServer.wim' | |
| $WimTempMountDir = 'C:\Users\Matt\Desktop\TempMountDir' | |
| $ExportedDriverDir = 'C:\Users\Matt\Desktop\ExportedDrivers' |