Tech

Raspberry Pi OS – Install network manager

Posted on

sudo apt update sudo apt install network-manager network-manager-gnome openvpn openvpn-systemd-resolved network-manager-openvpn network-manager-openvpn-gnome sudo apt purge openresolv dhcpcd5 sudo nano /etc/NetworkManager/NetworkManager.conf     [main]     plugins=ifupdown,keyfile     dhcp=internal     [ifupdown]     managed=true     sudo nano /etc/nsswitch.conf     change this line     hosts:          files mdns4_minimal [NOTFOUND=return] […]

Tech

Changing system date from Terminal – macOS recovery

Posted on

When you’re booting your Mac from the recovery partition and are planning to reinstall OS X, you might be met by the following message: An error occurred while preparing the installation. Try running again This is normally the signing on the installer has expired. You need to set the system clock back to when the […]

Tech

Building XCA on macOS from source

Posted on

brew install pkg-config autoconf automake openssl qt libtool mkdir ~/src cd ~/src git clone https://github.com/chris2511/xca.git cd xca ./bootstrap mkdir build && cd build ../configure –prefix=/tmp/xca –with-openssl=/usr/local/opt/openssl –with-qt=/usr/local/Cellar/qt/5.13.1/ replace in Makefile (near bottom):     – -codesign –force –deep –signature-size=96000 -s "Christian Hohnstaedt" $(DMGSTAGE)/xca.app –timestamp     + -codesign –force –deep –signature-size=96000 -s "YOUR SIGNING IDENTITY" […]

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 […]