Skip to content

Instantly share code, notes, and snippets.

View chenyukang's full-sized avatar
💭
I may be slow to respond.

Yukang chenyukang

💭
I may be slow to respond.
View GitHub Profile
@chenyukang
chenyukang / mysql dump
Created November 1, 2015 04:12
mysql dump
mysqldump --opt -h192.168.0.156 -uusername -ppassword --skip-lock-tables databasename > database.sql
@chenyukang
chenyukang / backup.md
Last active June 14, 2023 14:14
Backup website with mirror

use wget to download website

wget --reject-regex "(.*)\?(.*)" --mirror --no-parent --convert-links -p -U Mozilla https://program-think.blogspot.com/

replace abs path to relative path

find . -type f -name '*.html' -exec sed -i '' 's|https://program-think.blogspot.com/|/|g' {} +
@chenyukang
chenyukang / justfile
Last active March 12, 2024 05:20
rustc-justfile
alias ba := build-all
alias b := build
alias ts := test-one
alias l := log
alias d := dev
alias d21 := dev21
build-all:
x b