This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Let's "secure" even the script for you :) | |
sudo -v | |
function ok() { | |
echo -e "[OK] "$1 | |
} | |
function bot() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 = ''; |