https://gist.github.com/remarkablemark/aacf14c29b3f01d6900d13137b21db3a https://github.com/jareware/ffmpeg/blob/master/Dockerfile
docker run -it -p 1883:1883 -p 9001:9001 --name mosquito -d eclipse-mosquitto
sudo apt-add-repository ppa:mosquitto-dev/mosquitto-ppa
sudo apt-get update
sudo apt-get install mosquitto
# start & stop
sudo service stop mosquitto
sudo service start mosquitto
sudo service rabbitmq-server start
sudo rabbitmqctl stop
sudo docker run -it -v mongodata:/data/db -p 27017:27017 --name mongodb -d mongo
https://hub.docker.com/_/eclipse-mosquitto/
sudo docker run -d -p 1883:1883 -p 9001:9001 --name mosquitto eclipse-mosquitto
https://hub.docker.com/_/rabbitmq/
sudo docker run -d -p 5672:5672 --hostname my-rabbit --name some-rabbit rabbitmq:3
https://hub.docker.com/_/mongo/
sudo docker run -p 27017:27017 --name some-mongo -v /wargos/data/db:/data/db -d mongo
https://hub.docker.com/_/nginx/
static
docker run --name some-nginx -v /wargos/www:/usr/share/nginx/html -d nginx
sudo docker run -d -p 80:80 --name my-custom-nginx-container -v /wargos/nginx/sites-enabled:/etc/nginx/sites-enabled nginx
server {
server_name www.wargos.com;
location / {
proxy_pass http://localhost:3000;
}
}
server {
server_name api.wargos.com;
location / {
proxy_pass http://localhost:4000;
}
}
# update npm
npm install -g npm
# install stand alone module
npm --registry http://0.0.0.0 install module
# default
npm config set registry http://192.168.206.132:4873/
npm config set registry http://registry.npmjs.org/
npm config list
Change the URI (URL) for a remote Git repository
git remote -v
git update-ref -d HEAD
# View existing remotes
# origin https://github.com/user/repo.git (fetch)
# origin https://github.com/user/repo.git (push)
git remote set-url origin https://github.com/user/repo2.git
# Change the 'origin' remote's URL
git remote -v
# Verify new remote URL
# origin https://github.com/user/repo2.git (fetch)
# origin https://github.com/user/repo2.git (push)
git config --global url.https://github.com/.insteadOf git://github.com/
#Ignore
#git ignore
# .gitignore
.bower-*/
.idea/
node_modules/
add new remote
$ git remote -v
$ git remote --add origin https://github.com/wolf-mtwo/attendance.git
$ git remote -v
sudo dpkg-reconfigure tzdata
vim ~/.gitconfig
# changes
[alias]
tree = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
lg = !"git lg2"