Skip to content

Instantly share code, notes, and snippets.

Avatar
⚛️
Microservices

Afonso Rodrigues afonsoaugusto

⚛️
Microservices
View GitHub Profile
@afonsoaugusto
afonsoaugusto / git-update-fork.sh
Created Nov 1, 2020 — forked from rdeavila/git-update-fork.sh
Git: como atualizar um fork com as mudanças do original?
View git-update-fork.sh
#!/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
@afonsoaugusto
afonsoaugusto / zsh-elapsed-time.md
Created Aug 2, 2020 — forked from knadh/zsh-elapsed-time.md
Elapsed and execution time for commands in ZSH
View zsh-elapsed-time.md

Elapsed and execution time display for commands in ZSH

Append this to your ~/.zshrc file.

function preexec() {
  timer=$(($(date +%s%0N)/1000000))
@afonsoaugusto
afonsoaugusto / gitprint.js
Created Mar 28, 2020 — forked from beevelop/gitprint.js
Print GitHub markdown files
View gitprint.js
document.querySelector('#readme').setAttribute('style', 'position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 100; background-color: white')
document.querySelector('body').appendChild(document.querySelector('#readme'))
window.print()