注意:本文内容适用于 Tmux 2.3 及以上的版本,但是绝大部分的特性低版本也都适用,鼠标支持、VI 模式、插件管理在低版本可能会与本文不兼容。
启动新会话:
tmux [new -s 会话名 -n 窗口名]
恢复会话:
| #!/bin/bash | |
| ################################ | |
| # OS X Install ISO Creater # | |
| # # | |
| # Author: shela # | |
| ################################ | |
| ####################################### | |
| # Declarations |
| #!/bin/bash | |
| method=$1 | |
| ss-tunnel -k test -m $method -l 8387 -L 127.0.0.1:8388 -s 127.0.0.1 -p 8389 & | |
| ss_tunnel_pid=$! | |
| ss-server -k test -m $method -s 127.0.0.1 -p 8389 & | |
| ss_server_pid=$! | |
| iperf -s -p 8388 & |
For an emulator that mimics a Pixel 5 Device with Google APIs and ARM architecture (for an M1/M2 Macbook):
List All System Images Available for Download: sdkmanager --list | grep system-images
Download Image: sdkmanager --install "system-images;android-30;google_atd;arm64-v8a"
| [ | |
| { code: 'AD', label: 'Andorra', phone: '376', phoneLength: 6}, | |
| { code: 'AE', label: 'United Arab Emirates', phone: '971', phoneLength: 9}, | |
| { code: 'AF', label: 'Afghanistan', phone: '93', phoneLength: 9}, | |
| { code: 'AG', label: 'Antigua and Barbuda', phone: '1-268', phoneLength: 10}, | |
| { code: 'AI', label: 'Anguilla', phone: '1-264', phoneLength: 10}, | |
| { code: 'AL', label: 'Albania', phone: '355', phoneLength: 9}, | |
| { code: 'AM', label: 'Armenia', phone: '374', phoneLength: 6}, | |
| { code: 'AO', label: 'Angola', phone: '244', phoneLength: 9}, | |
| { code: 'AQ', label: 'Antarctica', phone: '672', phoneLength: 6}, |
Chose between natural mode like MacOS or Windows default mode.
You can do this by going to Start Menu, type PowerShell, and click Run as Administrator.
$mode = Read-host "How do you like your mouse scroll (0 or 1)?"; Get-PnpDevice -Class Mouse -PresentOnly -Status OK | ForEach-Object { "$($_.Name): $($_.DeviceID)"; Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Enum\$($_.DeviceID)\Device Parameters" -Name FlipFlopWheel -Value $mode; "+--- Value of FlipFlopWheel is set to " + (Get-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Enum\$($_.DeviceID)\Device Parameters").FlipFlopWheel + "`n" }
| import Quartz as QZ | |
| import Quartz.CoreGraphics as CG | |
| import AppKit as AK | |
| import numpy as np | |
| import numpy.typing as npt | |
| import typing as t | |
| Matcher = t.Callable[[dict[str, t.Any]], bool] |