Create a namesepace:
$ kubectl create ns service-ns
namespace/service-ns createdCheck serviceaccounts
| # /etc/udev/rules.d/85-u2f-screen-lock.rules | |
| # 2 REMOVE event rules for 2 different U2F devices | |
| # to view the various properties you could use to create your rule use => udevadm monitor --property | |
| # You may get multiple matches if your rule is too wide. No rule to unlock because it's not called 2FA for nothing. | |
| # If you want to do that then you would need to add the matching rule for ADD events | |
| ACTION=="remove", ENV{DEVTYPE}=="usb_device", ENV{SUBSYSTEM}=="usb", ENV{PRODUCT}=="1050/120/*", RUN+="/home/sean/bin/u2f-screen-lock.sh" | |
| ACTION=="remove", ENV{ID_BUS}=="usb", ENV{ID_VENDOR_ID}=="096e", ENV{ID_MODEL_ID}=="0853", RUN+="/home/sean/bin/u2f-screen-lock.sh" |
| # assumes new Debian Testing VM, for purpose of compiling, running below as root | |
| # uses most libs already available from apt, only compiles lib ntbtls | |
| gnupg_version=${GNUPG:-2.4.6} | |
| ntbtls_version=${NTBTLS:-0.3.1} | |
| DESTDIR=${DESTDIR:-'/'} | |
| lsb_release -a | |
| uname -a |
| # Heroku stack version | |
| # https://devcenter.heroku.com/articles/heroku-22-stack#using-heroku-22 | |
| ARG STACK_VERSION=22 | |
| ARG STACK=heroku-${STACK_VERSION} | |
| FROM heroku/heroku:${STACK_VERSION} AS base | |
| # local profile.d | |
| RUN tee -a /etc/profile <<'EOF' | |
| if [ -d $HOME/.profile.d ]; then |
Based on the origin documentation:
https://developers.cloudflare.com/cloudflare-one/tutorials/kubectl/#configure-the-tunnel

Important to set Additional application settings / TLS / Origin Server Name to hostname of the origin request.
| #!/usr/bin/env bash | |
| SWAP_SIZE=${SWAP_SIZE-"4G"} | |
| SWAP_FILE=${SWAP_FILE-"/swap"} | |
| fallocate -l "$SWAP_SIZE" "$SWAP_FILE" | |
| chmod 600 "$SWAP_FILE" | |
| mkswap "$SWAP_FILE" | |
| swapon "$SWAP_FILE" | |
| echo "$SWAP_FILE swap swap defaults 0 0" >>/etc/fstab | |
| swapon --show |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Your Business</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <!--# if expr="$status = 502" --> | |
| <meta http-equiv="refresh" content="2"> | |
| <!--# endif --> | |
| </head> |
| #!/usr/bin/env sh | |
| # | |
| # Usage: http-get.sh [PATH PORT HOST] | |
| # | |
| # Environment variables | |
| # REQUEST_PATH - path of the request, default value `/` | |
| # REQUEST_PORT - http port, default value `80` | |
| # REQUEST_HOST - host of the request, default value `localhost` | |
| REQUEST_PATH=${1:-${REQUEST_PATH-/}} |
The main purpose of this to dump the process command and arguments in string format for later execution or use it (for example use to run inside Docker). I would like to run the system related tests in a build process based on cake generated test commands in separated environments (like Docker swarm service in compose/swarm stack).
Cake dotnet Test command:
DotNetCoreTest(SolutionFile, new DotNetCoreTestSettings
{
Configuration = configuration,| # use docker_provider: "ee", "ce", "master" or "" | |
| $docker_provider = "master" | |
| $docker_version = "19.03.8" | |
| if (Test-Path env:docker_provider) { | |
| $docker_provider = $env:docker_provider | |
| } | |
| if (Test-Path env:docker_version) { | |
| $docker_version = $env:docker_version | |
| } |