This will be an ongoing series of stuff I learn or find interesting and helpful lambda: This just opened up a whole new world!
[This is a work in progress and will be added to as I go!] I have been using Docker to containerise some small services that don’t need their own VMs but if I don’t touch them for a week or so, I forget the commands to manage them!
Every time I write a Bash script that loops through something, I test printing out the variable and it always splits the spaces across new lines so an app named ‘jHelper GUI 1.0.app’ ends up as: jHelper GUI 1.0.app The thing I keep forgetting to sort this is IFS!
Instead of writing out a large block for an if / elif such as… if [[ $foo == $bar ]]; then echo "yes" else echo "no fi a much shorter version can be used instead: [[ $foo == $bar ]] && echo "yes" || echo "no" A simple [[ condition ]] && positive result || negative result
Requirements:VFUSE: https://github.com/chilcote/vfuse/releasesAutoDMG: https://github.com/MagerValp/AutoDMG/releasesVMWare FusionBootable DMG of macOSSerial number and model identifier of a machine that will DEP Build a bootable DMG using AutoDMGUse the following vfuse commands to create the .vmwarevm sudo /usr/local/vfuse/bin/vfuse -i [path/to/DMG] -n "[name of VM Machine]" -s [DEP Serial] --hw-model [model identifier] sudo /usr/local/vfuse/bin/vfuse -i /Users/monodata/Documents/_IMAGES/10.13/macOS-10.13.6-17G65.apfs.dmg -n "macOS-10.13.6-DEP" -s C0202XHG0D6T --hw-model MacBookPro14,3
Had an issue recently with some users that couldnt unlock their JAMF MDM managed MBP using Touch ID.
Got caught out not checking if a variable had been passed to a script that then used it to delete an .app.