This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash | |
sudo source ~/.profile | |
sudo nvm install node | |
node --version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/profile.d/best_bash_history.sh | |
# Save 5,000 lines of history in memory | |
HISTSIZE=10000 | |
# Save 2,000,000 lines of history to disk (will have to grep ~/.bash_history for full listing) | |
HISTFILESIZE=2000000 | |
# Append to history instead of overwrite | |
shopt -s histappend | |
# Ignore redundant or space commands | |
HISTCONTROL=ignoreboth | |
# Ignore more |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# high sierra | |
sudo launchctl stop com.openssh.sshd | |
sudo launchctl start com.openssh.sshd | |
# latest | |
sudo vim /etc/services # (update the port config for ssh and save) | |
sudo launchctl unload /System/Library/LaunchDaemons/ssh.plist | |
sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist |
OlderNewer