Skip to content

Instantly share code, notes, and snippets.

View tangx's full-sized avatar

tangx tangx

View GitHub Profile
@rex-zsd
rex-zsd / readme.md
Last active June 27, 2023 09:03
图片压缩工具
View readme.md

google的 pagespeed tools 中提供了图片的优化建议,其中提到了一些图片压缩工具。

顾名思义,针对png格式图片的压缩

命令行操作,mac下可以通过brew安装 brew install optipng

基本操作 `optipng <filename>`,也可自行指定压缩等级 `optipng -o<level> <filename>`
@jonsuh
jonsuh / .bash_profile
Last active February 16, 2024 17:17
Bash echo in color
View .bash_profile
# ----------------------------------
# Colors
# ----------------------------------
NOCOLOR='\033[0m'
RED='\033[0;31m'
GREEN='\033[0;32m'
ORANGE='\033[0;33m'
BLUE='\033[0;34m'
PURPLE='\033[0;35m'
CYAN='\033[0;36m'