Skip to content

Instantly share code, notes, and snippets.

View aaronmelton's full-sized avatar

Aaron Melton aaronmelton

View GitHub Profile
c22dev /
Last active July 15, 2024 21:32
Remove MDM & DEP from an Apple Sillicon Mac (Sonoma)

How to make an MDM Mac shine like it's brand new ?

Works, as of 14/04/2024, on macOS 14.4.1 and lower (prob higher but idk)

This was made for Apple Sillicon Macs.

Restore Process

You need another Mac for this.

If you don't have one and have recovery locked, it's not possible.

aaronmelton /
Created March 12, 2018 14:45
Python script to improve two-factor authentication for AWS CLI.
#!/usr/bin/env python
# Copyright (C) 2017-2018 Aaron Melton <aaron(at)aaronmelton(dot)com>
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.