- Run
setup_ip_forwarding.bat
script 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
AllowedIPs
and 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
#!/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 |
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
#!/bin/bash | |
device=/dev/video2 | |
amixer -c stk1160mixer sset Line unmute cap | |
vlc -vvv --color --input-slave=alsa://pulse --live-caching=300 \ | |
--v4l2-standard=PAL --deinterlace-mode=yadif \ | |
--video-filter=deinterlace "v4l://${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
# coding=utf-8 | |
import sys | |
import csv | |
import vobject | |
import re | |
whitespace = re.compile('\s+') | |
numberCleaner = re.compile('^.*?(\d+).*$') | |
customerIdFormat = re.compile('^\S*?\d+$') |
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
extern crate multimap; | |
use std::hash::Hash; | |
use multimap::MultiMap; | |
fn main() { | |
let mut mmap = MultiMap::new(); | |
mmap.insert(1, 'a'); | |
mmap.insert(1, 'a'); |