Skip to content

Instantly share code, notes, and snippets.

View developerinlondon's full-sized avatar
🙂
BizOps

DevOps Extraordinaire! developerinlondon

🙂
BizOps
View GitHub Profile
@developerinlondon
developerinlondon / useful-ansible-stuff
Created February 27, 2018 16:11
useful ansible stuff
ansible-playbook install-jenkins.yml --list-tasks
ansible file directory layout
ansible/inventory/
Production (group: dc1,dc2)
development
staging
group_vars/
all.yml
webservers/
secrets.yml

Disable Device Enrollment Notification on Mac.md

Restart the Mac in Recovery Mode by holding Comment-R during restart

Open Terminal in the recovery screen and type

csrutil disable

Disable Device Enrollment Program (DEP) notification on macOS Catalina.md

With full reinstall (recommended)

   a. Boot into recovery using command-R during reboot, wipe the harddrive using Disk Utility, and select reinstall macOS

   b. Initial installation will run for approximately 1 hour, and reboot once

   c. It will then show a remaining time of about 10-15 minutes

@developerinlondon
developerinlondon / gist:c5b0f05eaebd9ca2357edabbfa593a80
Created February 9, 2021 20:20
Big Sur Remove Device Enrollment
This works for macOS Big Sur to Disable MDM notifications
Restart in Recovery Mode Restart your Mac then hold down the Command & R keys together until you're in the Recovery Mode menu (Command+R)
Click on Utilities (top menu bar) then select: Startup Security Utility
A 3-choices popup appears: select (No security) (there is no confirmation button to press)
Restart again in Recovery Mode (Command+R)
Click on Utilities (top menu bar) then select Terminal
type in: mount then click enter/return
A list of things will show up once you enter in (mount) in Terminal Write down the disk associated with /Volumes/Macintosh HD (mine was /dev/disk2s5) Note: it's not "/", and it's not /Volumes/Macintosh HD - Data
Next, in Terminal, write: umount /Volumes/Macintosh\ HD
@developerinlondon
developerinlondon / SetBuildEnvVars.groovy
Created April 12, 2021 18:19 — forked from alces/SetBuildEnvVars.groovy
Set environment variables during a Jenkins build using Groovy
// should be run as Groovy System Script
import hudson.EnvVars
import hudson.model.Environment
def build = Thread.currentThread().executable
def vars = [ENV_VAR1: 'value1', ENV_VAR2: 'value2']
build.environments.add(0, Environment.create(new EnvVars(vars)))