-
Input:
-f lavfi -i color=c=black:s=1280x720:d=%duration%
: Generates a video of a black color with a resolution of 1280x720 and a duration specified by theduration
variable (140 seconds in this case).
-
Video Filter (
-vf
):"drawtext=fontfile=C\\:/path/to/font.ttf:
: Specifies the font file to be used for the text.textfile=C\\:/path/to/input.txt:
: Specifies the file containing the text to be overlaid on the video.fontcolor=white:
: Sets the font color to white.fontsize=%fontsize%:
: Sets the font size using thefontsize
variable (38 in this case).
-
x=(w-text_w)/2+%xoffset%:
: Sets the horizontal position of the text. It centers the text horizontally by calculating(w-text_w)/2
and adjusts it with thexoffset
variable. Ifxoffset
is 0, the text will be exactly centered.
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
# run in 32/64-bit powershell for 32/64bit providers/drivers | |
foreach ($provider in [System.Data.OleDb.OleDbEnumerator]::GetRootEnumerator()) | |
{ | |
if ($provider.GetValue(0) -like "*") | |
{ | |
$v = New-Object PSObject | |
Add-Member -in $v NoteProperty "Provider Name" $provider.GetValue(0) | |
Add-Member -in $v NoteProperty "Description" $provider.GetValue(2) | |
$v | |
} |
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
# Safe Shutdown/Restart Switches | |
# untested | |
shutdownPin = 5 | |
restartPin = 15 | |
GPIO.setup(shutdownPin, GPIO.IN) | |
GPIO.setup(restartPin, GPIO.IN) | |
shutdownStatePrev = True |
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
/* Messing around with character encodings */ | |
/* notes: | |
http://www.i18nguy.com/unicode/supplementary-test.html | |
https://stackoverflow.com/questions/6063148/java-unicode-where-to-find-example-n-byte-unicode-characters | |
https://stackoverflow.com/a/37954501/2034089 | |
https://unicode-table.com/ | |
*/ | |
// Adapted from https://stackoverflow.com/a/21648161/2034089 |
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
/* Notes | |
Usage: Open YouTube in browser and run from console | |
References: | |
https://tyrrrz.me/Blog/Reverse-engineering-YouTube | |
https://gist.github.com/el3zahaby/9e60f1ae3168c38cc0f0054c15cd6a83 | |
http://rg3.github.io/youtube-dl/ https://github.com/rg3/youtube-dl/ | |
const videoInfoRegex = /(?:quality=(\w*?),)(?:type=video\/mp4.*?)&url=(.*?),/g; // find all mp4 links | |
*/ |
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.6" | |
services: | |
portainer: | |
image: portainer/portainer | |
command: --ssl --sslcert /path/to/certificate.crt --sslkey /path/to/certificate.key --admin-password-file '/path/to/password.txt' | |
ports: | |
- "9000:9000" | |
networks: | |
- portainer-net | |
volumes: |