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
| user www-data; | |
| http { | |
| ## | |
| # Basic Settings | |
| ## | |
| sendfile on; | |
| tcp_nopush on; |
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 net = require('net') | |
| net.createServer(client => { | |
| client.once('data', data => { | |
| client.write(Buffer.from([5, 0])); | |
| client.once('data', data => { | |
| data = [...data]; | |
| let ver = data.shift(); | |
| let cmd = data.shift(); //1: connect, 2: bind, 3: udp | |
| let rsv = data.shift(); |
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
| addEventListener('fetch', (event) => { | |
| const url = new URL(event.request.url); | |
| thisProxyServerUrlHttps = `${url.protocol}//${url.hostname}/`; | |
| thisProxyServerUrl_hostOnly = url.host; | |
| //console.log(thisProxyServerUrlHttps); | |
| //console.log(thisProxyServerUrl_hostOnly); | |
| event.respondWith(handleRequest(event.request)); | |
| }); |
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 './index.less'; | |
| import React, { useRef } from 'react'; | |
| import cs from 'classnames'; | |
| export interface DragFlowProps<T> { | |
| data: T[]; | |
| renderItem: (item: T, index?: number) => React.ReactNode; | |
| /** | |
| * `onSortEnd` 拖拽结束触发,将排序结果传入该函数 | |
| */ |
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
| general: | |
| # Commands to run when the WM has started. This is useful for running a | |
| # script or launching another application. | |
| # Example: The below command launches Zebar. | |
| startup_commands: [] | |
| # Commands to run just before the WM is shutdown. | |
| # Example: The below command kills Zebar. | |
| shutdown_commands: [] |
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 | |
| # 设备 A 的 Tailscale IP | |
| REMOTE_IP="100.100.120.233" | |
| echo "------------------------------------------" | |
| echo "🔍 正在通过 ifconfig 检测本地 IP..." | |
| echo "------------------------------------------" | |
| # 直接使用 ifconfig 过滤显示非本地和非 Tailscale 的 IP |
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 | |
| # ==================================================== | |
| # 配置区域 | |
| # ==================================================== | |
| # 目标电脑(被控端)的 IP 地址(如 Tailscale IP 或局域网 IP) | |
| REMOTE_IP="100.100.120.233" | |
| # RDP 默认端口 | |
| RDP_PORT=3389 |
OlderNewer