国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
| #!/usr/bin/env bash | |
| # Download KubeCon + CloudNativeCon Europe 2018 presentations from Sched | |
| # Forked https://gist.github.com/hobbsh/35091c54970fff0b86a64cd72f02e8e3 | |
| DAYS=("2018-04-30" "2018-05-01" "2018-05-02" "2018-05-03" "2018-05-04") | |
| for DAY in "${DAYS[@]}"; do | |
| mkdir -p "kccnceu18/${DAY}" | |
| LINKS=($(curl -s https://kccnceu18.sched.com/${DAY}/overview | grep -oEi "f='(.*)' cl" | cut -d\' -f 2 | tr '\n' ' ')) | |
| for LINK in "${LINKS[@]}"; do |
| SELECT table, | |
| formatReadableSize(sum(bytes)) as size, | |
| min(min_date) as min_date, | |
| max(max_date) as max_date | |
| FROM system.parts | |
| WHERE active | |
| GROUP BY table |
| git branch -m old_branch new_branch # Rename branch locally | |
| git push origin :old_branch # Delete the old branch | |
| git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |