Skip to content

Instantly share code, notes, and snippets.

View maryshirl's full-sized avatar

Shirl maryshirl

  • Makati, Philippines
View GitHub Profile
@maryshirl
maryshirl / gist:10f3ac0b710f0b39ace503bdb45c1530
Last active June 8, 2016 02:00
Git Alias for pretty format (e.g git lg -10)
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"
@maryshirl
maryshirl / docker_cheat_sheet.txt
Created June 27, 2018 02:34
Docker cheat sheet
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:
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 = []