Skip to content

Instantly share code, notes, and snippets.

View elliotberry's full-sized avatar
🌍
online

ɛʟʟɨօȶ b =^._.^= ∫ elliotberry

🌍
online
View GitHub Profile
@startergo
startergo / snapshot.md
Created April 18, 2021 23:56
Mount snapshot Big Sur
  • This makes an empty folder mount point in your home folder so copy exactly as written:
sudo mkdir ~/Snapshot/
  • In the first output "mount" line you will notice a diskXsYsZ. You have to consider only diskXsY:
mount
sudo mount -o nobrowse -t apfs /dev/diskXsY ~/Snapshot/
open ~/Snapshot/
@mmillar-bolis
mmillar-bolis / Launchctl_Unload-10.14.sh
Created November 23, 2020 07:46
A Quick Little Script to Force Disable Certain LaunchDaemons in macOS
#!/bin/bash
# I have managed to map out some undesirable daemons and agents. Most of these
# can be disabled without too much consequence.
## Daemons
# com.apple.analyticsd - Anonymized application analytics daemon
# com.apple.appleseed.fbahelperd - Feedback Assistant Helper Daemon
# com.apple.awacsd - Apple Wide Area Connectivity Service Daemon
# com.apple.backupd - Apple TimeMachine service
@joevt
joevt / DiskUtil.sh
Last active May 11, 2023 06:34
macOS disk labels, mounting partitions
#!/bin/bash
# by joevt May 10, 2023
directblesscmd="/Volumes/Work/Programming/XcodeProjects/bless/bless-204.40.27 joevt/DerivedData/bless/Build/Products/Debug/bless"
usedirectbless=0
if [[ -d /System/Library/PrivateFrameworks/APFS.framework/Versions/A ]]; then
if [[ ! -f "$directblesscmd" ]]; then
echo "# Download and build bless from https://github.com/joevt/bless , then update the path of directbless defined in DiskUtil.sh"
else
usedirectbless=1
@grakic
grakic / HTMLRewriter.js
Created May 3, 2020 21:36
CloudFlare Workers HTMLRewriter mock based on cheerio
import cheerio from 'cheerio'
/**
* TODO: This code is not optimized for production!
* Usage of cheerio here only simulates stream-oriented parser! It is slow!
*/
function replace(content, options) {
// TODO: Handle {html:true/false} in options
this[0].nodeValue = content
@ayyybe
ayyybe / ccdl.command
Last active July 7, 2025 10:19
Adobe Offline Package Builder v0.1.2 (macOS only) --- No longer being maintained.
#!/bin/bash
CYAN="$(tput bold; tput setaf 6)"
RESET="$(tput sgr0)"
clear
if command -v python3 > /dev/null 2>&1; then
if [ $(python3 -c "print('ye')") = "ye" ]; then
clear
@cpetrov
cpetrov / mitmweb.sh
Created March 14, 2020 04:45
macOS mitmweb system proxy configuration wrapper
trap ctrl_c INT
function ctrl_c() {
networksetup -setwebproxystate "Wi-fi" off
networksetup -setsecurewebproxystate "Wi-fi" off
}
networksetup -setwebproxy "Wi-fi" 127.0.0.1 8080
networksetup -setsecurewebproxy "Wi-fi" 127.0.0.1 8080
mitmweb
@petrstepanov
petrstepanov / ebay-leave-feedback.js
Last active September 30, 2022 02:32
Ebay javascript. Leave feedback programmatically.
// Open eBay feedback page in your browser: https://www.ebay.com/fdbk/leave_feedback
// Paste following code in the inspector console:
var comments=['All good. Nice buyer. Fast payment!',
'Nice buyer. Quick payment!',
'A+ buyer. Come back any time!',
'Good buyer. Thanks for your business',
'Nice buyer quick payment.',
'Definitely recommend this buyer.'];
[Unit]
Description=Mount %i
#AssertPathIsDirectory=%h/%i
#After=network.service # Not sure if this is needed
[Service]
Type=simple
ExecStartPre=/usr/bin/mkdir -p %h/%i
ExecStart=/usr/bin/rclone mount \
--config=%h/.config/rclone/rclone.conf \
@antlauzon
antlauzon / crudg0r_bits.txt
Created December 10, 2019 21:00
Crudg0r Secops Amputation Technology
SafeEjectGPUAgent
bluetooth
CacheDelete
socketfilterfw
Air
ScopedBookmarkAgent
uninstall
ookmark
.xpc
ProtectedCloud
@mtunjic
mtunjic / disable.sh
Last active July 6, 2025 20:40
Disable bunch of #$!@ in Catalina
#!/bin/bash
# IMPORTANT: Don't forget to logout from your Apple ID in the settings before running it!
# IMPORTANT: You will need to run this script from Recovery. In fact, macOS Catalina brings read-only filesystem which prevent this script from working from the main OS.
# This script needs to be run from the volume you wish to use.
# E.g. run it like this: cd /Volumes/Macintosh\ HD && sh /Volumes/Macintosh\ HD/Users/sabri/Desktop/disable.sh
# WARNING: It might disable things that you may not like. Please double check the services in the TODISABLE vars.
# Get active services: launchctl list | grep -v "\-\t0"
# Find a service: grep -lR [service] /System/Library/Launch* /Library/Launch* ~/Library/LaunchAgents