About Me

  • 👋 Hey, I’m Dewa—
  • 📍 Bali
  • 💼 Software Engineer at Bytedance | Logistics for TikTok Shop
  • ✍🏼 Writing code as daily basis
  • 🎓 ITS Surabaya 2017
  • ♥️ Travel, gym
🌐 Portfolio & Projects

Git-fu

Problems Reverting anything that has been done Imagine you’ve made several commits, but then you run git reset --hard HEAD~2 and lose the last two commits. You can restore them as follows: Check reflog log git reflog The output might show: c4f2a27 (HEAD -> main) HEAD@{0}: reset: moving to HEAD~2 a3d5b8e HEAD@{1}: commit: Menambahkan file README You want to restore commit a3d5b8e: git reset --hard a3d5b8e To restore, you can use ...

May 26, 2024 · 5 min · I Dewa Putu Ardi Nusawan

Host your website in raspberry/orange pi

Introduction If you hit https://tanggalnya.com, your request will be routed to one of this domain https://www.tanggalnya.com https://www1.tanggalnya.com https://www2.tanggalnya.com https://www3.tanggalnya.com https://www4.tanggalnya.com Except www, others is routed to my raspy / orange pi in my home. But, how come? How did I expose my raspy & orange pi to outside world? Architecture Let’s dig deeper in the architecture first I do split ingress to 5 of machine VM: www Orange Pi 5: www1 & www2 Raspberry Pi 4: www3 & www4 Here the diagrams: ...

May 15, 2024 · 3 min · I Dewa Putu Ardi Nusawan