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| # Nginx+Unicorn best-practices congifuration guide. Heartbleed fixed. | |
| # We use latest stable nginx with fresh **openssl**, **zlib** and **pcre** dependencies. | |
| # Some extra handy modules to use: --with-http_stub_status_module --with-http_gzip_static_module | |
| # | |
| # Deployment structure | |
| # | |
| # SERVER: | |
| # /etc/init.d/nginx (1. nginx) | |
| # /home/app/public_html/app_production/current (Capistrano directory) | |
| # |
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| State | ZCTA | Congressional District | |
|---|---|---|---|
| 01 | 30165 | 03 | |
| 01 | 31905 | 03 | |
| 01 | 35004 | 03 | |
| 01 | 35005 | 06 | |
| 01 | 35005 | 07 | |
| 01 | 35006 | 04 | |
| 01 | 35006 | 06 | |
| 01 | 35006 | 07 | |
| 01 | 35007 | 06 |
The plan is to create a pair of executables (ngrok and ngrokd) that are connected with a self-signed SSL cert. Since the client and server executables are paired, you won't be able to use any other ngrok to connect to this ngrokd, and vice versa.
Add two DNS records: one for the base domain and one for the wildcard domain. For example, if your base domain is domain.com, you'll need a record for that and for *.domain.com.
| # Copyright (c) 2014 Lukas Fittl <[email protected]> | |
| # | |
| # Released in the public domain - fork as you wish. | |
| require 'rubygems' | |
| require 'mixlib/cli' | |
| require 'pg' | |
| require 'pg_query' | |
| require 'curses' |
| #include "hemicube.h" | |
| #define PACK_HEMICUBES 1 | |
| static void get_hemicube_face_normal(int index, Vector3 *forward, Vector3 *left, Vector3 *up) { | |
| // Unwrapped hemicube with positive-Z in the middle. | |
| switch (index) { | |
| case 0: *forward = Vector3(+1, 0, 0); *left = Vector3( 0, 1, 0); break; |
| /* | |
| * OpenSimplex (Simplectic) Noise in C++ | |
| * by Arthur Tombs | |
| * | |
| * Modified 2015-01-08 | |
| * | |
| * This is a derivative work based on OpenSimplex by Kurt Spencer: | |
| * https://gist.github.com/KdotJPG/b1270127455a94ac5d19 | |
| * | |
| * Anyone is free to make use of this software in whatever way they want. |
References:
| package pb | |
| import ( | |
| "fmt" | |
| "reflect" | |
| st "github.com/golang/protobuf/ptypes/struct" | |
| ) | |
| // ToStruct converts a map[string]interface{} to a ptypes.Struct |
| #!/bin/sh | |
| # install needed curl package | |
| sudo apt install --no-install-recommends curl -y | |
| # install kubectl | |
| # https://github.com/kubernetes/minikube/issues/3437#issuecomment-449408316, maybe use https://storage.googleapis.com/minikube/releases/v0.30.0/docker-machine-driver-kvm2 | |
| curl -Lo /tmp/kubectl https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl && \ | |
| chmod +x /tmp/kubectl && \ | |
| sudo mv /tmp/kubectl /usr/local/bin/kubectl | |
| # kubectl tab completion | |
| sudo sh -c 'echo "source <(kubectl completion bash)" > /etc/bash_completion.d/kubectl' |