Skip to content

Instantly share code, notes, and snippets.

View carloscarucce's full-sized avatar
:octocat:

Carlos Alberto Bertholdo Carucce carloscarucce

:octocat:
View GitHub Profile
@carloscarucce
carloscarucce / gh-add-repos-to-team.sh
Last active June 12, 2024 18:56 — forked from narze/gh-add-repos-to-team.sh
Add repos to team with gh
#!/bin/bash
PERMISSION="push" # Can be one of: pull, push, admin, maintain, triage
ORG="orgname"
TEAM_SLUG="your-team-slug"
# Get names with `gh repo list orgname`
# Change "limit" if necessary
gh repo list $ORG --limit 1000 --json name --json owner -q '.[] | "\(.owner.login)/\(.name)"' | while read -r REPO; do
echo "Repo: ${REPO}\r\n"
@carloscarucce
carloscarucce / imageProxy.php
Last active March 10, 2024 09:55 — forked from nicoptere/imageProxy.php
basic PHP image proxy (that works ... )
<?php
$url = isset($_GET['url']) ? $_GET['url'] : null;
if (!$url) {
die('Please, inform URL');
}
$imgInfo = getimagesize( $url );
@carloscarucce
carloscarucce / Foca no código
Last active September 4, 2015 13:26 — forked from zenorocha/Foca no código
Foca no código
/* Véi, foca no código
.---.
/o o\
__(= " =)__
//\'-=-'/\\
) (_
/ `"=-._
/ \ ``"=.