Skip to content

Instantly share code, notes, and snippets.

This is how to bypass MDM/DEP on a M2 Macbook Pro with Ventura:

  1. Blocked iprofiles.apple.com, mdmenrollment.apple.com and deviceenrollment.apple.com at the router.
  2. On first install, skip internet connection
  3. On first login (still without network), open Terminal.app and update /etc/hosts with the following:
echo 0.0.0.0 iprofiles.apple.com | sudo tee -a /etc/hosts
echo 0.0.0.0 mdmenrollment.apple.com | sudo tee -a /etc/hosts
echo 0.0.0.0 deviceenrollment.apple.com | sudo tee -a /etc/hosts
@rkage
rkage / haproxy.cfg
Created May 5, 2021 00:38
ha-control-plane
global
log stdout format raw local0
user haproxy
group haproxy
daemon
stats socket /var/run/haproxy.sock
defaults
log global
mode http
@rkage
rkage / docker-compose.yml
Last active September 5, 2017 21:41
Download Management docker-compose.yml
version: '2'
services:
transmission:
image: haugene/transmission-openvpn
container_name: transmission
cap_add:
- net_admin
devices:
- /dev/net/tun
volumes:

Launching an Azure VM for your Controller

Log in to your Azure Subscription using az login command. Follow the onscreen instructions

$ az login
To sign in, use a web browser to open the page https://aka.ms/devicelogin and enter the code <random code> to authenticate.

We'll need to create a resource group for the UniFi Controller which I named Unifi-Controller-RG in the canadacentral region.

$ az group create --name UniFi-Controller-RG --location canadacentral

Location Name

[Desktop Entry]
Name=WeeChat
Icon=weechat
#Exec=/usr/bin/terminology -s -B -g 105x20+50+775 -n org.gnome.Terminology-WeeChat -e /usr/bin/weechat
Exec=/usr/bin/gnome-terminal --app-id org.gnome.Terminal-WeeChat --geometry=+25+715 --profile=WeeChat
Terminal=false
StartupWMClass=org.gnome.Terminal-WeeChat
Type=Application
# Install ARCH Linux with UEFI and (optionally) encrypted file-system
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
# Integrate tips from here https://eatpeppershothot.blogspot.ca/2016/12/kernel-boot-parameters-for-grub-and.html
# Create GPT disk label and create partitions
parted --script /dev/sdX \
mklabel gpt \
mkpart ESP fat32 1MiB 100MiB \
set 1 boot on \