This gist has moved to the faasd repo
https://github.com/openfaas/faasd/blob/master/docs/MULTIPASS.md
This gist has moved to the faasd repo
https://github.com/openfaas/faasd/blob/master/docs/MULTIPASS.md
| #!/bin/bash | |
| PID_FILE=~/.restic_backup.pid | |
| TIMESTAMP_FILE=~/.restic_backup_timestamp | |
| if [ -f "$PID_FILE" ]; then | |
| if ps -p $(cat $PID_FILE) > /dev/null; then | |
| echo $(date +"%Y-%m-%d %T") "File $PID_FILE exist. Probably backup is already in progress." | |
| exit 1 | |
| else |
| #!/usr/bin/env bash | |
| ### Bash Environment Setup | |
| # http://redsymbol.net/articles/unofficial-bash-strict-mode/ | |
| # https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html | |
| # set -o xtrace | |
| set -o errexit | |
| set -o errtrace | |
| set -o nounset | |
| set -o pipefail |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>IncompatiblePaths</key> | |
| <array> | |
| <dict> | |
| <key>Application Name</key> | |
| <string>Sxs Memory Card Driver</string> | |
| <key>Blurb</key> |
| # Instructions for installing Pi-hole 4.2 on UniFi CloudKey Gen 1 (UC-CK) running firmware 0.13.6 | |
| # Pi-hole will need to be completely re-installed after every FW update or if CloudKey is reset to defaults. | |
| # Verify UC-CK is running firmware v0.13.6 (or later) before installing Pi-hole. If not, do: | |
| ubnt-systool fwupdate https://dl.ubnt.com/unifi/stage/cloudkey/firmware/UCK/UCK.mtk7623.v0.13.6.7ad551e.190225.0939.bin | |
| # UC-CK firmware v0.13.6 downgrades UniFi Controller to 5.10.17. Upgrade to 5.10.19 with: | |
| cd /tmp | |
| wget https://dl.ubnt.com/unifi/5.10.19/unifi_sysvinit_all.deb | |
| dpkg -i unifi_sysvinit_all.deb |
| ARG BUILD_IMAGE=maven:3.5-jdk-11 | |
| ARG RUNTIME_IMAGE=openjdk:11-jdk-slim | |
| ############################################################################################# | |
| ### Stage where Docker is pulling all maven dependencies ### | |
| ############################################################################################# | |
| FROM ${BUILD_IMAGE} as dependencies | |
| ARG PROXY_SET=false | |
| ARG PROXY_HOST= |
We did it! We broke gist.github.com ;) So head over to the new home! Thank you all!
2021.10.20: https://github.com/AveYo/MediaCreationTool.bat now open for interaction
Not just an Universal MediaCreationTool wrapper script with ingenious support for business editions,
A powerful yet simple windows 10 / 11 deployment automation tool as well!
| #!/bin/sh | |
| alias dm='docker-machine' | |
| alias dmx='docker-machine ssh' | |
| alias dk='docker' | |
| alias dki='docker images' | |
| alias dks='docker service' | |
| alias dkrm='docker rm' | |
| alias dkl='docker logs' | |
| alias dklf='docker logs -f' |
| @echo off | |
| setlocal ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION | |
| ::this also support calls that contains a absolute windows path | |
| ::check of one of the params contain a absolute windows path | |
| echo.%* | findstr /r /c:"[a-z]:[\\/]" > nul | |
| if %errorlevel% == 1 ( | |
| ::if not just git with the given parameters | |
| call :git %* |
This is a quick explanation of how to configure both ZeroTier and two Ubiquiti UniFi USGs to allow routing between two IPv4 networks. Both networks are in private (RFC1918) address space and each one has its own DHCP service. There is no need for NAT between them, only IP routing.
The two networks are 192.168.1.0/24 (call this the "left" network) and 192.168.10.0/24 (the "right" network) but they can be anything. Also, you can have multiple CIDR blocks on one side or the other of the ZeroTier route; if you do, you just have to create more routing table entries.