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
/dts-v1/; | |
/plugin/; | |
/ { | |
compatible = "allwinner,sun8i-h3"; | |
fragment@0 { | |
target = <&pio>; | |
__overlay__ { | |
spi0_cs1: spi0_cs1 { |
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
# 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 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 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 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 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 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== |
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
# The following command starts a wireguard-go container using wg0.conf | |
# I still can't find a boringtun container that works for Synology DSM 7.1 | |
sudo docker run -d \ | |
--cap-add NET_ADMIN \ | |
--device=/dev/net/tun \ | |
-v ❗/volume1/docker/wireguard/wg0.conf❗:/etc/wireguard/wg0.conf \ | |
--sysctl net.ipv4.ip_forward=1 \ | |
--name wireguard-go \ | |
masipcat/wireguard-go |
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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RasMan\Parameters] | |
"NegotiateDH2048_AES256"=dword:00000002 |
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
# load nvm && go to working dir && use .nvmrc && execute script | |
* * * * * . ~/.nvm/nvm.sh && cd /tmp/ && nvm use && /tmp/test.js >> /tmp/test.js.log 2>&1 |
NewerOlder