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
server { | |
# Listen on port 9123. Change to your liking and remove 'deferred' if unsupported on your OS. | |
listen [::]:9123 ipv6only=off deferred; | |
# We don't need to log these proxy requests. | |
access_log off; | |
# Let browsers cache our responses. | |
expires max; | |
location / { | |
# Return an empty gif for all requests. | |
empty_gif; |
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/sh | |
echo "1" > /proc/sys/net/ipv6/conf/eth0/accept_ra |
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
#** | |
This Confluence user macro aggregates paragraphs marked with a custom keyword and section identifier from all child pages. | |
Usage: | |
- Insert the macro to the parent page and define the main keyword (e.g. "Decision"). | |
- Change the default column headers to fit your use case. | |
- Mark the paragraphs using the following syntax: KEYWORD_SECTION: Lorem ipsum... (Important: The keyword must be followed by an underscore and section identifier plus a colon) | |
Note: Listing all children can be used to circument page restrictions: https://confluence.atlassian.com/doc/user-macro-template-syntax-223906130.html | |
This macro therefore only supports direct children of the page in which it is embedded and only pages without individual permission sets. | |
information: | |
@author Flavio Tischhauser <flavio.tischhauser@baloise.ch> |
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
$fn = $args[0] | |
Start-Process -Wait -NoNewWindow 'cmd.exe' -ArgumentList "/C `"ffmpeg.exe -hide_banner -loglevel panic -i `"$fn`" -c:v copy -frames:v 1 -vbsf hevc_mp4toannexb -f hevc - | dovi_tool extract-rpu - -o `"$($fn).RPU.bin`"`"" | |
Start-Process -Wait -NoNewWindow 'cmd.exe' -ArgumentList "/C `"dovi_tool.exe info `"$($fn).RPU.bin`" -f 0 > `"$($fn).RPU.json`"`"" | |
$rpu = (Get-Content "$($fn).RPU.json" | Select-Object -Skip 1) | ConvertFrom-Json | |
if ($rpu.dovi_profile) { | |
Write-Output "Profile: $($rpu.dovi_profile)" | |
if ($rpu.dovi_profile -eq 5) { | |
Write-Output "Natively supported." | |
} |