Skip to content

Instantly share code, notes, and snippets.

View LoganDark's full-sized avatar

LoganDark LoganDark

View GitHub Profile
@LoganDark
LoganDark / crash-percent.sh
Last active April 1, 2020 03:18
A script that tells you how close most of macOS is to becoming unresponsive. I put this in my PATH.
#!/bin/bash
# macOS Mojave build >18A326g has a nasty issue.
#
# Basically, loginwindow likes threads. It's so passionate about threads that
# it will continue to collect threads endlessly. Now, the problem with such a
# process collecting so many threads is that, as the owner of all processes
# running under your account, if the process crashes, say goodbye to most of
# macOS.
#
# Well, this is exactly what happens. loginwindow freezes at 4096 threads and
@LoganDark
LoganDark / install_libs.sh
Last active July 21, 2017 03:36
A small script I created to install missing libraries for commands installed via slackpkg.
bin=
if [ -z "$1" ]; then
read -p 'Please enter the name of a command with missing libraries: ' bin
else
bin="$1"
fi
printf '
'
import discord
paired = {
'channel that will trigger the bot': 'channel the bot will copy messages to',
'you know the drill': 'i can do this all day'
}
keyword_data = {
'channel that will trigger the bot': ['keyword', 'copybot', ['both of these', 'must be in the same message']]
}