Skip to content

Instantly share code, notes, and snippets.

@MateusAquino
Last active August 6, 2022 17:28
Show Gist options
  • Save MateusAquino/ba0adbcf6cd2d2965614d255aeffdec1 to your computer and use it in GitHub Desktop.
Save MateusAquino/ba0adbcf6cd2d2965614d255aeffdec1 to your computer and use it in GitHub Desktop.

Modern Scripts

Nota: alguns scripts requerem 🎀 gum!

Um alias para rodar formatter/credo/testes + commitar com coauthores

db

Script customizável para executar funções de banco + ecto

Um git switch melhorado com listagem de PRs

emj

Um script para trazer emojis do Slack para o Github

Aliases

Alguns outros alias úteis que eu uso :)

alias c="clear"
alias q="exit"
alias hd="hexdump -C"
alias clean_ram="sudo sh -c 'sync; echo 3 > /proc/sys/vm/drop_caches'"
alias agit="git add . && git"
alias gitrmb="git branch | cut -c 3- | gum choose --no-limit | xargs git branch -D"
alias ie='WINEARCH=win32 WINEPREFIX=~/.wine-ie8 wine ~/.wine-ie8/drive_c/Program\ Files/Internet\ Explorer/IEXPLORE.EXE'

# mp4 -> gif
function gify() {
  input=$1
  output="${2:-output.gif}"
  ffmpeg -i $input -vf scale=320:-1 -r 10 -f image2pipe -vcodec ppm - | convert -delay 10 -loop 0 - $output
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment