Skip to content

Instantly share code, notes, and snippets.

@jeckel
Last active March 31, 2017 15:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeckel/e88ebddf1e5fd5d9bfd3a897f4ebff61 to your computer and use it in GitHub Desktop.
Save jeckel/e88ebddf1e5fd5d9bfd3a897f4ebff61 to your computer and use it in GitHub Desktop.
aliases
#!/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