Skip to content

Instantly share code, notes, and snippets.

View cwmoriarty's full-sized avatar
📆
🧑‍💻

cwmoriarty

📆
🧑‍💻
  • 05:32 (UTC -04:00)
View GitHub Profile
@cwmoriarty
cwmoriarty / apt-history.sh
Last active September 30, 2024 15:00
apt-history
function apt-history(){
case "$1" in
install)
cat /var/log/dpkg.log | grep 'install '
;;
upgrade|remove)
cat /var/log/dpkg.log | grep $1
;;
rollback)
cat /var/log/dpkg.log | grep upgrade | \
#!/usr/bin/env bash
set -e
logpath="/tmp/apfs_log.txt"
{
diskutil apfs list
printf "\n"
diskutil apfs snapshots /
#!/bin/zsh
# Credit: Original idea and script disable.sh by pwnsdx https://gist.github.com/pwnsdx/d87b034c4c0210b988040ad2f85a68d3
# Disabling unwanted services on macOS Big Sur (11), macOS Monterey (12) and macOS Ventura (13)
# Disabling SIP is required ("csrutil disable" from Terminal in Recovery)
# Modifications are written in /private/var/db/com.apple.xpc.launchd/ disabled.plist, disabled.501.plist
# To revert, delete /private/var/db/com.apple.xpc.launchd/ disabled.plist and disabled.501.plist and reboot; sudo rm -r /private/var/db/com.apple.xpc.launchd/*
# user