This file contains hidden or 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
1. Install Gh cli tool | |
2. Run `gh auth login` | |
3. In a new directory run (change myorgname to the desired org value): | |
``` | |
gh repo list myorgname --limit 4000 | while read -r repo _; do | |
gh repo clone "$repo" "$repo" | |
done | |
``` | |
Ref: https://stackoverflow.com/questions/19576742/how-to-clone-all-repos-at-once-from-github |
This file contains hidden or 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
1. Add a script named rubocop to the local root project: | |
``` | |
#!/bin/sh | |
docker-compose exec -T docker_service_name bundle exec rubocop -c .rubocop.yml "$@" | |
``` | |
2. In VsCode settings add the following: | |
``` | |
"[ruby]": { | |
"editor.defaultFormatter": "rubocop.vscode-rubocop" |
This file contains hidden or 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
require "csv" | |
class TwilioCallExporter | |
DATE_FORMAT = "%Y-%m-%d %H:%M UTC" | |
attr_reader :to_phone_number, :start_date | |
def initialize(to_phone_number:, start_date:) | |
@to_phone_number = to_phone_number | |
@start_date = start_date | |
end |