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
| 0x05, 0x01, // Usage Page (Generic Desktop Ctrls) | |
| 0x15, 0x00, // Logical Minimum (0) | |
| 0x09, 0x04, // Usage (Joystick) | |
| 0xA1, 0x01, // Collection (Application) | |
| 0x85, 0x30, // Report ID (48) | |
| 0x05, 0x01, // Usage Page (Generic Desktop Ctrls) | |
| 0x05, 0x09, // Usage Page (Button) | |
| 0x19, 0x01, // Usage Minimum (0x01) | |
| 0x29, 0x0A, // Usage Maximum (0x0A) | |
| 0x15, 0x00, // Logical Minimum (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
| $upnppath = 'HKLM:\System\CurrentControlSet\Enum\SWD\DAFUPnPProvider' | |
| $upnpdevices = Get-ChildItem $upnppath | Get-ItemProperty -name 'FriendlyName' | |
| foreach ($upnpdevice in $upnpdevices) { | |
| if ($upnpdevice.'FriendlyName' -ne 'I wont be deleted') { | |
| $name = $upnpdevice.PSChildName | |
| echo "Deleting $name" | |
| pnputil /remove-device "SWD\DAFUPnPProvider\$name" | |
| } | |
| } |
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
| # /lib/firmware/brcm/brcmfmac43340-sdio.txt works on my CHUWI Hibox | |
| # previous version 5G does not work | |
| manfid=0x2d0 | |
| prodid=0x0653 | |
| vendid=0x14e4 | |
| devid=0x4386 | |
| boardtype=0x0653 | |
| boardrev=0x1203 | |
| boardnum=22 | |
| macaddr=02:0A:F7:2A:3B:4C |
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
| use protocol::*; | |
| use deku::prelude::*; | |
| use tokio::prelude::*; | |
| use std::{io, collections::VecDeque}; | |
| const HEADER_LEN: usize = 1 + 4; | |
| fn other<E: std::error::Error + Send + Sync + 'static>(err: E) -> io::Error { | |
| io::Error::new(io::ErrorKind::Other, err) | |
| } |
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
| //------------------------------------------------ | |
| //--- 010 Editor v9.0.2 Binary Template | |
| // | |
| // File: ldn_frame | |
| // Authors: spacemeowx2 | |
| // Version: 0.1.0 | |
| // Purpose: | |
| // Category: | |
| // File Mask: | |
| // ID Bytes: |
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
| pkg install -y cmake make clang libpcap-dev git | |
| git clone https://github.com/spacemeowx2/switch-lan-play.git | |
| mkdir switch-lan-play/build | |
| pushd switch-lan-play/build | |
| cmake .. | |
| make | |
| popd | |
| cp ./switch-lan-play/build/src/lan-play . |
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 0.1 | |
| // @description 自动选b站开播分区 | |
| // @author You | |
| // @match https://link.bilibili.com/p/center/index | |
| // @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
| Play this game by pasting the script in http://www.puzzlescript.net/editor.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
| function gqlPing(server, delay = 0) { | |
| return new Promise((res, rej) => { | |
| const ws = new WebSocket(`ws://${server}`, 'graphql-ws') | |
| let timeoutId = undefined | |
| let lastTime = undefined; | |
| const doPing = () => { | |
| ws.send(`{"id":"1","type":"start","payload":{"variables":{},"extensions":{},"operationName":null,"query":"subscription{serverInfo{online}}"}}`) | |
| lastTime = Date.now() | |
| } | |
| ws.onmessage = (e) => { |
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 DELAY_TIME = 1000 | |
| async function getRepost(page) { | |
| let res = await fetch(`https://m.weibo.cn/api/statuses/repostTimeline?id=4211254174873514&page=${page}`) | |
| let obj = await res.json() | |
| if (obj.ok !== 1) { | |
| return false | |
| } | |
| return obj.data.data | |
| } | |
| async function getComment(page) { |
NewerOlder