注意:本文内容适用于 Tmux 2.3 及以上的版本,但是绝大部分的特性低版本也都适用,鼠标支持、VI 模式、插件管理在低版本可能会与本文不兼容。
启动新会话:
tmux [new -s 会话名 -n 窗口名]
恢复会话:
| # Note: You MUST have curl 7.47+ with http/2 support compiled in | |
| curl -v \ | |
| -d '{"aps":{"alert":"<message>","badge":42}}' \ | |
| -H "apns-topic: <bundle id>" \ | |
| -H "apns-priority: 10" \ | |
| --http2 \ | |
| --cert <certificate file> \ | |
| https://api.development.push.apple.com/3/device/<device token> |
| Generating random data (100.00MB) | |
| Start benchmark rc4-md5 | |
| Encrypt data in 0.224s | |
| Decrypt data in 0.222s | |
| Start benchmark aes-128-cfb | |
| Encrypt data in 0.599s | |
| Decrypt data in 0.597s | |
| Start benchmark aes-256-cfb |
| <!-- Add this file to: ~/Library/Developer/Xcode/UserData/FontAndColorThemes (Create folder if does not exist)--> | |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>DVTConsoleDebuggerInputTextColor</key> | |
| <string>0.901961 0.831373 0.639216 1</string> | |
| <key>DVTConsoleDebuggerInputTextFont</key> | |
| <string>SFMono-Bold - 11.0</string> | |
| <key>DVTConsoleDebuggerOutputTextColor</key> |
| // SwiftUI Custom Styles (TripleToggleStyle) | |
| // https://swiftui-lab.com | |
| // https://swiftui-lab.com/custom-styling | |
| import SwiftUI | |
| // MARK: - TripleToggle View | |
| public struct TripleToggle: View { | |
| @Environment(\.tripleToggleStyle) var style: AnyTripleToggleStyle | |
Below are a list of System Preference pane URLs and paths that can be accessed with scripting to assist users with enabling macOS security settings without having to walk them through launching System Preferences, finding panes, and scrolling to settings. Not all panes have an accessible anchor and some are OS specific.
To find the Pane ID of a specific pane, open the System Preferences app and select the desired Preference Pane. With the pane selected, open the ScriptEditor.app and run the following script to copy the current Pane ID to your clipboard and display any available anchors:
tell application "System Preferences"
set CurrentPane to the id of the current pane
set the clipboard to CurrentPane| import SwiftUI | |
| struct ContentView: View { | |
| // sample of data was compiled using the following sources: | |
| // https://birdgei.com/2011/08/30/list-of-100-irregular-plural-nouns-in-english/ | |
| // https://www.grammarly.com/blog/plural-nouns/ | |
| // https://www.thoughtco.com/irregular-plural-nouns-in-english-1692634 | |
| // https://www.ef.co.uk/english-resources/english-grammar/singular-and-plural-nouns/ | |