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 bash | |
# gdrive_download | |
# | |
# script to download Google Drive files from command line | |
# not guaranteed to work indefinitely | |
# taken from Stack Overflow answer: | |
# http://stackoverflow.com/a/38937732/7002068 | |
gURL=$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
Encoder hevc_nvenc [NVIDIA NVENC hevc encoder]: | |
General capabilities: delay | |
Threading capabilities: none | |
Supported pixel formats: yuv420p nv12 p010le yuv444p yuv444p16le bgr0 rgb0 cuda d3d11 | |
hevc_nvenc AVOptions: | |
-preset <int> E..V.... Set the encoding preset (from 0 to 11) (default medium) | |
default E..V.... | |
slow E..V.... hq 2 passes | |
medium E..V.... hq 1 pass |
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
const winston = require('winston'); | |
const { format } = winston; | |
const { combine, colorize, timestamp, printf } = format; | |
/** | |
* /** | |
* Use CallSite to extract filename and number, for more info read: https://v8.dev/docs/stack-trace-api#customizing-stack-traces | |
* @param numberOfLinesToFetch - optional, when we want more than one line back from the stacktrace | |
* @returns {string|null} filename and line number separated by a colon, if numberOfLinesToFetch > 1 we'll return a string |