- Run
setup_ip_forwarding.batscript to enable IP forwarding on Windows. - Configure Windows firewall to accept traffic from all remote networks.
- Install wireguard and setup connection to central wireguard server with all remote networks as part of
AllowedIPsand a unique IP within the wireguard network. - Setup fritzbox to a custom local IP address range (e.g. 192.168.110.0/24) that is unique in all sites.
- Setup a static DHCP lease or a static IP for the local wireguard system.
- Setup static routes in fritzbox for each remote network using the local wireguard system's IP as the gateway/nexthop.
- For central wireguard server setup route for the network address range of the new external site.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.hibernate.validator.internal.engine.DefaultClockProvider | |
| import org.springframework.core.LocalVariableTableParameterNameDiscoverer | |
| import org.springframework.core.PrioritizedParameterNameDiscoverer | |
| import org.springframework.core.StandardReflectionParameterNameDiscoverer | |
| import org.springframework.validation.beanvalidation.LocalValidatorFactoryBean | |
| import java.lang.reflect.Constructor | |
| import java.lang.reflect.Method | |
| import javax.validation.ClockProvider | |
| import javax.validation.Configuration | |
| import javax.validation.ParameterNameProvider |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| keycloak_to_pem() { | |
| input="$(mktemp)" | |
| echo "-----BEGIN $1-----" > "$input" | |
| echo "$2" >> "$input" | |
| echo "-----END $1-----" >> "$input" | |
| output="$(mktemp)" | |
| case "$1" in | |
| "CERTIFICATE") | |
| openssl x509 -inform PEM -in "$input" -out "$output" | |
| ;; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| services: | |
| - name: postgres:12-alpine | |
| alias: bootstrap-postgres | |
| - name: redis:6 | |
| alias: bootstrap-redis | |
| variables: | |
| POSTGRES_DB: bootstrap | |
| POSTGRES_USER: bootstrap | |
| POSTGRES_PASSWORD: '' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| voice="${1?no voice given!}" | |
| gender="${2?no gender given!}" | |
| text="${3?no text given!}" | |
| file_name="${4:-"-"}" | |
| access_token="$(gcloud auth application-default print-access-token)" | |
| if echo "$text" | grep -q "<speak>" | |
| then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| device="${CEC_DEVICE:-0.0.0.0}" | |
| command="${1?no command given}" | |
| case "$command" in | |
| on) | |
| cec_command="on $device" | |
| ;; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Fourier</title> | |
| <meta charset="UTF-8"> | |
| </head> | |
| <body> | |
| <textarea></textarea> | |
| <table> | |
| <thead> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function extractorFor(selector: String): (x: any) => any { | |
| function composeAccess(f: (x: any) => any, field: string): (x: any) => any { | |
| return (x: any) => { | |
| let r = f(x) | |
| if (field in r) return r[field] | |
| else return null | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Windows Registry Editor Version 5.00 | |
| [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation] | |
| "RealTimeIsUniversal"=dword:00000001 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| here="$(readlink -f "$(dirname "$0")")" | |
| export PKGDEST="${here}/out" | |
| makepkg --config "${here}/makepkg.conf" --sync --asdep -f |