Implementing a basic plugin architecture shouldn't be a complicated task. The solution described here is working but you still have to import every plugin (inheriting from the base class).
This is my solution:
$ tree
| import requests | |
| from tqdm import tqdm | |
| def download(url: str, fname: str, chunk_size=1024): | |
| resp = requests.get(url, stream=True) | |
| total = int(resp.headers.get('content-length', 0)) | |
| with open(fname, 'wb') as file, tqdm( | |
| desc=fname, | |
| total=total, |
| var crypto = require("crypto"); | |
| var path = require("path"); | |
| var fs = require("fs"); | |
| var encryptStringWithRsaPublicKey = function(toEncrypt, publicKeyInPemPath) { | |
| var absolutePath = path.resolve(publicKeyInPemPath); | |
| var publicKey = fs.readFileSync(absolutePath, "utf8"); | |
| var buffer = Buffer.from(JSON.stringify(toEncrypt)); | |
| var encrypted = crypto.publicEncrypt(publicKey, buffer); | |
| return encrypted.toString("base64"); |
| @echo off & PowerShell -nologo -noprofile -noninteractive Invoke-Expression ('$args=(''%*'').split('' '');'+'$PSScriptRoot=(''%~dp0'');$env:GOLUWA_CURRENT_DIRECTORY=(''%cd%'');'+((Get-Content -Raw '%~dp0%~n0%~x0' ) -Replace '^.*goto :EOF')); & goto :EOF | |
| # ^^^^^ | |
| # this is some magic to execute the rest of this cmd as powershell | |
| # so we can run it from explorer with double click or cmd easily | |
| function Download($url, $location) { | |
| Write-Host -NoNewline "'$url' >> '$location' ... " | |
| (New-Object System.Net.WebClient).DownloadFile($url, "$location") | |
| Write-Host "OK" |
| import requests | |
| import certifi | |
| import sys | |
| try: | |
| requests.get('https://any-website-protected-by-your-custom-root-ca') | |
| print('Certificate already added to the certifi store') | |
| sys.exit(0) | |
| except requests.exceptions.SSLError as err: | |
| print('SSL Error. Adding custom certs to Certifi store...') |
Implementing a basic plugin architecture shouldn't be a complicated task. The solution described here is working but you still have to import every plugin (inheriting from the base class).
This is my solution:
$ tree
| ffmpeg -i "HD Splice 1080p No Grain.mkv" -i "HD Splice 1080p No Grain.mkv" -filter_complex " | |
| color=black:d=3006.57:s=3840x2160:r=24000/1001, | |
| geq=lum_expr=random(1)*256:cb=128:cr=128, | |
| deflate=threshold0=15, | |
| dilation=threshold0=10, | |
| eq=contrast=3, | |
| scale=1920x1080 [n]; | |
| [0] eq=saturation=0,geq=lum='0.15*(182-abs(75-lum(X,Y)))':cb=128:cr=128 [o]; | |
| [n][o] blend=c0_mode=multiply,negate [a]; | |
| color=c=black:d=3006.57:s=1920x1080:r=24000/1001 [b]; |
Here is the list of Chrome Driver command line Arguments.
If you are using chrome Driver for Selenium WebDriver or Protractor or …. then these are a handy useful list of command line arguments that can be used.
You may use this to look at the usuage: https://code.google.com/p/chromium/codesearch#chromium/src/chromeos/chromeos_switches.cc
Run chromedriver –help to see command line arguments for your version.
This tutorial will work you through steps of configuring an FFmpeg build tailored for RTMP streaming on macOS. At first I think of making it support general live streaming, with additional protocols like HLS, but to keep things simple let's stick with RTMP for now. (Anyway, I do include HLS in the protocol list as well as some related bitstream filters but it's untested.)
The built FFmpeg executable should
Extract audio from a YouTube video file
ffmpeg -i INPUT.mp4 -ab 256k OUTPUT.mp3Cut 3s length
ffmpeg -y -ss 00:00:03 -i INPUT.mp4 -codec copy OUTPUT.mp4