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 ChatGPT - Timezone Match (Cloudflare Trace) | |
| // @name:zh-CN ChatGPT 时区匹配(Cloudflare Trace) | |
| // @namespace https://chatgpt.com/ | |
| // @version 3.4.1 | |
| // @icon https://chatgpt.com/favicon.ico | |
| // @description Match timezone using trace loc and same-country colo, with cached fallback. | |
| // @match https://chatgpt.com/* | |
| // @exclude https://chatgpt.com/cdn-cgi/* | |
| // @run-at document-start |
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
| esphome: | |
| name: $name | |
| friendly_name: $friendly_name | |
| name_add_mac_suffix: true | |
| platformio_options: | |
| board_build.flash_mode: dio | |
| board_build.mcu: esp32c3 | |
| includes: | |
| - haier_ir.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
| function Invoke-CommandAsScheduledTask { | |
| param( | |
| [string]$Command, | |
| [bool]$RunAsAdmin = $false | |
| ) | |
| $bytes = [System.Text.Encoding]::Unicode.GetBytes($Command) | |
| $encodedCommand = [Convert]::ToBase64String($bytes) | |
| $taskName = "TemporaryTask${PID}FromInvokeCommandAsScheduledTask" |
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 | |
| # Generate SHA256 checksums for files with progress. Saves output to .sha256 files. | |
| # Usage check | |
| if [ "$#" -lt 1 ]; then | |
| echo "Usage: $0 <filename1> [filename2] ..." | |
| exit 1 | |
| fi |
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
| function Write-Log { | |
| Param( | |
| [Parameter(Mandatory = $true)] | |
| [string]$Message | |
| ) | |
| $timestamp = Get-Date -Format 'yyyy-MM-dd HH:mm:ss.fff' | |
| $logMessage = "$timestamp - $Message" | |
| Write-Host $logMessage |
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
| ::cnpm install rimraf -g | |
| rimraf ./**/node_modules |