Skip to content

Instantly share code, notes, and snippets.

View safizn's full-sized avatar
🏗️
Developing...

Safi safizn

🏗️
Developing...
View GitHub Profile
docker-machine ls
docker-machine rm -f <specificNodeName>
docker-machine ssh <VMName>
# send commands to the docker daemon of the following vm:
eval $(docker-machine env <VMName>)
# in case some problems appear regarding certificates
docker-machine regenerate-certs <machineName>
# Open ports of docker-machine
# send request through proxy
curl -i $(docker-machine ip node-1)/demo/hello
# DOCKER-COMPOSER
#installation
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-compose-on-ubuntu-14-04
# https://docs.docker.com/compose/reference/overview/
docker-compose build -f X
docker-compose -f app.dockercompose.yaml build
# Build and run all services/containers in the docker-compose file.
docker-compose up
https://github.com/wsargent/docker-cheat-sheet
https://www.docker.com/sites/default/files/Docker_CheatSheet_08.09.2016.pdf
# Install docker from script https://docs.docker.com/v1.11/linux/step_one/
curl -sSL https://get.docker.com/ | sudo bash
# Environment variables for Windows: and maybe injected into env.var
export MSYS_NO_PATHCONV=1
set COMPOSE_CONVERT_WINDOWS_PATHS=1
apt-get -y update && apt-get -y upgrade
# current working directory.
$(pwd)
# process status
ps aux
# show process of specific running task
ps aux | egrep '(apache|httpd)'
# restart
/sbin/reboot
@safizn
safizn / - Commands
Last active February 14, 2017 17:55
# set path to use in command line
set PATH=%PATH%;”C:\Program Files\Git\usr\bin"
set PATH=%PATH%;”C:\Program Files\Oracle\VirtualBox;"
Network Google Cloud Firewall rules:
tcp:8080
udp:8080
tcp:8081
tcp:8082
tcp:8083
tcp:8084
tcp:8085
tcp:8086
tcp:8087
@safizn
safizn / - Commands
Last active February 27, 2017 22:43
echo "# webapp-radioscanner" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/myuseringithub/webapp-radioscanner.git
git push -u origin master
# keep forked repo up to date
https://gist.github.com/CristinaSolana/1885435
https://intense-heat-1283.firebaseio.com/.json?format=export&auth=6f1iIOoYc5pFnZ0vgly5DYYwWWX3BZ5a1KDSCBFK