Skip to content

Instantly share code, notes, and snippets.

@schoenkaft
schoenkaft / sphp.sh
Last active April 4, 2018 06:55 — forked from w00fz/sphp.sh
PHP switcher for homebrew/core
#!/bin/bash
# Check if command was ran as root.
if [[ $(id -u) -eq 0 ]]; then
echo "The command \"sphp\" should not be executed as root or via sudo directly."
echo "When a service requires root access, you will be prompted for a password as needed."
exit 1
fi
# Usage
@schoenkaft
schoenkaft / .profile
Last active January 11, 2025 22:34 — forked from sindresorhus/.profile
Automatic Git signing with gpg/GnuPG 2.1.x on OSX/MacOS
# Set GPG_TTY environment variable
export GPG_TTY=$(tty)