Skip to content

Instantly share code, notes, and snippets.

@ohrafaelmartins
ohrafaelmartins / clone_every_repository.sh
Created April 22, 2024 17:22
To clone every repository in your organization, you can use a simple script or command-line tool. Here's a step-by-step guide to achieving this using the GitHub API and some scripting:
#!/bin/bash
# To clone every repository in your organization, you can use a simple script or command-line tool.
# Here's a step-by-step guide to achieving this using the GitHub API and some scripting:
# Set your GitHub username and Personal Access Token
USERNAME="USERNAME"
TOKEN="TOKEN"
# Replace with your organization name
#!/bin/bash
sudo apt update -y
sudo apt install docker docker-compose -y
sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker
docker run -d -p 3000:3000 --name grafana grafana/grafana
# Terraform: How to create five instances on Amazon Web Services
# and define the name tag individually using a list type variable.
# It is just a simple example of how to create a given instance
# number and set the names according to the size of the list.
data "aws_ami" "ubuntu" {
most_recent = true
filter {
name = "name"