Skip to content

Instantly share code, notes, and snippets.

@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 = '';
### 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 / 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() {