Skip to content

Instantly share code, notes, and snippets.

View yashrastogi16's full-sized avatar

Yash Rastogi yashrastogi16

  • JPMorgan
  • Hyderabad
View GitHub Profile
# Log in to the ubuntu server by any means
sudo ssh -i [pemfile location] ubuntu@[ip]
-> Make a note ou ubuntu version in which you are logged in. For this its 16.04
# Update ubuntu
sudo apt-get update
# Install python and python-pip
sudo apt-get install python && python-pip
docker exec -it vizbi_nginx_1 bash
# Delete all containers
docker rm $(docker ps -a -q)
# Delete all containers forcefully
docker rm -f $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/yashrastogi16/dubizzle.git
git push -u origin master