SetupLog
Author HungNguyen
Optimizing my workflow
Today, I adjust my wsl2 to be more convenient with me:
- Download qemu and bonus alias to open by one command (I will push blog about that in Tool tommorow)
- Editing alias for upload git file (this blog) by editing .bashrc file and add this bash script in the bottom:
blog() { local BLOG_PATH="$HOME/chillfish/chillfish-blog"
if [ ! -d "$BLOG_PATH" ]; then echo "[-] Error: Path $BLOG_PATH not found." return 1 fi
cd "$BLOG_PATH" || return 1
if [ -z "$(git status --porcelain)" ]; then echo "[!] Nothing to update!" return 0 fi
local msg="${1:-update blog}" echo "[+] Deploying with message: '$msg'..."
git add . git commit -m "$msg" git push
echo "[+] Done. Connection closed."}So when I use blog command with “text commit” (or not) it will use combination of three commands git add, git commit and git push
Improve the website (Finish 100%)
I have completed the code for running and displaying this web blog (Almost using astro) to have six components:
- Home: Display main work of mine
- Lab: About some project like researching old CVE (nday or 1day in the future) and tool-setup for my daily work if it’s usefull
- WIP: Work-in-Progress where I push my daily log stored my study (I don’t know why I add this LOL)
- About: Detail about me and this blog
- Search button: Have filter now
- Email: Bonus Contact form
Now my workspace and diary have been already