Skip to content

Instantly share code, notes, and snippets.

View bumaruf's full-sized avatar
:shipit:

Otávio Bumaruf bumaruf

:shipit:
View GitHub Profile
@bumaruf
bumaruf / .gitconfig
Last active October 11, 2021 02:32 — forked from diego3g/.gitconfig
[alias]
ci = commit
co = checkout
cb = checkout -b
st = status -sb
sf = show --name-only
lg = log --pretty=format:'%Cred%h%Creset %C(bold)%cr%Creset %Cgreen<%an>%Creset %s' --max-count=30
incoming = !(git fetch --quiet && git log --pretty=format:'%C(yellow)%h %C(white)- %C(red)%an %C(white)- %C(cyan)%d%Creset %s %C(white)- %ar%Creset' ..@{u})
outgoing = !(git fetch --quiet && git log --pretty=format:'%C(yellow)%h %C(white)- %C(red)%an %C(white)- %C(cyan)%d%Creset %s %C(white)- %ar%Creset' @{u}..)
unstage = reset HEAD --
@bumaruf
bumaruf / github-clone.sh
Last active January 29, 2024 05:04
Clone all of the organization's repositories
# Public repositóries
ORGANIZATION_NAME=
curl -s https://api.github.com/orgs/$ORGANIZATION_NAME/repos | grep \"full_name\" | awk '{print $2}' | sed -e 's/"//g' -e 's/,//g' | xargs -n1 gh repo clone
# Private repositóries
TOKEN=
ORGANIZATION_NAME=
curl -s -H "Authorization: token $TOKEN" \
https://api.github.com/orgs/$ORGANIZATION_NAME/repos | grep \"full_name\" | awk '{print $2}' | sed -e 's/"//g' -e 's/,//g' | xargs -n1 gh repo clone
function barraca() {
return console.log(`
::::.:.:.:........... ..... ..... ..... .........:.:.:.:.:::
::.:.:..:........ . ... . . . . . ... ........:.:.:.::::
::.:..::....... .... . .St . .. . .......:.:..::
.:..::....... ... . .@.8tt88; . ..... .....:..:.:.
.:.:....... ... . .@.@8S.X8X@t:;X@t. . ........:.:.:.
.:.:......... . . :% 8t :.;t%8@8ttXXt@: . . ......:.:.:
.::...... . . 8tt::. :S8S.X@8X. t:8.X. .. ..:::.:.:.
:.::.... .. . ;8%t%X. . . %%8S . .@.8:X: .. ......:.: