Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| apiVersion: kubeadm.k8s.io/v1beta1 | |
| kind: ClusterConfiguration | |
| kubernetesVersion: v1.14.3 # change according to kubeadm supported version | |
| apiServer: | |
| certSANs: | |
| - 127.0.0.1 | |
| - cluster-api.example.com # change according to your requirements | |
| extraArgs: | |
| authorization-mode: Node,RBAC | |
| feature-gates: "TTLAfterFinished=true" |
| // Alternative sum types for typescript. Variants may be more convenient than unions | |
| // because they easier to manipulate (see `Mapped types`) | |
| // - [https://www.typescriptlang.org/docs/handbook/advanced-types.html](Mapped types) | |
| // - [https://github.com/natefaubion/purescript-variant] | |
| const variantSymbol = Symbol('Variant'); | |
| type Variant<T> = { 0: keyof T, 1: T[keyof T]; [variantSymbol]: T }; | |
| // Variant constructor | |
| function variant<T, K extends keyof T>(key: K, value: T[K]): Variant<T> { |
| # PASSENGER DEV OK | |
| server { | |
| listen 80; | |
| listen 443 ssl http2; | |
| listen [::]:80; | |
| listen [::]:443 ssl http2; | |
| server_name webapp.example.com; | |
| location /.well-known/acme-challenge/ { alias /opt/le/.acme-challenges/; } |
| upstream my-web-app-here { | |
| server 127.0.0.1:8080; | |
| } | |
| server { | |
| listen 80; | |
| listen 443 ssl http2; | |
| listen [::]:80; | |
| listen [::]:443 ssl http2; |
| package main | |
| import ( | |
| "context" | |
| "flag" | |
| "fmt" | |
| "io" | |
| "net" | |
| "net/http" | |
| "os" |
| # set the base image to Debian | |
| # https://hub.docker.com/_/debian/ | |
| FROM debian:latest | |
| # replace shell with bash so we can source files | |
| RUN rm /bin/sh && ln -s /bin/bash /bin/sh | |
| # update the repository sources list | |
| # and install dependencies | |
| RUN apt-get update \ |
| package main | |
| import ( | |
| "fmt" | |
| "errors" | |
| ) | |
| type Maybe interface { | |
| Return(value interface{}) Maybe | |
| Bind(func(interface{}) Maybe) Maybe |
| package main | |
| import ( | |
| "net/http" | |
| ) | |
| func main() { | |
| go func() { | |
| http.ListenAndServe(":8001", &fooHandler{}) | |
| }() |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000just change out app_name for your purposes
openssl genrsa 2048 > app_name-wildcard.key
openssl req -new -x509 -nodes -sha1 -days 3650 -key app_name-wildcard.key > app_name-wildcard.cert
# Common Name (eg, your name or your server's hostname) []:*.app_name.com
openssl x509 -noout -fingerprint -text < app_name-wildcard.cert > app_name-wildcard.info