-
Darken firefox pdfs
javascript:(function(){var css='.textLayer{filter:invert(90%)!important;mix-blend-mode:screen!important;}.canvasWrapper canvas{filter:invert(90%)!important;}';var head=document.getElementsByTagName('head')[0];var style=document.createElement('style');if(!window.pdfInvertCounter){window.pdfInvertCounter=1;}else{window.pdfInvertCounter++;if(window.pdfInvertCounter%2==0){var css='.textLayer{filter:invert(0%)!important;mix-blend-mode:normal!important;}.canvasWrapper canvas{filter:invert(0%)!important;}';}}style.type='text/css';if(style.styleSheet){style.styleSheet.cssText=css;}else{style.appendChild(document.createTextNode(css));}head.appendChild(style);}());
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 os | |
| import sys | |
| import glob | |
| import xml.etree.ElementTree as ET | |
| import textwrap | |
| from collections import defaultdict | |
| def parse_thermal_xml(file_path): | |
| try: | |
| with open(file_path, 'r') as f: |
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 | |
| # --- CONFIGURATION --- | |
| DURATION=60 # How long to run the stress test (in seconds) | |
| SAFE_TEMP_LIMIT=98 # Emergency cutoff temperature (Celsius) | |
| PASTE_SPIKE_THRESHOLD=25 # If temp jumps this much in 2 seconds, suspect bad paste | |
| THROTTLE_THRESHOLD_PCT=85 # If CPU speed drops below 85% of max, suspect throttling | |
| # Colors | |
| RED='\033[0;31m' |
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
| clc; | |
| clear; | |
| close all; | |
| %% 1. Define Input Sequences (From your specific problem) | |
| x = [1, 0, 1, 0]; % Outer Circle Sequence | |
| h = [1, 2, 3, 4]; % Inner Circle Sequence | |
| % Determine N | |
| N = max(length(x), length(h)); |
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
| # Example channels.txt | |
| #https://www.youtube.com/channel/UCzml9bXoEM0itbcE96CB03w DroneBot Workshop | |
| #https://www.youtube.com/channel/UCzWQYUVCpZqtN93H8RR44Qw Seeker | |
| #https://www.youtube.com/channel/UCyPYQTT20IgzVw92LDvtClw Squat University | |
| from selenium import webdriver | |
| from selenium.webdriver.firefox.options import Options | |
| from selenium.webdriver.firefox.service import Service | |
| from selenium.webdriver.common.by import By | |
| from selenium.webdriver.support.ui import WebDriverWait |
This guide provides a step-by-step process for installing Gentoo Linux using a modern systemd profile and a Unified Kernel Image (UKI) with systemd-boot.
# Unmount all partitions if mounted, suppressing errors
umount /dev/vda1 2>/dev/null
umount /dev/vda2 2>/dev/null
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
| clc; | |
| clear; | |
| close all; | |
| % Given sequence | |
| X = [1, 0, -1, 0, 1, 0, -1, 0, 1, 0, -1, 0, 1, 0, -1, 0]; | |
| N = length(X); % Length of sequence (must be power of 2) | |
| % Bit-reversal permutation | |
| bit_rev_order = bitrevorder(0:N-1) + 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
| #!/usr/bin/env bash | |
| # File to store previously printed commands | |
| printed_commands_file=~/.local/share/daily-whatis/databases/printed_commands_db.txt | |
| # Check if the file exists, if not create it | |
| if [ ! -f "$printed_commands_file" ]; then | |
| mkdir -p "$(dirname "$printed_commands_file")" # Ensure directory exists | |
| touch "$printed_commands_file" # Create the file | |
| fi |