import flet as ft
import re
from dataclasses import dataclass
Discover gists
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 python | |
#-*- coding: UTF-8 -*- | |
from reportlab.lib import colors | |
from reportlab.platypus import Paragraph, SimpleDocTemplate, Table, TableStyle | |
from reportlab.lib.styles import getSampleStyleSheet | |
from reportlab.lib.pagesizes import A4 | |
from reportlab.pdfbase import pdfmetrics | |
from reportlab.pdfbase.ttfonts import TTFont |
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
{ | |
"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", |
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
import json | |
import os | |
import time | |
import webbrowser | |
import sys | |
import re | |
def handleWindows(extra_seconds): | |
print("OS : Windows") |
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
Built on Docker with php:8.3.2-fpm-bullseye as a base image | |
Prerequisites installed: libmagickwand-dev, libmagickwand-6.q16-6 | |
FYI: Same dependencies work properly on PHP 8.2.10 | |
----- | |
326.0 downloading imagick-3.7.0.tgz ... | |
326.0 Starting to download imagick-3.7.0.tgz (360,138 bytes) | |
326.0 .........................................................................done: 360,138 bytes |
This is a set of instructions specific to the Steam Deck that is curated and combined from several guides and help I've found on the LUG Discord as well as /r/StarCitizen. This will help you configure your system, download and extract the utilities needed, and do a (mostly) standard install. We're not using Lutris and instead doing a manual install since the LUG installer doesn't work well with the Flatpak without additional configuration. Hopefully it is helpful.
Tested on the 512GB SKU
Enable SSH if you'd like to do things remotely. This is helpful if you don't have a mouse and keyboard.
- Switch to desktop mode
- Open Konsole
- Set a password with
passwd
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
import socket | |
import requests | |
import paramiko | |
import time | |
import xml.etree.ElementTree as ET | |
def discover_sonos_devices(): | |
MCAST_GRP = '239.255.255.250' | |
MCAST_PORT = 1900 | |
msg = ( |
NewerOlder