Skip to content

Instantly share code, notes, and snippets.

@longqimin
longqimin / docker-registry-mirrors.md
Created August 13, 2024 01:58 — forked from y0ngb1n/docker-registry-mirrors.md
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized
@longqimin
longqimin / run_perf.sh
Created February 2, 2023 08:14
Run an command, perf on it and generate flamegraph
#!/bin/bash
# usage: ./run_perf.sh command [args]
# example: ./run_perf.sh ls -l
echo "Start perf on : $*"
perf record -g $*
perf script -i perf.data &> perf.unfold
@longqimin
longqimin / denoise.sh
Created January 16, 2023 06:07 — forked from alecjacobson/denoise.sh
Remove background audio noise from a video clip via the command line (using ffmpeg and sox)
#!/bin/bash
if [ -z "$2" ];then
echo 'USAGE:
denoise input.mov output.mov
OR
denoise input.mov output.mov [ambient-noise-start-time] [ambient-noise-duration] [sox-noisered-amount] [sox-norm-param]