Skip to content

Instantly share code, notes, and snippets.

@Maroo-b
Maroo-b / gist:08cf56570a5753a3219c73f6a26b6a48
Created January 16, 2025 11:54
Clone all Github repos of an org
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
@Maroo-b
Maroo-b / gist:10a0417a0a9b9c8dfa25f0da9704f12b
Created November 1, 2024 06:12
Running Rubocop lint through Docker for VSCode
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"
@Maroo-b
Maroo-b / twilio_call_exporter.rb
Created August 23, 2018 08:12
Twilio call logs exporter
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