Skip to content

Instantly share code, notes, and snippets.

View abiliocoelho's full-sized avatar
🚀
Working

Abílio Soares Coelho abiliocoelho

🚀
Working
View GitHub Profile
@abiliocoelho
abiliocoelho / gist:5f5eed8df4d9cb220f0bbc7a5305278c
Created December 6, 2022 14:00
Backup and restore at postgres docker container
Backup:
docker exec -t -u postgres your-db-container pg_dumpall -c > dump_`date +%d-%m-%Y"_"%H_%M_%S`.sql
Restore:
cat your_dump.sql | docker exec -i {docker-postgres-container} psql -U {user} -d {database_name}
@abiliocoelho
abiliocoelho / .zshrc
Last active September 16, 2022 10:50
ZSH Configuration
# Fig pre block. Keep at the top of this file.
[[ -f "$HOME/.fig/shell/zshrc.pre.zsh" ]] && builtin source "$HOME/.fig/shell/zshrc.pre.zsh"
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="spaceship"
alias projects="cd ~/www/projects"
alias dev="cd ~/www/dev"
alias ifma="cd ~/www/ifma"