<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>dev on Eric Khun</title>
    <link>https://erickhun.com/categories/dev/</link>
    <description>Recent content in dev on Eric Khun</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Tue, 04 Feb 2025 12:50:00 +0800</lastBuildDate>
    <atom:link href="https://erickhun.com/categories/dev/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Create /usr/local/bin in macOS</title>
      <link>https://erickhun.com/posts/create-usr-local-bin-macos-command-line/</link>
      <pubDate>Tue, 04 Feb 2025 12:50:00 +0800</pubDate>
      <guid>https://erickhun.com/posts/create-usr-local-bin-macos-command-line/</guid>
      <description>It&amp;rsquo;s 2025, and /usr/local/bin still not a directory in MacOS (15.1) 🤦‍♂️ . Programs you download (via Homebrew or online) are usually set inside this folder.&#xA;Here the correct way to create it:&#xA;sudo mkdir -p /usr/local/bin sudo chmod 755 /usr/local/bin Why 755?. It follows the principle of least privilege while still allowing the necessary functionality - anyone can use the programs, but only root can modify them:&#xA;Owner as root with rwx permissions is standard because the system (root) needs full control to manage executables Group as wheel with r-x, wheel is traditionally the admin group on Unix systems Others with r-x because: Everyone needs to be able to read (r) and execute (x) programs in this directory They shouldn&amp;rsquo;t be able to write (w) to it, which prevents regular users from modifying system binaries Hope this helps.</description>
    </item>
    <item>
      <title>Previous version of hugo on Mac</title>
      <link>https://erickhun.com/posts/hugo-previous-version-mac-brew/</link>
      <pubDate>Tue, 04 Feb 2025 12:50:00 +0800</pubDate>
      <guid>https://erickhun.com/posts/hugo-previous-version-mac-brew/</guid>
      <description>Unfortunately, there is no way to set up versions older than 5 previous versions with brew. Here&amp;rsquo;s a quick workaround:&#xA;brew uninstall hugo Head to github.com/gohugoio/hugo/tags and navigate the version you need The Mac versions are the hugo_*_darwin-*.tar.gz ones darwin = macOS universal = works on both Intel and Apple Silicon Macs extended version includes additional features like SASS/SCSS support Download and extract the tar file Move the binary to /usr/local/bin When starting the Hugo binary for the first time, your Mac will show a security warning Don&amp;rsquo;t delete the binary Go to System Settings (or System Preferences) Privacy &amp;amp; Security Click &amp;ldquo;Install app anyway&amp;rdquo; Voila!</description>
    </item>
    <item>
      <title>Nuxt3 and Firebase: Users authentication</title>
      <link>https://erickhun.com/posts/nuxt3-and-firebase-users-auth/</link>
      <pubDate>Fri, 30 Jun 2023 07:04:59 +0200</pubDate>
      <guid>https://erickhun.com/posts/nuxt3-and-firebase-users-auth/</guid>
      <description>Here the github repo for who want to fork my template and use it directly.&#xA;If you&amp;rsquo;re looking for a seamless and efficient way to handle user authentication and management in your web applications, Nuxt3 and Firebase make this process incredibly easy. They both have lot of advantages:&#xA;Nuxt3 :&#xA;Allow you to have a frontend (and backend), easily deployable with 2 command line to execute (no joke!) Has a huge choices of modules available Coming from a a backend world, Nuxt is easy to use and understand and simply &amp;ldquo;make sense&amp;rdquo; Firebase and Firebase UI :</description>
    </item>
    <item>
      <title>When code is law</title>
      <link>https://erickhun.com/posts/when-code-is-law/</link>
      <pubDate>Thu, 30 Sep 2021 09:16:00 +0800</pubDate>
      <guid>https://erickhun.com/posts/when-code-is-law/</guid>
      <description>How can you trust an individual, company, or government with the money you send to them? What tells you there are no hidden fees, or middleman in the contract you’re signing for? How do you make sure terms won’t be changed? Those are one of the exciting things I’m excited about smart contracts on public blockchains, the “Code is Law” feature (also called “immutability”). They are the promises of what a smart contract can fulfill.</description>
    </item>
    <item>
      <title>Explaining blockchains to developers</title>
      <link>https://erickhun.com/posts/explaining-blockchains-to-developers/</link>
      <pubDate>Wed, 30 Jun 2021 09:23:00 +0800</pubDate>
      <guid>https://erickhun.com/posts/explaining-blockchains-to-developers/</guid>
      <description>What is a blockchain? Why are some people using it? Even as a developer, it took me a few years to understand what a blockchain really is,how it is working from inside out. I&amp;rsquo;ll share here what I believe is a comprehensive explanation of what is a blockchain from a developer point of view.&#xA;What is a blockchain? In simple words, it’s a slow database.&#xA;For Bitcoin, this database contains a ledger only.</description>
    </item>
    <item>
      <title>Kubernetes: Make your services faster by removing CPU limits</title>
      <link>https://erickhun.com/posts/kubernetes-faster-services-no-cpu-limits/</link>
      <pubDate>Mon, 31 Aug 2020 23:56:00 +0800</pubDate>
      <guid>https://erickhun.com/posts/kubernetes-faster-services-no-cpu-limits/</guid>
      <description>At Buffer, we&amp;rsquo;ve been using Kubernetes since 2016. We&amp;rsquo;ve been managing our k8s (kubernetes) cluster with kops, it has about 60 nodes (on AWS), and runs about 1500 containers. Our transition to a micro-service architecture has been full of trial and errors. Even after a few years running k8s, we are still learning its secrets. This post will talk about how something we thought was a good thing, but ended up to be not as great as we thought: CPU limits.</description>
    </item>
  </channel>
</rss>
