Tech

Boot to macOS Recovery in VMware Fusion 11

Posted on

I found the following three ways to boot to macOS recovery in VMware Fusion, sadly they don’t all work in version 11: Add macosguest.forceRecoveryModeInstall = “TRUE” to you .vmx file – however it doesn’t seem to work with APFS volumes Add bios.bootDelay = “5000” to your .vmx file and press CMD+R during boot – doesn’t […]

Tech

PHP TO GET CUSTOM PLAYLIST FROM XTREAM-CODES API

Posted on

Use the code below as simple reference to build your own custom playlist from your xtream-codes server. Change the $url and $port values with your main server domain and port values. <?php $url = "domain.com"; $port = 1234; $protocol = "http"; $pls_header = "#EXTM3U"; $json = json_decode(file_get_contents("{$protocol}://{$url}:{$port}/panel_api.php?username={$_GET[‘username’]}&password={$_GET[‘password’]}"), true); $link = "{$protocol}://{$json[‘server_info’][‘url’]}:{$json[‘server_info’][‘port’]}"; if(!isset($_GET[’type’]) || empty($_GET[’type’])){   […]

Tech

Resync mysql master and slave without master downtime

Posted on

On the Master server dump a backup of the database you want to resync mysqldump –skip-lock-tables –single-transaction –flush-logs –hex-blob –master-data=2 -q <<dbname>>  | gzip -c > ~/dump.sql.gz Move compress backup to Slave server scp ~/dump.sql.gz <<user>>@<<slave-server-ip>>:~/ On the Slave server decompress the backup gunzip ~/dump.sql.gz Get the Master Log Name and Position from the dump, […]

Tech

Setting up MySQL replication without the downtime

Posted on

I clearly don’t need to expound on the benefits of master-slave replication for your MySQL database. It’s simply a good idea; one nicety I looked forward to was the ability to run backups from the slave without impacting the performance of our production database. But the benefits abound. Most tutorials on master-slave replication use a […]

Tech

Deploying FileVault with a Configuration Profile

Posted on

This article will discuss deploying FileVault 2 via a Configuration Profile to managed Macs with Jamf Pro using either an Individual Recovery Key, an Institutional Recovery Key, or both together. Creating an Institutional Recovery Key Skip this section if you do not plan to deploy an Institutional Recovery Key. Jamf has excellent documentation on how […]

Tech

How to Accurately Calibrate Your 3D Printer

Posted on

One of the steepest learning curves when starting with 3D printing is learning how to calibrate all the motors accurately. The good news is that once you know how to calibrate one motor of the printer, the rest are pretty well the same. The following instructable shows you how to accurately calibrate your printer using […]

Tech

Jamf Pro – Database maintenance

Posted on

The JSS keeps every recon for every computer. It only needs the last one. In large estates this can be GB’s of data and can slowdown or stop upgrades. Heres how to clean the tables ########### # flush reports, keep newest reports for each computer only # count before select count(*) from reports; #make a […]

Tech

Ender 3 Flash firmware using a Mac

Posted on

Some notes on this process on the Mac To install the Ardunio IDE on the Mac download the Unified firmware from TH3D. Inside is a folder called MacOSX Arduino. Two zip files are present, arduino-1.8.5-macosx.zip and TH3DArduinoLibraries.zip First unzip the arduino-1.8.5-macosx.zip and place the Arduino.app into /Applications Then unzip TH3DArduinoLibraries.zip. this will result in 3 […]

Tech

macOS 10.14 beta SUS URL

Posted on

https://swscan.apple.com/content/catalogs/others/index-10.14beta-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog.gz

Tech

Sorting an Array in Bash

Posted on

You don’t really need all that much code: IFS=$’\n’ sorted=($(sort <<<"${array[*]}")) unset IFS Supports whitespace in elements (as long as it’s not a newline), and works in Bash 3.x. e.g.: $ array=("a c" b f "3 5") $ IFS=$’\n’ sorted=($(sort <<<"${array[*]}")) $ printf "[%s]\n" "${sorted[@]}" [3 5] [a c] [b] [f] Note: @sorontar has pointed […]

Tech

Automotive Relays

Posted on

Terminal numbering convention The terminal numberings found on a relay body are taken from DIN 72552 which is a German automotive industry standard that has been widely adopted and allocates a numeric code to various types of electrical terminals found in vehicles. The terminals on the outside of a 4 or 5 pin mini relay […]

Tech

Set Mac wallpaper via CLI

Posted on

osascript -e ‘tell application "System Events" to set picture of (reference to current desktop) to "/Users/dsadmin/Desktop/nettools/.background_10134.jpg"’ or if you need variables osascript -e "tell application "System Events" to set picture of (reference to current desktop) to "$HOME/Desktop/nettools/.background_$swver.jpg"" escaping the quotes in the expression