Skip to content

Instantly share code, notes, and snippets.

View MarioJuniorPro's full-sized avatar

Mario Costa Junior MarioJuniorPro

View GitHub Profile
[alias]
ci = commit
co = checkout
cm = checkout master
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}..)
@MarioJuniorPro
MarioJuniorPro / bash.sh
Last active January 28, 2019 18:23
Linux
# Bash PDF
# https://learncodethehardway.org/unix/bash_cheat_sheet.pdf
# kill process
ctrl + x
# send to process background
ctrl + z
# toogle background process to foreground
(function(){
console.clear()
const elementsFilter = (elem) => { return !['HTML', 'NOSCRIPT'].includes(elem) }
const elements = Array.from(document.querySelectorAll('*'));
const elementsMapper = (elem) => elem.tagName