Use Python to:
- send a plain text email
- send an email with attachment
- receive and filter emails according to some criteria
package main | |
import ( | |
"crypto/sha256" | |
"fmt" | |
"io" | |
"log" | |
"os" | |
) |
#!/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" |
package main | |
import ( | |
"fmt" | |
"log" | |
"strconv" | |
"github.com/miekg/dns" | |
) |
Use Python to:
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
handled// 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" |
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"net/http" | |
) | |
type Artist struct { |
#!/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 |
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