For educational reasons I've decided to create my own CA. Here is what I learned.
Lets get some context first.
| git branch -m old_branch new_branch # Rename branch locally | |
| git push origin :old_branch # Delete the old branch | |
| git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
| #!/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 \ |
| console.log('Loading function'); | |
| const https = require('https'); | |
| const url = require('url'); | |
| // to get the slack hook url, go into slack admin and create a new "Incoming Webhook" integration | |
| const slack_url = 'https://hooks.slack.com/services/...'; | |
| const slack_req_opts = url.parse(slack_url); | |
| slack_req_opts.method = 'POST'; | |
| slack_req_opts.headers = {'Content-Type': 'application/json'}; |
| # yum localinstall redhat* | |
| Loaded plugins: fastestmirror, refresh-packagekit, security | |
| Existing lock /var/run/yum.pid: another copy is running as pid 7591. | |
| Another app is currently holding the yum lock; waiting for it to exit... | |
| The other application is: PackageKit | |
| Memory : 39 M RSS (348 MB VSZ) | |
| Started: Tue May 19 17:04:57 2015 - 06:29 ago | |
| State : Sleeping, pid: 7591 | |
| Another app is currently holding the yum lock; waiting for it to exit... | |
| The other application is: PackageKit |
| - create s3 bucket, for example: react. | |
| - create cloudfront distributions with these settings: | |
| - Default Root Object: index.html | |
| - Origin Domain Name: s3 bucket url, for example: react.s3.amazonaws.com | |
| - add custom error page with these settings: | |
| - HTTP Error Code: 403: Forbidden | |
| - Customize Error Response: Yes | |
| - Response Page Path: /index.html | |
| - HTTP Response Code: 200: OK | |
| #!/usr/bin/env bash | |
| set -eu | |
| # PATH TO YOUR HOSTS FILE | |
| : ${ETC_HOSTS="/etc/hosts"} | |
| # DEFAULT IP FOR HOSTNAME | |
| DEFAULT_IP="127.0.0.1" |
| { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Effect": "Allow", | |
| "Action": "s3:ListAllMyBuckets", | |
| "Resource": "arn:aws:s3:::MyBucketName" | |
| }, | |
| { | |
| "Action": [ |
| curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - | |
| cat <<EOF > /etc/apt/sources.list.d/kubernetes.list | |
| deb http://apt.kubernetes.io/ kubernetes-xenial main | |
| EOF | |
| apt-get update | |
| apt-get install -y docker.io kubelet kubeadm kubectl kubernetes-cni |