Skip to content

Instantly share code, notes, and snippets.

Avatar
🏗️
Developing...

Safi myuseringithub

🏗️
Developing...
View GitHub Profile
View - Docker Machine
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
View - Docker Swarm
# send request through proxy
curl -i $(docker-machine ip node-1)/demo/hello
View - Docker Composer
# 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
View - Docker Dockerfile & Commands
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
View - Commands.snippets
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
View - Commands
# set path to use in command line
set PATH=%PATH%;”C:\Program Files\Git\usr\bin"
set PATH=%PATH%;”C:\Program Files\Oracle\VirtualBox;"
View - Network Google Cloud Firewall
Network Google Cloud Firewall rules:
tcp:8080
udp:8080
tcp:8081
tcp:8082
tcp:8083
tcp:8084
tcp:8085
tcp:8086
tcp:8087
View - Commands
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
View Firebase Backups
https://intense-heat-1283.firebaseio.com/.json?format=export&auth=6f1iIOoYc5pFnZ0vgly5DYYwWWX3BZ5a1KDSCBFK
You can’t perform that action at this time.