git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| # Put this in your ~/.gitconfig or ~/.config/git/config | |
| # Windows users: "~" is your profile's home directory, e.g. C:\Users\<YourName> | |
| [user] | |
| name = Your Full Name | |
| email = [email protected] | |
| [color] | |
| # Enable colors in color-supporting terminals | |
| ui = auto | |
| [alias] | |
| # List available aliases |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| global | |
| maxconn 4096 # Total Max Connections. This is dependent on ulimit | |
| nbproc 2 | |
| log 127.0.0.1 local1 notice | |
| defaults | |
| mode http | |
| log global | |
| frontend all 0.0.0.0:80 |
| # Last updated May, 2024 for Apple silicon Macs | |
| # Install Homebrew if you don't already have it: https://brew.sh | |
| # install nano from homebrew | |
| brew install nano nanorc | |
| # update your nanorc file | |
| echo 'include "'"$(brew --cellar nano)"'/*/share/nano/*.nanorc"' >> ~/.nanorc | |
| # close and re-open your terminal and you'll have syntax highlighting |
| (def adjectives [ | |
| "adorable" | |
| "adventurous" | |
| "aggressive" | |
| "alert" | |
| "attractive" | |
| "average" | |
| "beautiful" | |
| "blue-eyed " | |
| "bloody" |
Automated analysis is the main advantage to working with a modern statically typed compiled language like C++. Code analysis tools can inform us when we have implemented an operator overload with a non-canonical form, when we should have made a method const, or when the scope of a variable can be reduced.
| #!/bin/sh | |
| # mac setup automation script based on | |
| # http://lapwinglabs.com/blog/hacker-guide-to-setting-up-your-mac | |
| # Check for Homebrew, | |
| # Install if we don't have it | |
| if test ! $(which brew); then | |
| echo "Installing homebrew..." | |
| ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" |