This file contains hidden or 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
# 2024-04-17: Stole changese from @Timmo on stackoverflow to get this working with Windows Apps | |
import winreg | |
class WebcamDetect: | |
REG_KEY = winreg.HKEY_CURRENT_USER | |
WEBCAM_REG_SUBKEY = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\CapabilityAccessManager\\ConsentStore\\webcam\\" | |
WEBCAM_TIMESTAMP_VALUE_NAME = "LastUsedTimeStop" | |
def __init__(self): |
This file contains hidden or 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/python | |
from urlgrab import Cache | |
from BeautifulSoup import MinimalSoup as BeautifulSoup | |
from re import compile | |
from os.path import exists, getsize, dirname, join | |
from urllib import urlretrieve, urlencode, quote | |
from sys import argv | |
import demjson | |
import zlib |
This file contains hidden or 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
$ git clone github:lenary/guides.git | |
Cloning into guides... | |
remote: Counting objects: 255, done. | |
remote: Compressing objects: 100% (216/216), done. | |
remote: Total 255 (delta 111), reused 163 (delta 35) | |
Receiving objects: 100% (255/255), 1.49 MiB | 564 KiB/s, done. | |
Resolving deltas: 100% (111/111), done. | |
$ cd guides | |
$ git remote -v |