I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
| string getIPAddress(){ | |
| string ipAddress="Unable to get IP Address"; | |
| struct ifaddrs *interfaces = NULL; | |
| struct ifaddrs *temp_addr = NULL; | |
| int success = 0; | |
| // retrieve the current interfaces - returns 0 on success | |
| success = getifaddrs(&interfaces); | |
| if (success == 0) { | |
| // Loop through linked list of interfaces | |
| temp_addr = interfaces; |
| # compile | |
| $ g++ zlib-example.cpp -lz -o zlib-example | |
| # run | |
| $ ./zlib-example | |
| Uncompressed size is: 36 | |
| Uncompressed string is: Hello Hello Hello Hello Hello Hello! | |
| ---------- |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
| package main | |
| import ( | |
| "code.google.com/p/goauth2/oauth/jwt" | |
| "code.google.com/p/google-api-go-client/storage/v1beta2" | |
| "fmt" | |
| "log" | |
| "regexp" | |
| ) | |
The plan is to create a pair of executables (ngrok and ngrokd) that are connected with a self-signed SSL cert. Since the client and server executables are paired, you won't be able to use any other ngrok to connect to this ngrokd, and vice versa.
Add two DNS records: one for the base domain and one for the wildcard domain. For example, if your base domain is domain.com, you'll need a record for that and for *.domain.com.
| #include <errno.h> | |
| #include <fcntl.h> | |
| #include <linux/videodev2.h> | |
| #include <stdint.h> | |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <sys/ioctl.h> | |
| #include <sys/mman.h> | |
| #include <unistd.h> | |
| #include <opencv2/core/core.hpp> |
| # Get Graphics Magick | |
| > cd / | |
| > mkdir /dowload | |
| > cd /download | |
| > wget ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/GraphicsMagick-LATEST.tar.gz | |
| > tar -xzvf GraphicsMagick-LATEST.tar.gz | |
| > cd GraphicsMagick-1.3.21 (or the lastest graphics magick) | |
| # Install Graphics Magick | |
| ## Get libs |
| /* | |
| * Convert from OpenCV image and write movie with FFmpeg | |
| * | |
| * Copyright (c) 2016 yohhoy | |
| */ | |
| #include <iostream> | |
| #include <vector> | |
| // FFmpeg | |
| extern "C" { | |
| #include <libavformat/avformat.h> |
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.
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.