Skip to content

Instantly share code, notes, and snippets.

@dlevi309
dlevi309 / MGAllowedProtectedKeys.xml
Last active May 6, 2022 01:32
All the values that iOS grants when using the ‘com.apple.private.MobileGestalt.AllowedProtectedKeys‘ entitlement
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.private.MobileGestalt.AllowedProtectedKeys</key>
<array>
<string>AWDID</string>
<string>AmbientLightSensorSerialNumber</string>
<string>ArcModuleSerialNumber</string>
<string>ArrowChipID</string>
@dmattera
dmattera / launchctl_man_pages.md
Last active December 13, 2024 20:39
macOS man page entries for launchctl services

This list was auto-generated on macOS 10.15 (Catalina) using a script that did the following:

  1. grabbed the name of all the .plist files located in the 5 folders used by launchctl:
  • ~/Library/LaunchAgents Per-user agents provided by the user.
  • /Library/LaunchAgents Per-user agents provided by the administrator.
  • /Library/LaunchDaemons System wide daemons provided by the administrator.
  • /System/Library/LaunchAgents OS X Per-user agents.
  • /System/Library/LaunchDaemons OS X System wide daemons.
@dlevi309
dlevi309 / profile_defaults.md
Last active November 16, 2024 04:08
An extensive list of settings written when installing a debugging profile from developer.apple.com

Digital Car Key:

Has three sections.

defaults: {
    “com.apple.MobileBluetooth.debug” =     {
        ExtraZoningLog =         {
            EnableZoneLogging = 1;
        };
        FWStreamLogging =         {
@hraban
hraban / README.md
Last active April 13, 2022 17:42 — forked from jamesmacfie/README.md
iTerm 2 - script to change theme depending on Mac OS dark mode
@varenc
varenc / Quickly look up a URL in the Wayback Machine in Chrome
Last active July 22, 2024 11:07
Chrome Wayback Machine search engine/bookmarklet. Accepts full URLs and works on Chrome's New Page window.
data:text/html,<script>location.href='https://web.archive.org/web/*/%s'</script>
@KoryNunn
KoryNunn / handshake-airdrop.md
Last active March 12, 2024 07:03
Handshake airdrop for github users.

Had 15 github followers in 2019? You can get about $4kAUD of crypto for minimal effort.

Explain this scam

That's legitimately a good default position to hold, however, in this case, the free money is a function of time, and not only charity.

In February 2020, in order to promote Handshake (HNS) to developers, an airdrop was offered to any Github user with more than 15 followers. The Airdrop would give you 4246HNS, at the time worth around at $0.08USD per coin, for a total of $339.68USD, pretty generous!

Today, 4246HNS is worth around $4000 dollarydoos, and there are plenty of github users who haven't claimed theirs.

@varenc
varenc / dnsBypassTmp.sh
Last active October 22, 2023 11:50
Temporarily bypass PiHole or DNSCrypt-proxy dns resolver on Mac
#####
# Temporarily bypass your ad blocking DNS server with this shell function. Automatically restore settings after some number of minutes.
#####
# This `dnsBypassTmp` zsh function will temporarily bypass your PiHole or DNSCrypt-proxy resolver.
# If a site is broken because of a domain you've blocked, this makes it easily to temporarily enabled that and get things working again.
#
# The only argument is the number of minutes to enable the bypass. Defaults to 2 minutes.
# example:
# $ dnsBypassTmp 5
#
#!/bin/sh
brew_root="/usr/local/m1-homebrew"
brew_bin="$brew_root/bin"
sudo mkdir $brew_root
sudo chown $(whoami) $brew_root
curl -L https://github.com/Homebrew/brew/tarball/master | tar xz -C $brew_root --strip 1
echo "export PATH=$brew_bin:\$PATH" >> ~/.zshrc
@lancethomps
lancethomps / close_notifications_applescript.js
Last active April 6, 2025 15:55
AppleScript to close all notifications on macOS Big Sur, Monterey, Ventura, Sonoma, and Sequoia
function run(input, parameters) {
const appNames = [];
const skipAppNames = [];
const verbose = true;
const scriptName = 'close_notifications_applescript';
const CLEAR_ALL_ACTION = 'Clear All';
const CLEAR_ALL_ACTION_TOP = 'Clear';
const CLOSE_ACTION = 'Close';
@joevt
joevt / M1MacTimings.sh
Last active September 3, 2022 15:30
List the display timings on an M1 Mac
#!/bin/bash
# by joevt Jan 7/2021
dodump=1
if [[ "$1" == "-s" ]]; then
dodump=0
shift
fi