Skip to content

Instantly share code, notes, and snippets.

View sumitsaiwal's full-sized avatar

Sumit Kumar sumitsaiwal

View GitHub Profile
@sumitsaiwal
sumitsaiwal / introrx.md
Created February 5, 2018 05:01 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@sumitsaiwal
sumitsaiwal / Docker connect to remote server.md
Created January 2, 2018 09:25 — forked from kekru/Docker connect to remote server.md
Connect to another host with your docker client, without modifying your local Docker installation

Run commands on remote Docker host

This is how to connect to another host with your docker client, without modifying your local Docker installation or when you don't have a local Docker installation.

Enable Docker Remote API

First be sure to enable the Docker Remote API on the remote host.

This can easily be done with a container.
For HTTP connection use jarkt/docker-remote-api.
For HTTPS connection use whiledo/docker-remote-api-tls.

@sumitsaiwal
sumitsaiwal / generate_docker_cert.sh
Last active January 22, 2018 17:08 — forked from bradrydzewski/generate_docker_cert.sh
!!TESTED!! Add hostname in CN for client and server request !! Generate trusted CA certificates for running Docker with HTTPS
#!/bin/bash
#
# Generates client and server certificates used to enable HTTPS
# remote authentication to a Docker daemon.
#
# See http://docs.docker.com/articles/https/
#
# To start the Docker Daemon:
#
# sudo docker -d \