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: |
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
/* 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
# 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
# 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 | |
} |