Open your sudo
file:
sudo vi /etc/pam.d/sudo
Add the following after the first line:
auth sufficient pam_tid.so
Open your sudo
file:
sudo vi /etc/pam.d/sudo
Add the following after the first line:
auth sufficient pam_tid.so
################################################################################ | |
# git config --global core.excludesfile ~/.gitignore | |
# https://gist.github.com/divspace/5e826b4a055f143b8efb923593ac5550 | |
################################################################################ | |
################################################################################ | |
# Directories | |
################################################################################ | |
.idea/ | |
.metadata/ |
#!/usr/bin/env bash | |
UNAMEOUT="$(uname -s)" | |
case "${UNAMEOUT}" in | |
Linux*) MACHINE=linux;; | |
Darwin*) MACHINE=mac;; | |
*_NT-10*) MACHINE=windows;; | |
*) MACHINE="unknown" | |
esac |
We've switched to Yarn because it was built in collaboration with Facebook, Google, and others. We're primarily using it for how much faster it is though. Yarn supports emojis, is extremely faster, has automatic shrinkwrapping (hence the yarn.lock
file), and much better security.
You can find out why a package is installed (and what's using it):
yarn why <package-name>
#!/usr/bin/env bash | |
BREW=$(command -v brew) | |
PREFIX="${PREFIX:-/usr/local}" | |
sudo -v | |
while true; do | |
sudo -n true | |
sleep 60 |
#!/usr/bin/env bash | |
################################################################################ | |
# Place this script wherever you like and create an alias (.zshrc or .bashrc): | |
# | |
# alias update='sh ~/Scripts/update.sh' | |
# | |
# Then just run `update` to update: | |
# | |
# - Homebrew |