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 | |
| set -e | |
| # ========================= | |
| # 检查 sudo | |
| # ========================= | |
| check_sudo() { | |
| if ! command -v sudo >/dev/null 2>&1; then | |
| echo "⚠️ 未检测到 sudo" | |
| read -p "是否现在安装 sudo? (Y/n): " INSTALL_SUDO |
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
| // | |
| // FakeBar.swift | |
| // Demo | |
| // | |
| // Created by cy on 2022/2/11. | |
| // | |
| import UIKit | |
| class FakeBar: UIView { |
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
| git config --global http.proxy http://127.0.0.1:6152 | |
| git config --global https.proxy https://127.0.0.1:6152 | |
| git config --global --unset http.proxy | |
| git config --global --unset https.proxy | |
| // Default Branch Name | |
| git config --global init.defaultBranch main |