Installation Docs:
# Download
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"# Download
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"| #!/usr/bin/env bash | |
| set -e | |
| [ $EUID -ne 0 ] && echo "run as root" >&2 && exit 1 | |
| apt-get update && apt install -y dnsmasq | |
| # Create a directory where we will store our `iptables` forwarding rules. | |
| mkdir -p /etc/iptables |
This is a solution of a common problem with Nexus Docker repositories. The administrator has to expose port for "pull", another port for "push", other ports for each hosted repository. This solution is about leveraging Nginx reverse proxy to avoid using these ports.
Given :
| :: Read file "package.json" into variable string, removing line breaks. | |
| set string= | |
| for /f "delims=" %%x in (package.json) do set "string=!string!%%x" | |
| rem Remove quotes | |
| set string=%string:"=% | |
| rem Remove braces | |
| set "string=%string:~2,-2%" | |
| rem Change colon+space by equal-sign | |
| set "string=%string:: ==%" |
The initial goal of this project is to use the raspberry pi in place of my Wireless Range Extender and then going from 3 wireless networks (2.4ghz, 2.4ghz extended, 5ghz) at home to only one (5ghz). This way I'm reducing the exposition to radio waves for the whole familly at home.
Ok, enough drama for now, let's go technical. 😁
| #!/bin/bash | |
| # install qemu utils | |
| sudo apt install qemu-utils | |
| # install nbd client | |
| sudo apt install nbd-client |
| set timeout=3 | |
| menuentry 'Linux diskless' --class os { | |
| insmod efi_gop | |
| insmod efi_uga | |
| # set server from option 66 (tftp-server-name) if not exist, use next_server | |
| if ! net_get_dhcp_option net_default_server ${net_default_interface} 66 string; then | |
| echo ' using next_server option instead.' |