NOTE: This is a question I found on StackOverflow which I’ve archived here, because the answer is so effing phenomenal.
If you are not into long explanations, see [Paolo Bergantino’s answer][2].
NOTE: This is a question I found on StackOverflow which I’ve archived here, because the answer is so effing phenomenal.
If you are not into long explanations, see [Paolo Bergantino’s answer][2].
When hosting our web applications, we often have one public IP
address (i.e., an IP address visible to the outside world)
using which we want to host multiple web apps. For example, one
may wants to host three different web apps respectively for
example1.com
, example2.com
, and example1.com/images
on
the same machine using a single IP address.
How can we do that? Well, the good news is Internet browsers
#!/usr/bin/env bash | |
set -e | |
echo "Installing dependencies..." | |
sudo apt-get update -y | |
sudo apt-get install -y unzip | |
echo "Fetching vault..." | |
VAULT=0.6.5 |
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"net/http" | |
) | |
type Artist struct { |
// Now available in package form at https://github.com/rjz/githubhook | |
package handler | |
// https://developer.github.com/webhooks/ | |
import ( | |
"crypto/hmac" | |
"crypto/sha1" | |
"encoding/hex" | |
"errors" |
First of all, ensure you don't have any deprecated!
The Symfony documentation explains it well, but let's sum up:
$ composer require --dev symfony/phpunit-bridge
)deprecation error
handledUse Python to:
package main | |
import ( | |
"fmt" | |
"log" | |
"strconv" | |
"github.com/miekg/dns" | |
) |
#!/bin/bash | |
# | |
# Installation of Hashicorp Nomad for deploy process | |
# | |
# Download this file: | |
# curl -sSL https://gist.githubusercontent.com/ryanpadilha/351a4a4f17afdc8eb0d963897b98122a/raw/ -o nomad-install.sh | |
# | |
echo "Initializing script for devops - Nomad Hashicorp" |