实用小工具

本文最后更新于:2025年9月7日

查看公网出口ip

命令行

1
2
3
4
5
6
curl cip.cc
curl ipinfo.io
curl ifconfig.me/all
curl ipx.sh
curl ip.sb
curl ident.me

web

1
https://ip111.cn/

git相关

修改git文件时间

git clone下来的文件,修改时间有时候并非我们真正想要的时间,比如说博客的修改日期。 > Restore original modification time of files based on the date of the most recent commit that modified them

要注意的是不同平台的包名不一样

1
2
brew install git-tools
sudo apt install git-restore-mtime

route trace

1
nexttrace

统计代码行数

1
tokei

解压

1
unar

有点是参数简单,可以自动猜测文件编码,不用再忍受乱码之苦

makrdown

1
glow

可以在终端里渲染 makrdown