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
import datetime | |
import logging | |
import logging.config | |
import os | |
import pickle | |
import pytz | |
import requests | |
import sqlite3 | |
from selenium import webdriver | |
from selenium.webdriver.common.by import By |
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
import logging | |
import logging.config | |
import os.path | |
from google.auth.transport.requests import Request | |
from google.oauth2.credentials import Credentials | |
from google_auth_oauthlib.flow import InstalledAppFlow | |
from googleapiclient.discovery import build | |
from googleapiclient.errors import HttpError |
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
param ( | |
[Parameter(Mandatory = $true)] | |
[string]$PythonFolderPath | |
) | |
# Ensure the provided path exists | |
if (-Not (Test-Path -Path $PythonFolderPath)) { | |
Write-Error "The specified path '$PythonFolderPath' does not exist." | |
exit 1 | |
} |
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
/dts-v1/; | |
/plugin/; | |
/ { | |
compatible = "allwinner,sun8i-h3"; | |
fragment@0 { | |
target = <&pio>; | |
__overlay__ { | |
spi0_cs1: spi0_cs1 { |
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
# Prompt the user for the pattern | |
$pattern = Read-Host "Delete Credential with Regex pattern" | |
# Filter credentials that start with the specified prefix | |
$regex = "^ Target: (?:LegacyGeneric:target=)*" + $pattern + "$" | |
$creds = cmdkey /list | Select-String -Pattern $regex | |
# Remove each credential that starts with the specified prefix | |
foreach ($cred in $creds) { | |
$target = $cred -replace "^\s*Target: ", "" |
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
// ==UserScript== | |
// @name Theater Mode | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-05-19 | |
// @description Allow the video to occupy the whole webpage | |
// @author Nobody | |
// @match http*://*.oculus.com/casting | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=oculus.com | |
// @grant none | |
// ==/UserScript== |
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/env python3 | |
from PIL import Image | |
import csv | |
def convert_image_to_csv(image_path, csv_path): | |
# Open the image | |
with Image.open(image_path) as img: | |
# Convert image to grayscale (if it's not already) | |
img = img.convert('L') |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"> | |
<title>My FullScreen App</title> | |
</head> | |
<body> | |
<div id="app"> | |
<h1>My FullScreen App</h1> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"> | |
<title>My FullScreen App</title> | |
</head> | |
<body> | |
<div id="app"> | |
<h1>My FullScreen App</h1> |
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
// ==UserScript== | |
// @name PWA Everything | |
// @author Evan Reichard | |
// @version 0.0.1 | |
// @match *://*/* | |
// @grant none | |
// @run-at document-idle | |
// @noframes | |
// ==/UserScript== |
NewerOlder