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
csv_file = Rails.root.join("doc", "csp_data_20200204.csv").to_path | |
rows = [] | |
CSV.foreach(csv_file, headers: :first_row, encoding: "ISO8859-1") do |row| | |
rows << row.to_hash.symbolize_keys | |
end | |
Apartment::Tenant.switch!(Organisation.last.id) | |
csp_screening_items = [] | |
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
NOTES: | |
- <image-name> can be specified with tag at the end after ':'. Otherwise, it will fetch the 'latest' tag | |
- First line is the syntax, second line is the example command | |
Docker commands | |
ELASTIC CONTAINER REGISTRY (ECR) - Similar to DockerHub | |
List: | |
aws ecr describe-repositories | |
Create: |
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
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)%Creset [%an]' --abbrev-commit --all" |