The ultimate Homebrew setup and usage guide.
Homebrew is the missing package manager for macOS. It allows you to install command line tools brew install ...
as well as GUI desktop apps brew cask install ...
all through the command line.
Have you ever pushed something you wish you hadn't? There is a simple solution to this problem. You can reset your latest commit and then push that to remote as if the commit never happened.
Warning: Doing so will remove that commit. This is detremental to repos that have collaborators on them. Only use these on branches only you have access to (feature branches) or on private repos. Using this method on the master/develop branch is highly discouraged.
# Roll us back to the last commit
Use the following commands to setup Hombrew as a standard user getting around needing sudo access for most packages.
NOTE: This still requires an admin to install Homebrew initially. After the ownership change, the standard user can use Homebrew moving forward.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
server { | |
listen 80; | |
index index.php index.html; | |
server_name localhost; | |
error_log /var/log/nginx/error.log; | |
access_log /var/log/nginx/access.log; | |
root /var/www/html/site; | |
location / { | |
try_files $uri $uri/ /index.php; |