国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
Ubuntu 16.04+、Debian 8+、CentOS 7+
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
Ubuntu 16.04+、Debian 8+、CentOS 7+
| #!/bin/bash | |
| for port in {1..9999}; do | |
| echo -n "TCP $port: " | |
| result=$(nc "$1" "$port" -w 1 2>&1 < /dev/null) | |
| if [ "$?" -eq 0 ]; then | |
| echo "Open" | |
| continue | |
| fi | |
| if [[ "$result" == *refused* ]]; then |
| #!/bin/bash | |
| zone_name=$1 | |
| record_name=$2 | |
| api_key=$3 | |
| current_ip=`curl -s https://api.ipify.org` | |
| zone_id=`curl -s -X GET "https://api.cloudflare.com/client/v4/zones" \ | |
| -H "Authorization: Bearer ${api_key}" -H "Content-Type: application/json" \ | |
| | jq -r ".result | .[] | select(.name == \"${zone_name}\") | .id"` |
| #!/bin/bash | |
| zone_name=$1 | |
| record_name=$2 | |
| api_key=$3 | |
| current_ip=`curl -s https://api.ipify.org` | |
| zone_id=`curl -s -X GET "https://api.cloudflare.com/client/v4/zones" \ | |
| -H "Authorization: Bearer ${api_key}" -H "Content-Type: application/json" \ | |
| | jq -r ".result | .[] | select(.name == \"${zone_name}\") | .id"` |
To install tcptraceroute on Debian/Ubuntu:
$ sudo apt-get install tcptracerouteTo install tcptraceroute on CentOS/REHL, first set up RepoForge on your system, and then:
$ sudo yum install tcptracerouteNot just an Universal MediaCreationTool wrapper script with ingenious support for business editions,
A powerful yet simple windows 10 / 11 deployment automation tool as well!
configure via set vars, commandline parameters or rename script like
iso 21H2 Pro MediaCreationTool.bat
recommended windows setup options with the least amount of issues on upgrades already set
awesome keyboard focus dialogs to pick windows version and enhanced preset action
Auto Setup for upgrading directly with the auto-detected Edition, Language, Architecture *
- can troubleshoot auto setup failing by addingno_updateto script name
| #!/usr/bin/env bash | |
| set -o errexit | |
| set -o nounset | |
| set -o pipefail | |
| # Automatically update your CloudFlare DNS record to the IP, Dynamic DNS | |
| # Can retrieve cloudflare Domain id and list zone's, because, lazy | |
| # Place at: | |
| # /usr/local/bin/cf-ddns.sh |
| @echo off | |
| ::配置BAT对话框样式 | |
| title KMS服务器检查脚本 | |
| MODE con: COLS=42 lines=8 | |
| color 0a | |
| ::检测vlmcs.exe |
| TARGET="/Volumes/Macintosh HD" # Specify where to configure Recovery partition | |
| MACOS_INSTALLER="/Applications/Install\ macOS\ Sierra.app" # Path to your macOS installer | |
| # Remaining paths ahead are dependant on OS version | |
| # This *should* support 10.9 and above but is only tested on 10.12 | |
| curl http://support.apple.com/downloads/DL1464/en_US/RecoveryHDUpdate.dmg -L -o ~/Downloads/RecoveryHDUpdate.dmg | |
| hdiutil mount ~/Downloads/RecoveryHDUpdate.dmg | |
| pkgutil --expand /Volumes/Mac\ OS\ X\ Lion\ Recovery\ HD\ Update/RecoveryHDUpdate.pkg /tmp/recoveryupdate |