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 { Component, JSX } from 'solid-js' | |
type ShowProps = { | |
when: boolean, | |
children: JSX.Element | |
fallback?: JSX.Element | |
} | |
/** | |
* Polyfill for the Solid.js `Show` component that works with Bake. |
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 | |
# Usage: ./wireguard_port_forward.sh <client IP> <server IP> <port> | |
# Example: ./wireguard_port_forward.sh 10.0.0.2 10.0.0.1 8080 | |
# Script must be run as root | |
CLIENT=$1 | |
SERVER=$2 | |
PORT=$3 |
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
// These definitions are my best attempt at documenting the output of FFprobe using the "-print_format json" option | |
// The descriptions come mostly out of experience, deduction, and the very sparse documentation of the outputs | |
// Not all fields will be present (it depends on the file), but fields that are definite are not marked as optional | |
// Sample probe: | |
// ffprobe -v quiet -print_format json -show_format -show_streams -show_chapters -show_error my_file.mp4 | |
/** | |
* @typedef FFprobeDisposition | |
* @property {number} default 1 if the default track | |
* @property {number} dub 1 if a dub track |