Skip to content

Instantly share code, notes, and snippets.

View whatyoubendoing's full-sized avatar

Benjamin HB whatyoubendoing

  • London, United Kingdom
  • 11:49 (UTC +01:00)
View GitHub Profile
@macshome
macshome / defang.md
Last active May 14, 2025 14:57
How to defang system protections on macOS

How to Defang macOS System Protections

If you want to change things on the root drive of a Mac you will need to take some steps to disable the built in security of the system. Most of these steps are the same regardless if you are on Intel or Apple Silicon. If there is a difference it is noted.

Note that all of these things put a Mac into an unsupported and less secure state.

Make sure you either perform these steps in a VM or that you reset the protections after you are done poking around

Protections and Terms

(This list is not exahustive on the details of each. Check the links at the end for more info.)

@jevinskie
jevinskie / libimobiledevice-build.sh
Created August 19, 2022 17:34
libimobiledevice git builder
#!/usr/bin/env zsh
set -o errexit
set -o nounset
set -o pipefail
set -o xtrace
repo_urls=(
https://github.com/libimobiledevice/libplist
@nikias
nikias / limd-build-macos.sh
Last active May 11, 2025 20:39
Build libimobiledevice stack for macOS with ease
#!/bin/bash
# If you like this script and my work on libimobiledevice, please
# consider becoming a patron at https://patreon.com/nikias - Thanks <3
REV=1.0.19
if test "`echo -e Test`" != "Test" 2>&1; then
echo Please run this with zsh or bash.
exit 1
@mattmc3
mattmc3 / 1-setopts.zsh
Last active March 17, 2025 05:19
ZSH - options by framework
## ZSH Options
# http://zsh.sourceforge.net/Doc/Release/Options.html
# Changing Directories
# http://zsh.sourceforge.net/Doc/Release/Options.html#Changing-Directories
setopt auto_cd # if a command isn't valid, but is a directory, cd to that dir
setopt auto_pushd # make cd push the old directory onto the directory stack
setopt pushd_ignore_dups # don’t push multiple copies of the same directory onto the directory stack
setopt pushd_minus # exchanges the meanings of ‘+’ and ‘-’ when specifying a directory in the stack
@sishen
sishen / url_scoping.js.coffee
Created August 16, 2012 17:32
Url Scoping in Spine.js
class App.Ticket extends Spine.Model
@configure 'Ticket', "id", "project_id"
@scope: ->
"projects/#{current.project_id}"
scope: ->
"projects/#{@project_id}"