Skip to content

Instantly share code, notes, and snippets.

View andre-carvalho's full-sized avatar

André Fernando Araújo de Carvalho andre-carvalho

View GitHub Profile
@guianderson
guianderson / get_github_data.py
Created February 6, 2025 19:38
Get Github Data
import requests
ORG_NAME = ""
TOKEN = ""
# Headers para autenticação (se necessário)
headers = {"Authorization": f"token {TOKEN}"} if TOKEN else {}
def get_repositories(org_name):
url = f"https://api.github.com/orgs/{org_name}/repos?per_page=100"
@rdeavila
rdeavila / git-update-fork.sh
Last active March 10, 2025 23:52
Git: como atualizar um fork com as mudanças do original?
#!/bin/bash
# Adicione um novo remote; pode chamá-lo de "upstream":
git remote add upstream https://github.com/usuario/projeto.git
# Obtenha todos os branches deste novo remote,
# como o upstream/master por exemplo:
git fetch upstream