Skip to content

Instantly share code, notes, and snippets.

var mediaJSON = { "categories" : [ { "name" : "Movies",
"videos" : [
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
},
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ],
Traceback (most recent call last):
File "D:\wks\l3.py", line 25, in <module>
correct, keys = WV_Function(pssh, lic_url)
File "D:\wks\l3.py", line 19, in WV_Function
widevine_license = requests.post(url=lic_url, data=wvdecrypt.get_challenge(), headers=headers.headers)
AttributeError: module 'headers' has no attribute 'headers'
wmic MemoryChip get MemoryType, Name, Capacity, Configuredclockspeed, DeviceLocator, FormFactor, Manufacturer, Serialnumber, Speed
@xd003
xd003 / selenium-setup.sh
Last active June 17, 2023 16:52
Bash Script to setup Python + Selenium + chromedriver on a Headless Chrome Browser
#!/usr/bin/env bash
echo "This script will setup webdriver of your choice for selenium and create a template script with appropriate settings"
sleep 2
echo "This Script only supports Linux 64 bit and arm64/aarch64 kernel architecture currently"
sleep 2
uname="$(uname -m)"
case $uname in
arm64|aarch64|x86_64 )
#!/usr/bin/env bash
[[ ${1} = "upgrade" ]] && _SKIP_CONFLICT_CHECK="override"
FILEBOT_BRANCH=beta # ( stable | beta )
if [ "${FILEBOT_BRANCH}" = "stable" ]; then
DOCKERURL=ghcr.io/xd003/filebot:latest
else
DOCKERURL=ghcr.io/xd003/filebot:latest
fi