Skip to content

Instantly share code, notes, and snippets.

View xingh's full-sized avatar

Rahul Singh xingh

View GitHub Profile
# Script to install RealVNC server
# Install the latest updates for the system
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get dist-upgrade -y
# Install RealVNC server
# sudo apt-get install -y realvnc-vnc-server
curl -L -o VNC
xingh / headless-cms-archive.json
Created February 18, 2020 18:14
"name": "DOCKER: Self Paced Training",
"title": "DOCKER: Self Paced Training",
"content": "Docker's own self paced training class.",
"category": "Training",
xingh / itemapi.docker.compose.yml
Last active December 26, 2016 18:17
ItemAPI / Elastic / Redis Docker Compose File
version: '2'
container_name: search_web_admin_api
context: .
ELASTICSEARCH_URL: "http://elastic:9200"
REDIS_URL: "redis://redis:6379"
MONGODB_URL: "mongodb://mongo:27017"
xingh /
Last active October 26, 2016 22:02
How to Clean Dirty files from a Git Repository
  1. I made a backup of all branches and the bare repo ( zipped up and put on Dropbox of each directory )

git clone -b <branch> http://<gitlocation>

git clone http:<gitlocation>

git clone --mirror http:<gitlocation> (bare repo)

  1. I went into the regular clones ( not bare repo ) and deleted all the dirty files from the file system
image: "eventstore/eventstore:latest"
image: "rabbitmq:latest"
- "5672:5672"
- "15672:15672"
- "5672"
hostname: rabbitmq

Docker Compose for Redash (in Powershell)

  1. Make sure you have a docker machine up and running. to see if the docker machine is listed run docker-machine ls

  2. Make sure your current working directory is the root of this github repository.

  3. run git clone and then cd redash

  4. Run docker build .

  5. Run docker-compose up -d postgres to see if the docker container is up run docker ps

cd \Projects\External\
docker-machine start dev
docker-machine ls
docker-machine env --shell powershell dev | iex
docker ps
Good Reference at "Get Started with Docker on Windows using Chocolatey"
# Install Chocolatey in Powershell
iex ((new-object net.webclient).DownloadString(''))
# OR in Command
# @powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString(''))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin