Do it:
usb in:
- Check PCI Status
- Start ADB Service(-a)
- Check ADB Auth
- Start WiFi-ADB
ADB Forward TO OpenWrt
Do it:
usb in:
Ventura docs for M2 Macs in this comment: https://gist.github.com/henrik242/65d26a7deca30bdb9828e183809690bd?permalink_comment_id=4555340#gistcomment-4555340
Old Monterey docs in this old revision: https://gist.github.com/henrik242/65d26a7deca30bdb9828e183809690bd/32c410e3a1de73539c76fa13ea5486569c4e0c5d
Solution for Sonoma: https://gist.github.com/sghiassy/a3927405cf4ffe81242f4ecb01c382ac
name: PR 预处理 | |
on: | |
push: | |
branches: | |
- 'feature/**' | |
permissions: | |
pull-requests: write | |
jobs: |
name: 编译测试 | |
# 该脚本仅在 PR MERGE 的时候进行测试,不建议 将测试结果上传到 github | |
# 可以通过变量来判断,比如 PR close 的时候 发布 github release & tag | |
on: | |
pull_request: | |
branches: | |
- master # 正式版本 | |
types: | |
- synchronize |
if curl -s -m 5 -o /dev/null -w "%{http_code}" www.google.com | grep -q "200"; then | |
echo "true" | |
else | |
echo "false" | |
fi |
FROM ubuntu:20.04 | |
WORKDIR /app | |
RUN apt-get -qq update \ | |
&& apt-get -qq upgrade \ | |
&& ln -sf "/usr/share/zoneinfo/${TZ}" /etc/localtime \ | |
&& echo "${TZ}" > /etc/timezone \ | |
&& ln -sf "$(which bash)" "$(which sh)" \ | |
&& apt-get -qq full-upgrade \ |
search unix2dos search dos2unix
[ apt | brew | yum ] install unix2dos
module testnetwork | |
go 1.18 | |
require github.com/fatih/color v1.13.0 | |
require ( | |
github.com/mattn/go-colorable v0.1.9 // indirect | |
github.com/mattn/go-isatty v0.0.14 // indirect | |
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 // indirect |
TOKEN="ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" | |
USER_NAME="Ran-Xing" | |
jq '.[].ssh_url' <(curl \ | |
-s \ | |
-H "Accept: application/vnd.github+json" \ | |
-H "Authorization: token $TOKEN" \ | |
"https://api.github.com/users/$USER_NAME/repos?type=all&sort=&direction=&per_page=100&page=") \ | |
| grep $USER_NAME | |
$portvalue = 33891 | |
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "PortNumber" -Value $portvalue | |
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp' -name "PortNumber" -Value $portvalue | |
New-NetFirewallRule -DisplayName 'RDPPORTLatest-TCP-In' -Program "%SystemRoot%\system32\svchost.exe" -Profile Any -Direction Inbound -Action Allow -Protocol TCP -LocalPort $portvalue | |
New-NetFirewallRule -DisplayName 'RDPPORTLatest-UDP-In' -Program "%SystemRoot%\system32\svchost.exe" -Profile Any -Direction Inbound -Action Allow -Protocol UDP -LocalPort $portvalue | |
Get-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "PortNumber" | |
Get-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp' -name "PortNumber" |