Skip to content

Instantly share code, notes, and snippets.

Justin BinaryShrub

  • California, US
Block or report user

Report or block BinaryShrub

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@BinaryShrub
BinaryShrub / dnd.sh
Created Mar 20, 2020
macOS Mojave script that automates Do No Disturb and Badge app icons in the Dock 🎉
View dnd.sh
#!/bin/bash
# run 'dnd' to enable Do Not Disturb and disable all Badge app icons in the Dock
# run 'dnd off' to disable Do Not Disturb and enable all Badge app icons in the Dock
dnd () {
local ENABLE
local ENABLE_NUM
local ENABLE_STRING_NEG
case "$1" in
off)
@BinaryShrub
BinaryShrub / dnd_with_app_badge.sh
Last active Mar 20, 2020
macOS Mojave script that automates Do No Disturb and Badge app icons in the Dock
View dnd_with_app_badge.sh
#!/bin/bash
# run 'dnd' to enable Do Not Disturb and disable all Badge app icons in the Dock
# run 'dnd off' to disable Do Not Disturb and enable all Badge app icons in the Dock
dnd () {
local ENABLE_NUM
local ENABLE_BOOL
local ENABLE_STRING
local ENABLE_STRING_NEG
case "$1" in
@BinaryShrub
BinaryShrub / initramfs-unlocker.sh
Last active Oct 15, 2018
LUKS remote decrypt (dropbear) for Ubuntu 16.04.1 on btrfs array
View initramfs-unlocker.sh
#!/bin/bash
## LUKS remote decrypt for Ubuntu 16.04.1 - by BinaryShrub
# NOTES:
# Tailor lines 67 - 69 to your system before running!
# Use at your own risk!
# Safety Check
if [ "$EUID" -ne 0 ]
then echo "You must run this as root"
You can’t perform that action at this time.