Skip to content

Instantly share code, notes, and snippets.

View dflourusso's full-sized avatar

Daniel Fernando Lourusso dflourusso

  • Maringá - PR - Brasil
View GitHub Profile
@dflourusso
dflourusso / link_multiple_switches.yaml
Created April 17, 2024 19:59 — forked from aderusha/link_multiple_switches.yaml
Home Assistant Blueprint: Link Multiple Switches v1.0.1
@dflourusso
dflourusso / cloudSettings
Last active April 30, 2021 20:16
VSCode settings
{"lastUpload":"2021-04-30T20:16:18.300Z","extensionVersion":"v3.4.3"}
@dflourusso
dflourusso / .gitconfig
Last active December 20, 2019 14:04
gitconfig
[user]
email = dflourusso@gmail.com
name = Daniel Fernando Lourusso
[core]
excludesfile = ~/.gitignore_global
editor = vi
eol = lf
pager = less -F -X
@dflourusso
dflourusso / shrc aliases
Last active October 3, 2019 20:26
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'
@dflourusso
dflourusso / README.md
Last active August 29, 2019 11:34
Comandos úteis para shell

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
@dflourusso
dflourusso / soma.php
Last active August 29, 2015 14:07 — forked from neves/soma.php
<?php
$notas = [
999 => 8,
456 => 3,
789 => 5,
123 => 2,
]; // 8 5 3 2
asort($notas);