通过OpenWrt官方构建自定义固件
构建OpenWrt固件的方式有很多,常见的有:Linux中基于源码构建、GitHub Action基于源码构建、Linux中基于imagebuilder构建、Docker中基于imagebuilder构建以及网页基于imagebuilder构建。 ...
构建OpenWrt固件的方式有很多,常见的有:Linux中基于源码构建、GitHub Action基于源码构建、Linux中基于imagebuilder构建、Docker中基于imagebuilder构建以及网页基于imagebuilder构建。 ...
code-server可以在浏览器中打开VS Code 我们通过Docker来部署code-server,通过nginx进行代理访问 Docker部署code-server 这是完整的docker-compose.yaml ...
安装register和register-ui 通过docker-compose安装register和docker-register-ui version: "3" networks: registry: driver: bridge x-app: &common restart: always logging: driver: "json-file" options: max-size: "200k" max-file: "10" networks: - registry services: registry: <<: *common image: registry:2 container_name: registry volumes: - ./registry:/var/lib/registry environment: # 允许API访问和删除镜像 REGISTRY_HTTP_HEADERS_Access-Control-Allow-Origin: '[https://registry.example.com]' REGISTRY_HTTP_HEADERS_Access-Control-Allow-Methods: '[HEAD,GET,OPTIONS,DELETE]' REGISTRY_HTTP_HEADERS_Access-Control-Allow-Credentials: '[true]' REGISTRY_HTTP_HEADERS_Access-Control-Allow-Headers: '[Authorization,Accept,Cache-Control]' REGISTRY_HTTP_HEADERS_Access-Control-Expose-Headers: '[Docker-Content-Digest]' # 通过摘要删除图像 blob 和清单 REGISTRY_STORAGE_DELETE_ENABLED: true # 定期从注册表的上传目录中删除孤立文件 REGISTRY_STORAGE_MAINTENANCE: |- uploadpurging: enabled: true age: 168h interval: 24h dryrun: false readonly: enabled: false ports: - 5000:5000 healthcheck: test: "wget -q --spider --proxy off 0.0.0.0:5000/v2 || exit 1" interval: 5s timeout: 10s retries: 10 registry-ui: <<: *common image: joxit/docker-registry-ui container_name: registry-ui environment: SINGLE_REGISTRY: true REGISTRY_TITLE: 'Docker Registry UI' DELETE_IMAGES: true SHOW_CONTENT_DIGEST: true NGINX_PROXY_PASS_URL: 'http://registry:5000' SHOW_CATALOG_NB_TAGS: true CATALOG_MIN_BRANCHES: 1 CATALOG_MAX_BRANCHES: 1 TAGLIST_PAGE_SIZE: 100 REGISTRY_SECURED: false CATALOG_ELEMENTS_LIMIT: 1000 ports: - 80:80 depends_on: registry: condition: service_healthy 通过docker-compose up -d启动容器。 ...
注册Github OAuth应用 访问https://github.com/settings/applications/new进行注册 ...
创建博客 安装Hugo brew install hugo git-lfs git lfs install 创建一个新的博客目录 hugo new site blog.liwt.top --format yaml 设置PaperMod主题 cd blog.liwt.top git init git submodule add --depth=1 https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod echo 'theme: PaperMod' >> hugo.yaml # 重新clone仓库时需要手动克隆子库 git submodule update --init --recursive # 更新主题 git submodule update --remote --merge 调整hugo.yaml配置 ...
备份 mkdir backup cd backup brew list > brew-liwt.txt ls /Applications > Applications.txt rsync -rR ~/.bash_profile ~/.config/clash ~/.docker/{config.json,daemon.json} ~/.gitconfig ~/.gitignore_global ~/.gradle/init.gradle ~/.jetbrains ~/.jetbrains.vmoptions.sh ~/.kube ~/.m2/settings.xml ~/.npmrc ~/.ssh ~/.yarnrc ~/.zshrc . 重装系统 重新启动 启动时按住Commond + R,直到出现 清理磁盘 重新安装系统 安装软件 export all_proxy=socks5://192.168.0.2:1080 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" (echo; echo 'eval "$(/usr/local/bin/brew shellenv)"') >> /Users/liweitao/.zprofile\n eval "$(/usr/local/bin/brew shellenv)" brew update brew install --cask google-chrome qq wechat balenaetcher redisinsight docker finalshell goland intellij-idea webstorm pycharm sublime-text sunloginclient iina telegram mailmaster microsoft-remote-desktop tunnelblick openvpn-connect neteasemusic netnewswire obsidian visual-studio-code wpsoffice-cn caffeine tabby bob brew install nvm go hugo maven sqlite mvnvm git-lfs git lfs install sudo ln -sfn $HOMEBREW_PREFIX/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk nvm install v18.19.0 nvm use v18.19.0 npm install -g yarn git clone https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k git clone https://github.com/zsh-users/zsh-completions $ZSH_CUSTOM:/plugins/zsh-completions git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" p10k configure .zshrc ...