Windows 下的 git 代理配置
经过不断的尝试,我找到找到了属于我的正确配置方法
Host github.com
User git
Port 443
Hostname ssh.github.com
IdentityFile "C:\Users\用户名\.ssh\id_rsa"
| #!/bin/bash | |
| # 一键配置 sudo 密码输入是否显示星号 | |
| # 用法: ./pwfeedback.sh on|off | |
| set -e | |
| CONFIG_FILE="/etc/sudoers.d/0pwfeedback" | |
| if [ "$EUID" -ne 0 ]; then | |
| echo "请使用 root 或 sudo 运行该脚本" |
| #!/usr/bin/env bash | |
| set -e | |
| echo "[1/6] 安装 cloudflared..." | |
| if ! command -v cloudflared >/dev/null 2>&1; then | |
| wget -q https://ghfast.top/https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb -O /tmp/cloudflared.deb | |
| sudo dpkg -i /tmp/cloudflared.deb || sudo apt-get install -f -y | |
| rm -f /tmp/cloudflared.deb | |
| else | |
| echo "cloudflared 已安装,跳过。" |
| # ts转码成mp4 | |
| from http.server import executable | |
| import os | |
| import ffmpy | |
| for file in os.listdir('.'): | |
| if file.endswith('ts'): | |
| print(f'处理文件:{file}') | |
| new_file = file[:-3] + '.mp4' |
| # 代码来自 https://www.52pojie.cn/thread-870075-1-1.html | |
| import re, os, struct | |
| def exe2swf(path_list): | |
| notexeflash = [] | |
| exe2swf_done = [] | |
| for path in path_list: | |
| with open(path, 'rb') as f1: |
Windows 下的 git 代理配置
经过不断的尝试,我找到找到了属于我的正确配置方法
Host github.com
User git
Port 443
Hostname ssh.github.com
IdentityFile "C:\Users\用户名\.ssh\id_rsa"
| import os | |
| import shutil | |
| current_path = os.path.abspath('.') | |
| exclude_path = [ | |
| os.path.join(current_path, '.idea'), | |
| os.path.join(current_path, '.git'), | |
| os.path.join(current_path, 'venv'), | |
| ] |
| class Heading { | |
| public int Id { get; set; } | |
| public int Pid { get; set; } = -1; | |
| public string? Text { get; set; } | |
| public string? Slug { get; set; } | |
| public int Level { get; set; } | |
| } | |
| public class TocNode { | |
| public string? Text { get; set; } |
| import enum | |
| import os | |
| import math | |
| import textwrap | |
| from PIL import Image, ImageFont, ImageDraw, ImageEnhance, ImageChops, ImageOps | |
| class WatermarkerStyles(enum.Enum): | |
| """水印样式""" | |
| # 斜向重复 |
| void main() { | |
| Global.init().then((value) { | |
| runApp(MyApp()); | |
| }); | |
| if (Platform.isAndroid) { | |
| // 以下两行 设置android状态栏为透明的沉浸。写在组件渲染之后,是为了在渲染后进行set赋值,覆盖状态栏,写在渲染之前MaterialApp组件会覆盖掉这个值。 | |
| var systemUiOverlayStyle = SystemUiOverlayStyle(statusBarColor: Colors.transparent); | |
| SystemChrome.setSystemUIOverlayStyle(systemUiOverlayStyle); | |
| } |