This file contains 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 { Logger } from "./logger.js"; | |
// Time delta to trigger tasks on (in ms) | |
// Any task with a delta under this | |
const TRIGGER_RESOLUTION = 500; | |
export class TimerTask { | |
// Unique (relatively) identifier | |
id: string; | |
// Time to trigger task |
This file contains 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 | |
set -x | |
ACTION=$1 | |
PRIV_IFACE=$2 | |
# IP of private interface | |
# PostDown obviously doesn't get the IP, which means unportforward won't work... hardcoding | |
# INTERFACE_IP=$(/sbin/ifconfig $INTERFACE | grep -i mask | awk '{print $2}'| cut -f2 -d:) | |
PRIV_IFACE_IP=10.0.4.1 |