Skip to content

Instantly share code, notes, and snippets.

Avatar

Daniel Fernando Lourusso dflourusso

View GitHub Profile
View cloudSettings
{"lastUpload":"2020-12-02T11:30:24.834Z","extensionVersion":"v3.4.3"}
@dflourusso
dflourusso / README.md
Last active Aug 29, 2019
Comandos úteis para shell
View README.md

cut

Emite as partes selecionadas das linhas de cada ARQUIVO na saída padrão.

# Comando
echo 'daniel:fernando:lourusso' | cut -d : -f 1,3

# Saida
# daniel:lourusso
View shrc aliases
alias gs='git status'
unalias ga &> /dev/null
ga() { git add -A $* && git status }
unalias gc &> /dev/null
gc() { noglob git commit -m "$*" && git status }
alias gp="git push -v --progress --follow-tags"
alias gu='git pull --rebase --autostash'
alias gx='gitg'
alias gui='gitg'
alias gxx='git log --graph --color --all --decorate'
View .gitconfig
[user]
email = dflourusso@gmail.com
name = Daniel Fernando Lourusso
[core]
excludesfile = ~/.gitignore_global
editor = vi
eol = lf
pager = less -F -X
View soma.php
<?php
$notas = [
999 => 8,
456 => 3,
789 => 5,
123 => 2,
]; // 8 5 3 2
asort($notas);
You can’t perform that action at this time.