Make sure you have your API token handy.
Download the bootstrap script to a temporary location and run it.
cd | #!/usr/bin/env bash | |
| # Useful git commands using the rails codebase as an example: | |
| # git clone [email protected]:rails/rails.git | |
| # and my own example later | |
| # git clone [email protected]:mowat27/maths.git | |
| # You'll also need bat (brew install bat) |
| * A Deeper Dive into each? | |
| * Code examples? | |
| * A chance to refactor |
| #!/usr/bin/env bash | |
| sudo apy update -y | |
| sudo apt install -y linux-headers-generic linux-headers-$(uname -r) xserver-xorg xserver-xorg-core dkms | |
| sudo apt upgrade -y |
| // Converting an ES5 function ES6 | |
| // Start | |
| function getWords(text) { | |
| return text.split(/\s/) | |
| } | |
| // Use const declaration | |
| const getWords = function(text) { | |
| return text.split(/\s/) |
| ~/temp ❯❯❯ time zsh | |
| ~/temp ❯❯❯ function list { | |
| function> cat <<EOF | |
| function heredoc> Basic Price | |
| Discount | |
| Sub total | |
| Factory options | |
| Dealer options | |
| Fuel and mats | |
| Road fund licence |
To download and then use a script
wget https://raw/gist/url/script.sh
chmod +x script.sh
to execute directly
Hello Sam
def hello
puts "world"
end| LDFLAGS=-L/usr/local/opt/zlib/lib CPPFLAGS=-I/usr/local/opt/zlib/include ruby-install ruby 2.3.1 |