Last active
December 30, 2020 06:33
-
-
Save n1ckfg/e031e57e05fec8a0990d8bf70b802a72 to your computer and use it in GitHub Desktop.
bash commands
This file contains hidden or 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
| function maintenance { | |
| sudo apt-get update -y | |
| sudo apt-get upgrade -y | |
| sudo apt-get autoremove -y | |
| sudo apt-get autoclean -y | |
| } | |
| export PG_OF_PATH=/home/pi/Development/openFrameworks/of_v0.11.0_linuxarmv7l_release/ | |
| function projectGenerator { | |
| $PG_OF_PATH/apps/projectGenerator/commandLine/bin/projectGenerator $1 | |
| } | |
| function dk-list { | |
| echo "" | |
| echo "* * * RUNNING CONTAINERS * * *" | |
| docker ps | |
| echo "" | |
| echo "* * * ALL CONTAINERS * * *" | |
| docker container ls -a | |
| echo "" | |
| echo "* * * DISK IMAGES * * *" | |
| docker images | |
| } | |
| function dk-remove { | |
| docker container stop $1 | |
| docker container rm $1 | |
| } | |
| function dk-run { | |
| docker start $1 | |
| docker exec -it $1 bash | |
| } | |
| function dk-stop { | |
| docker container stop $1 | |
| } | |
| function dk-image-run { | |
| docker run -it $1 | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment