Skip to content

Instantly share code, notes, and snippets.

View alwqx's full-sized avatar
🎯
Focusing

alwqx

🎯
Focusing
View GitHub Profile
@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active May 6, 2025 01:25
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized
@superbrothers
superbrothers / kccnceu18-dl.sh
Last active May 10, 2019 08:05
Download KubeCon + CloudNativeCon Europe 2018 presentations from Sched
#!/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
@sanchezzzhak
sanchezzzhak / clickhouse-get-tables-size.sql
Created January 18, 2018 13:43
clickhouse get tables size
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
@subfuzion
subfuzion / curl.md
Last active April 30, 2025 20:39
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@stuart11n
stuart11n / gist:9628955
Created March 18, 2014 20:34
rename git branch locally and remotely
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