Skip to content

Instantly share code, notes, and snippets.

@Utone
Utone / Disable-Sequoia-Bloatware.sh
Created February 27, 2025 04:38 — forked from b0gdanw/Disable-Sequoia-Bloatware.sh
Disable Sequoia Bloatware
#!/bin/zsh
# WARNING! The script is meant to show how and what can be disabled. Don’t use it as it is, adapt it to your needs.
# 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), macOS Ventura (13), macOS Sonoma (14) and macOS Sequoia (15)
# 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
@Utone
Utone / hax.sh
Created February 27, 2025 04:29 — forked from iGlitch/hax.sh
macOS provisioning, hardening, tweaking, whatever script - no more phone home
#!/bin/bash
# Let's "secure" even the script for you :)
sudo -v
function ok() {
echo -e "[OK] "$1
}
function bot() {
### Fixes to MacOS Annnoyances: A journal/blog/just the fixes with credit where due
# How do I get rid of HUNDREDS perhaps thouusands of notifications: "the disk was not ejected properly"?
killall NotificationCenter
# How do I disable this message: "the disk was not ejected properly"?
sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.DiskArbitration.diskarbitrationd.plist DADisableEjectNotification -bool YES && sudo pkill diskarbitrationd
# NEXT challenge: How do I disable this message: "the disk was not ejected properly" but ONLY when no data is transferred...
TBC...
@Utone
Utone / telegram-bridge.js
Created February 27, 2021 16:23 — forked from Ahe4d/telegram-bridge.js
Node.js program creating a bridge between Telegram and Discord.
// Telegram-Discord bridge
const TelegramBot = require('node-telegram-bot-api'); // https://github.com/yagop/node-telegram-bot-api
const Discord = require('discord.js'); // https://github.com/discordjs/discord.js
/* Values:
token: Telegram bot token (logging into Telegram's API, you can get this from @BotFather on Telegram)
token2: Discord bot token (logging into Discord's API, you can get this from Discord's developer docs > my apps > app)
channelid: Discord channel ID (channel the Discord bot can access, right clicking a channel and clicking copy ID with developer mode enabled)
*/
const token = '';