Last active
March 31, 2017 15:36
-
-
Save jeckel/e88ebddf1e5fd5d9bfd3a897f4ebff61 to your computer and use it in GitHub Desktop.
aliases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
######################################################### | |
# docker | |
# Stop all running container | |
alias dstopall="if [ \$(docker ps -q | wc -l) -gt 0 ] ; then docker stop \$(docker ps -q); fi" | |
# Remove all container's instance | |
alias drmall="if [ \$(docker ps -aq | wc -l) -gt 0 ] ; then docker rm \$(docker ps -aq); fi" | |
# Remove all untagged / unfinished images | |
alias drminone="if [ \$(docker images -q --filter dangling=true | wc -l) -gt 0 ] ; then ; docker rmi -f \$(docker images -q --filter dangling=true) ; fi" | |
######################################################### | |
# Git | |
# git merge testing into master | |
alias gmtm="git checkout master && git pull && git merge origin/testing && git push" | |
######################################################### | |
# System | |
# upgrade system | |
alias upg="sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -y" | |
# WebApp tools | |
alias syncthing-ui="chromium-browser --user-data-dir=\$HOME/.config/syncthing-ui --incognito --app=http://127.0.0.1:8384/ &" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment