# https://developer.aliyun.com/article/110806
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://mirrors.aliyun.com/docker-ce/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
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
| import base64 | |
| import os | |
| import subprocess | |
| # ================= 配置区 ================= | |
| VIDEO_PATH = "11.mp4" # 你的视频文件路径 | |
| OUTPUT_HTML = "video_player.html" # 最终生成的单网页文件名 | |
| ENABLE_TRANSCODE = True # 是否开启 ffmpeg 兼容性转码 (True/False) | |
| # ========================================== |
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
| # Split-Log.ps1 (v4 - Built-in Exclude Filter) | |
| [CmdletBinding()] | |
| param ( | |
| # 这个参数用来接收来自管道的每一行输入 | |
| [Parameter(ValueFromPipeline = $true)] | |
| [string]$InputLine, | |
| # ----- 以下是配置参数 ----- |
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
| #pragma once | |
| #include <fmt/color.h> | |
| #include <spdlog/details/pattern_formatter.h> | |
| #include <spdlog/sinks/sink.h> | |
| class sink : public spdlog::sinks::sink { | |
| public: | |
| sink(spdlog::color_mode mode = spdlog::color_mode::automatic) { | |
| styles_[spdlog::level::trace] = fmt::fg(fmt::terminal_color::bright_black) | fmt::emphasis::bold; | |
| styles_[spdlog::level::debug] = fmt::fg(fmt::terminal_color::bright_white) | fmt::emphasis::bold; |
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
| func getEnvOrPanic(env string) string { | |
| res := os.Getenv(env) | |
| if len(res) == 0 { | |
| panic("Mandatory env variable not found:" + env) | |
| } | |
| return strings.TrimSpace(res) | |
| } | |
| //after read config | |
| for _, k := range viper.allkeys() { |
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
| # Detect operating system in Makefile. | |
| # Author: He Tao | |
| # Date: 2015-05-30 | |
| OSFLAG := | |
| ifeq ($(OS),Windows_NT) | |
| OSFLAG += -D WIN32 | |
| ifeq ($(PROCESSOR_ARCHITECTURE),AMD64) | |
| OSFLAG += -D AMD64 | |
| endif |
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
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "os" | |
| "os/signal" | |
| "syscall" | |
| "time" |
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
| node_modules | |
| dist/ | |
| yarn.lock | |
| wwwroot |
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
| using System.Collections.Generic; | |
| using UnityEditor; | |
| using UnityEditor.Build; | |
| using UnityEditor.Rendering; | |
| using UnityEngine; | |
| using UnityEngine.Rendering; | |
| using LitJson; | |
| using UnityEditor.Build.Reporting; | |
| public class ShaderVariantsStripper : IPreprocessShaders, IPreprocessBuildWithReport |
NewerOlder