https://github.com/js4jiang5/BatteryOptimizer_for_MAC
curl -s https://raw.githubusercontent.com/js4jiang5/BatteryOptimizer_for_MAC/main/setup.sh | bash
https://github.com/js4jiang5/BatteryOptimizer_for_MAC
curl -s https://raw.githubusercontent.com/js4jiang5/BatteryOptimizer_for_MAC/main/setup.sh | bash
{ | |
// vscode全局 彩色设置 | |
// Controls whether bracket pair colorization is enabled or not. Use 'workbench.colorCustomizations' to override the bracket highlight colors. | |
"editor.bracketPairColorization.enabled": true, | |
// Controls whether the editor should render indent guides. | |
"editor.guides.indentation": true, | |
// Controls whether bracket pair guides are enabled or not. | |
// - true: Enables bracket pair guides. | |
// - active: Enables bracket pair guides only for the active bracket pair. | |
// - false: Disables bracket pair guides. |
// clang++ -std=c++17 -o main main.cpp | |
#include <iostream> | |
#include <thread> | |
#include <mutex> | |
#include <condition_variable> | |
#include <queue> | |
#include <future> | |
constexpr size_t kMaxQueueSize = 10; |
import base64 | |
import xxhash | |
import struct | |
cryptoKey = b"e806f6" | |
pref_key = b"EEtVRBZECl5ZWgM=" | |
pref_str = b'DlEAHBUACB9LVkdRChIaRhQQHQAAFwsbDwQJF0cCEgdXGURESkBAQ1ZGWVtfUA8KAl4UWVNHEAUcCwoMGAwIXUIUXBRFQkpCQV1fVlldRVUICgZWDEVDR15QUAcJHB4JHExZWwNEV0lHQ0FdXlFGXlVUARAGUQxEQ19BQ1BDRksEChBKXE8SXxgWFy00Ex0NS1ZHVQkfBlcZRUNVQ1BCX1xZXF9VCBIaRhQREgweCQYGCwweR18aAQdJB0JcV0JBS09WXlZUVQIDBUQaVVEEABUcDi0MFTEMVVVERAxXQ1RdQENAVllcVEUIAAxWBk9DVVBcUk0CGwMVEVFdUxQUT1FUQ19DWElbXFRcGAABXAdFSVZBUl5PRA0NFw5nVEQJRgEaCBcCUFVEWV1KVQkfBlYGRFNVQkpCX1xZXEdJGBJRCVoRUV9QQkJfVllcVVUIABRKFlcXBAAbLQQDEB9HXxoAFEoWVxgACwNQVURbXFVVCAAGVgZFUUlSUhUKCxpOX0cKAAZWBkVDVUJAUENGSxQVRwISBFMUWVNHAQQTHRVLVkdUChIaRhQGBwQAAy0LBxsHR18aABRKFlcLFR4VBAoKS1ZHVxocFkRCHB4AASAeDh8MCEdfGgAUShZXEA0XAwYjAx8JCUcCEgZEGlVRBhoVARslBhkLEV1CFFwURVFJUlIRBwcZGAAXaEJZAUQQABZQSlBfSllAVUkIHAZKBldfRVATGg4WHQkXNUpfURRTBgA6NhEABERTTlVJCBwGSgZZQ0lCUl5PRBoZByldRlMKRVdJR15DXikHBR8AOhQDGiBXGQAALVxBQyAIABYAZxwFSnAUHxYXL1BDRksfEAd0VUADWgYsIRMCGU1cS05JRRpEWQ1TGwBHSFIpT0Y0TklFGlZfAUMHGgsXA1B |
安装以下两个插件:
扩展之后的语法有admonition功能:
!!! note 笔记 参考:
https://squidfunk.github.io/mkdocs-material/extensions/admonition/
ln -s /path/to/original /path/to/symlink |
$ pkg install sudo nano
$ pkg install xfce
# upgrade node | |
$ brew update | |
$ brew doctor | |
$ brew upgrade node |
# output -> clipboard | |
$ ls | pbcopy | |
# clipboard -> save to file | |
$ pbpaste > ls.txt | |
# transform contents in clipboard. rot13: | |
$ pbpaste | tr 'a-zA-Z' 'n-za-mN-ZA-M' | pbcopy |
$ git clone git@github.com:neonmori/repo.git | |
$ cd repo | |
$ git checkout --orphan gh-pages | |
# Creates our branch, without any parents (it's an orphan!) | |
# Switched to a new branch 'gh-pages' | |
$ git rm -rf . | |
# Remove all files from the old working tree | |
# rm 'blah blah' |