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 | |
| # Elasticsearch query script with hits scroll support | |
| # Usage: | |
| # ./esquery 'http://eshost:9200' someindex '{"query": {"term": {"name": "abc"}}}' | |
| # will output array with all hits on stdout | |
| set -euo pipefail | |
| json_request() { | |
| local METHOD="$1" |
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
| { | |
| order webdav last | |
| } | |
| :8080 | |
| #log stdout | |
| route /browse* { | |
| uri strip_prefix /browse | |
| file_server browse { |
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
| # docker build -t kaitai-dev - < Dockerfile | |
| # docker run --rm -ti -v "$PWD:$PWD" -w "$PWD" kaitai-dev | |
| # cd compiler | |
| # sbt compilerJVM/universal:packageBin | |
| FROM debian:buster | |
| RUN \ | |
| apt-get update && \ | |
| apt-get install -y gnupg ca-certificates openjdk-11-jdk && \ |
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
| thread apply all bt | |
| b <breakpoint> thread <thread-id> |
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
| { | |
| "printf": { | |
| "prefix": "pf", | |
| "body": "printf(\"${0}\\\\n\");", | |
| "description": "Snippet for printf %d variable" | |
| }, | |
| "printf %d variable": { | |
| "prefix": "pfd", | |
| "body": "printf(\"${1:var}: %d\\\\n\", ${1:var});", | |
| "description": "Snippet for printf %d variable" |
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
| { | |
| debug | |
| } | |
| :80 | |
| route /api/* { | |
| uri strip_prefix /api | |
| reverse_proxy srv+http://services | |
| } |
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
| Lots of verbose output: | |
| ffmpeg -v trace -xerror -err_detect aggressive -debug_ts -progress pipe:1 ... | |
| Generate test files: | |
| ffmpeg -f lavfi -i anullsrc -ac 2 -ar 44100 -t 500ms test.mp3 | |
| ffmpeg -f lavfi -i anullsrc -f lavfi -i testsrc -ac 2 -ar 44100 -t 500ms test.mp4 | |
| -f lavfi -i sine | |
| -f lavfi -i anoisesrc | |
| Test decode: |
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
| opkg update | |
| opkg install ca-certificates libustream-openssl bash | |
| wget https://raw.githubusercontent.com/mab-wien/openwrt-autoupdate/master/bin/auto-update.sh | |
| # yes to allow -rc, note that downgrade might break config | |
| bash auto-update.sh yes |
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
| diff --git a/youtube_dl/extractor/svt.py b/youtube_dl/extractor/svt.py | |
| index e12389cad..388a06448 100644 | |
| --- a/youtube_dl/extractor/svt.py | |
| +++ b/youtube_dl/extractor/svt.py | |
| @@ -12,6 +12,7 @@ from ..utils import ( | |
| str_or_none, | |
| strip_or_none, | |
| try_get, | |
| + parse_iso8601, | |
| ) |
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
| <html> | |
| <head> | |
| <style> | |
| body { | |
| text-align: center; | |
| } | |
| div { | |
| display: flex; | |
| justify-content: center; | |
| height: 100vh; |