Skip to content

Instantly share code, notes, and snippets.

View cgoder's full-sized avatar

gcoder cgoder

View GitHub Profile
@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active November 7, 2025 17:45
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized
@imcaspar
imcaspar / videocj.sh
Last active November 30, 2020 10:02
cut/join videos using ffmpeg without quality loss
#!/bin/bash
#cut/join videos using ffmpeg without quality loss
if [ "$(uname)" == "Darwin" ]; then
if ! [ -x "$(command -v brew)" ]; then
echo 'homebrew is not installed.'
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
if ! [ -x "$(command -v ffmpeg)" ]; then
echo 'ffmpeg is not installed.'
@lovejoy
lovejoy / gist:5608115
Created May 19, 2013 16:12
openwrt 看各个ip速度的脚本
#!/bin/sh
echo "Collecting data..."
echo ""
cat /proc/net/arp | grep : | grep ^192 | grep -v 00:00:00:00:00:00| awk '{print $1}'> mac-arp
iptables -N UPLOAD
iptables -N DOWNLOAD
while read line;do iptables -I FORWARD 1 -s $line -j UPLOAD;done < mac-arp
while read line;do iptables -I FORWARD 1 -d $line -j DOWNLOAD;done < mac-arp
sleep 1