Skip to content

Instantly share code, notes, and snippets.

Avatar
⚛️
Microservices

Afonso Rodrigues afonsoaugusto

⚛️
Microservices
View GitHub Profile
@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()
You can’t perform that action at this time.