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
| From faf8891e7ed08b7cd1db964d1627b4eea3c56437 Mon Sep 17 00:00:00 2001 | |
| From: Xinyang Li <[email protected]> | |
| Date: Tue, 13 Jan 2026 00:16:44 +0200 | |
| Subject: [PATCH] platform/x86: asus-ami: support camera LED on newer devices | |
| --- | |
| drivers/platform/x86/asus-wmi.c | 40 ++++++++++++++++++++++++++++++++- | |
| 1 file changed, 39 insertions(+), 1 deletion(-) | |
| diff --git a/drivers/platform/x86/asus-wmi.c b/drivers/platform/x86/asus-wmi.c |
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, sys | |
| from itertools import groupby, chain | |
| from datetime import datetime, timedelta | |
| import json | |
| import os | |
| import re | |
| import time | |
| from requests import Session | |
| from requests.adapters import HTTPAdapter |
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
| @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); | |
| /* This Source Code Form is subject to the terms of the Mozilla Public | |
| * License, v. 2.0. If a copy of the MPL was not distributed with this | |
| * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | |
| /* | |
| * This style will hide the tab bar. For MacOS Big Sur | |
| * | |
| * Contributor(s): Isaac-Newt, Ivan0xFF, millerdev, AMomchilov | |
| */ |
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
| [ | |
| { | |
| "id": 1, | |
| "name": "ustc_ipv4", | |
| "server": "http://test.ustc.edu.cn/backend/", | |
| "dlURL": "garbage.php", | |
| "ulURL": "empty.php", | |
| "pingURL": "empty.php", | |
| "getIpURL": "getIP.php" | |
| }, |
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 cv2 | |
| import json | |
| import math | |
| import random | |
| from io import BytesIO | |
| import numpy as np | |
| import os | |
| import concurrent.futures | |
| import argparse | |
| import pandas as pd |
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
| from diffusers import DiffusionPipeline | |
| from transformers import CLIPTokenizer | |
| import torch | |
| import os | |
| tokenizer = CLIPTokenizer.from_pretrained( | |
| "stabilityai/stable-diffusion-xl-base-1.0", subfolder="tokenizer", device_map="auto" | |
| ) | |
| # load both base & refiner | |
| base = DiffusionPipeline.from_pretrained( |
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 json | |
| from collections import Counter | |
| SAS = "" # e.g sp=r&st=... | |
| with open("canva.benchmark.json", "r") as f: | |
| data = json.load(f) | |
| print(""" | |
| <html> |
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
| #!/bin/bash | |
| md_filename="vis.md" | |
| cnt=0 | |
| echo "| | | | |" >> $md_filename | |
| echo "|-|-|-|-|" >> $md_filename | |
| for file in $(ls | grep png) | |
| do | |
| printf "|  $file" >> $md_filename; |
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 grequests | |
| import requests | |
| from tqdm import tqdm | |
| from urllib3 import Retry | |
| import random | |
| from parse import parse | |
| class ProgressSession(): | |
| def __init__(self, urls): | |
| self.pbar = tqdm(total = len(urls), desc = 'Making async requests') |
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
| #/bin/sh | |
| # View EXIF | |
| exiftool -all:all <filename> | |
| exiftool -xmp:all <filename> # view information in embedded xmp | |
| # Move file according to capture date | |
| exiftool -if '$datetimeoriginal ge "2023:03:17 00:00:00"' -'FileName<filename' -o <outdir> | |
| # Export ratings to sidecar xmp |