- All content keys were redacted, they should be 128-bit hex strings.
- These methods involve the use of ffmpeg and -cenc_decryption_key which is not part of stable releases as of July 2022. Use nightlies from gyan.dev or some other autobuild in the meantime. Hopefully it gets added in the next stable release.
- On my end none of these were particularly reliable. This may change in the future as FFmpeg evolves. The direct method of playing with ffplay is currently the most reliable out of the listed methods.
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 | |
# | |
me=sshpingpong | |
# | |
# Measure close to minimal packet latency (RTT) of an SSH connection | |
# | |
prgversion="$me * 2022-07-27 (c) Andreas Schamanek" | |
# | |
# @author Andreas Schamanek <https://andreas.schamanek.net> | |
# @license GPL <https://www.gnu.org/licenses/gpl.html> |
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
#!/usr/bin/env python3 | |
# | |
# Copyright (c) 2022 Leland Batey. All rights reserved. | |
# | |
# This work is licensed under the terms of the MIT license. | |
# For a copy, see <https://opensource.org/licenses/MIT>. | |
""" | |
columnize.py reads column-oriented text data and prints that data as | |
nicely-padded columns to STDOUT. Input data *must* be line-oriented; data that | |
spans multiple lines will not be correctly understood and will not be correctly |
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
version: "3.7" | |
services: | |
project-zomboid: | |
image: ghcr.io/cyrale/project-zomboid | |
restart: unless-stopped | |
environment: | |
SERVER_NAME: "pzserver" | |
ADMIN_PASSWORD: "pzserver-password" | |
ports: |
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 | |
# Check availability and response time for a website | |
# Output is in InfluxDB line protocol | |
measurement="http.stat" | |
function dorequest () { | |
local url=$1 | |
local chkstr=$2 |
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
# Windows XP - IE6 - Hyper-V 2012 | |
https://web.archive.org/web/20160730204728if_/https://az412801.vo.msecnd.net/vhd/VMBuild_20141027/HyperV_2012/IE6/Windows/IE6.XP.For.Windows.HyperV_2012.txt | |
https://web.archive.org/web/20150305092534if_/https://az412801.vo.msecnd.net/vhd/md5/VMBuild_20141027/IE6.XP.For.Windows.HyperV_2012.zip.md5.txt | |
https://web.archive.org/web/20170222155813if_/https://az412801.vo.msecnd.net/vhd/VMBuild_20141027/HyperV_2012/IE6/Windows/IE6.XP.For.Windows.HyperV_2012.zip | |
https://web.archive.org/web/20150305092829if_/https://az412801.vo.msecnd.net/vhd/md5/VMBuild_20141027/IE6.XP.For.Windows.HyperV_2012.zip.001.md5.txt | |
https://web.archive.org/web/20150305092535if_/https://az412801.vo.msecnd.net/vhd/VMBuild_20141027/HyperV_2012/IE6/Windows/IE6.XP.For.Windows.HyperV_2012.zip.001 | |
https://web.archive.org/web/20150305093005if_/https://az412801.vo.msecnd.net/vhd/md5/VMBuild_20141027/IE6.XP.For.Windows.HyperV_2012.zip.002.md5.txt | |
https://web.archive.org/web/20150305092830if_/https://az412801.vo.msecnd |
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 | |
die() { | |
printf >&2 'fatal: %s\n' | |
exit 1 | |
} | |
case $# in | |
0) die 'no percentiles provided' 'usage: pct P [P ...]' ;; | |
1) ps="$1" ;; | |
*) |
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
# coding=utf-8 | |
# Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace Datasets Authors. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software |
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
function elapsed_millisec() { | |
BEFORE=$(date +%s%3N) | |
eval "${@}" | |
AFTER=$(date +%s%3N) | |
awk -v OFMT="%.3f" -v before=${BEFORE} -v after=${AFTER} 'BEGIN { print (after - before) / 1000 }' | |
} | |
elapsed_millisec sleep 1.234 |
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 networkx as nx | |
import sys | |
import os | |
import logging | |
import configparser | |
import traceback | |
from typing import List | |
from collections import OrderedDict | |
logging.basicConfig(level=logging.DEBUG) |