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
| No. Time Source Destination Protocol Length Info | |
| 1 0.000000 host 3.5.0 USB 100 URB_CONTROL out | |
| Frame 1: Packet, 100 bytes on wire (800 bits), 100 bytes captured (800 bits) on interface \\.\USBPcap3, id 0 | |
| Section number: 1 | |
| Interface id: 0 (\\.\USBPcap3) | |
| Encapsulation type: USB packets with USBPcap header (152) | |
| Arrival Time: Apr 11, 2026 21:29:40.143394000 中国标准时间 | |
| UTC Arrival Time: Apr 11, 2026 13:29:40.143394000 UTC | |
| Epoch Arrival Time: 1775914180.143394000 |
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 time | |
| import spidev | |
| import RPi.GPIO as GPIO | |
| from PIL import Image, ImageDraw, ImageFont | |
| # --- 配置引脚 (BCM 编码) --- | |
| DC_PIN = 24 | |
| RST_PIN = 25 | |
| BL_PIN = 17 | |
| SPI_BUS = 0 |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <unattend xmlns="urn:schemas-microsoft-com:unattend" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"> | |
| <!--https://schneegans.de/windows/unattend-generator/?LanguageMode=Interactive&ProcessorArchitecture=amd64&BypassRequirementsCheck=true&BypassNetworkCheck=true&ComputerNameMode=Script&ComputerNameScript=return+Read-Host+-Prompt+%27Enter+computer+name%27%3B&CompactOsMode=Default&TimeZoneMode=Explicit&TimeZone=China+Standard+Time&PartitionMode=Interactive&DiskAssertionMode=Skip&WindowsEditionMode=Generic&WindowsEdition=pro&InstallFromMode=Automatic&PEMode=Default&UserAccountMode=Unattended&AccountName0=dongfg&AccountDisplayName0=&AccountPassword0=&AccountGroup0=Administrators&AutoLogonMode=Own&PasswordExpirationMode=Unlimited&LockoutMode=Default&HideFiles=Hidden&ShowFileExtensions=true&ClassicContextMenu=true&HideInfoTip=true&LaunchToThisPC=true&ShowEndTask=true&TaskbarSearch=Hide&TaskbarIconsMode=Default&DisableWidgets=true&LeftTaskbar=true&HideTaskViewButt |
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
| const widget = new ListWidget(); | |
| const STORAGE_KEY_PREFIX = "douyinCheckinStatus"; | |
| function storageKey() { | |
| const date = new Date().toLocaleDateString('zh-CN', { | |
| year: 'numeric', | |
| month: '2-digit', | |
| day: '2-digit' | |
| }); | |
| return STORAGE_KEY_PREFIX + date; |
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 清空云原生开发记录 | |
| // @namespace http://tampermonkey.net/ | |
| // @version 2025-08-26 | |
| // @description 一键清空云原生开发记录! | |
| // @author dongfg | |
| // @match https://cnb.cool/u/*/workspaces | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=cnb.cool | |
| // @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
| # WSL Host Proxy zsh Plugin | |
| # Description: 自动在 WSL 中根据宿主机网关动态设置 http_proxy 和 https_proxy | |
| # Usage: | |
| # 1. 将此文件放到 ~/.oh-my-zsh/custom/plugins/wsl-host-proxy/wsl-host-proxy.plugin.zsh | |
| # 2. 在 ~/.zshrc 的 plugins=(...) 中添加 "wsl-host-proxy" | |
| # 3. 重新加载 zsh:`source ~/.zshrc` | |
| # ===== 配置 ===== | |
| # 可在 ~/.zshrc 中自定义 PROXY_PORT(默认 7890) | |
| : ${PROXY_PORT:=7890} |
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 | |
| GITHUB_USERNAME="dongfg" | |
| AUTHORIZED_KEYS_FILE="$HOME/.ssh/authorized_keys" | |
| ALLOWED_KEY_TYPE="ssh-ed25519" | |
| if [ ! -d "$HOME/.ssh" ]; then | |
| mkdir -p "$HOME/.ssh" | |
| chmod 700 "$HOME/.ssh" |
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 Find-Command($cmdname) { | |
| return [bool](Get-Command -Name $cmdname -ErrorAction SilentlyContinue) | |
| } | |
| function Download-FileIfNotExists { | |
| param ( | |
| [string]$LocalFilePath, | |
| [string]$RemoteUrl | |
| ) |
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
| @file:Suppress("UnstableApiUsage") | |
| object MavenMirror { | |
| const val CENTRAL = "https://mirrors.huaweicloud.com/repository/maven/" | |
| const val GOOGLE = "https://maven.aliyun.com/repository/google/" | |
| const val GRADLE_PLUGIN = "https://maven.aliyun.com/repository/gradle-plugin/" | |
| } | |
| val mirrorMapping = listOf( | |
| "https://repo1.maven.org/maven2" to MavenMirror.CENTRAL, |
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 removeAttributes(node) { | |
| if(!node.attributes) { | |
| return; | |
| } | |
| for (var i = node.attributes.length - 1; i >= 0; i--) { | |
| node.removeAttribute(node.attributes[i].name); | |
| } | |
| // 对于元素节点,递归处理其子节点 | |
| if (node.nodeType === Node.ELEMENT_NODE) { | |
| for (var child of node.childNodes) { |
NewerOlder