Skip to content

Instantly share code, notes, and snippets.

View m4heshd's full-sized avatar
🏠
Working from home

Mahesh Bandara Wijerathna m4heshd

🏠
Working from home
View GitHub Profile
@socheatsok78
socheatsok78 / README.md
Last active March 15, 2023 08:46
Deploy Portainer Droplet on Digital Ocean

Portainer Droplet on Digital Ocean:

  1. In the Digital Ocean portal, go to the project view.
  2. Click New Droplet.
  3. Click Create Droplet.
  4. Click the Marketplace tab.
  5. Click Docker.
  6. Choose a plan. Make sure your Droplet has the minimum hardware requirements for Docker.
  7. Choose any options for backups, block storage, and datacenter region.
  8. Optional: In the Select additional options section, you can check the User data box and enter a cloud-config file in the text box that appears. The cloud-config file is used to provide a script to be run on the first boot. An example is below.
@fangdingjun
fangdingjun / stunnel.js
Created May 20, 2015 09:55
The nodejs version of stunnel
var net=require("net");
var tls = require("tls");
/* listen address and port */
var listen_host = "0.0.0.0";
var listen_port = 8080;
/* the upstream https servers */
var servers = [
{host: "a.example.com",port:18080},