Ruby on Rails
- A nice answer from StackExchange
Ruby on Rails
#!/bin/bash | |
sudo apt-get update | |
# To make sure we have everything necessary for Webpacker support in Rails, we're first going to start by adding the Node.js and Yarn repositories to our system before installing them. | |
sudo apt-get install curl | |
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - | |
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - | |
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list | |
sudo apt-get update |
# This script verifies if a list of "blacklist" words are presented in the files you are intended to commit such console | |
# output, debugging information or keys/tokens/passwords | |
# Instructions: | |
# Put this file into your .git/hooks folder and set as executable (chmod +x pre-commit) | |
# If you want to skip the hook just add the --no-verify: git commit --no-verify | |
# --------------------------------------------- |
{0: 'tench, Tinca tinca', | |
1: 'goldfish, Carassius auratus', | |
2: 'great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias', | |
3: 'tiger shark, Galeocerdo cuvieri', | |
4: 'hammerhead, hammerhead shark', | |
5: 'electric ray, crampfish, numbfish, torpedo', | |
6: 'stingray', | |
7: 'cock', | |
8: 'hen', | |
9: 'ostrich, Struthio camelus', |
Picking the right architecture = Picking the right battles + Managing trade-offs