feat: edit contact

main
sudo pacman -Syu 2022-12-26 02:22:39 +07:00
parent 4ef0ff6881
commit b0c1188d18
14 changed files with 112 additions and 70 deletions

View File

@ -25,7 +25,9 @@
}
</style>
<body class="markdown-body">
<a href="index">Index</a>
<div>
<a href="index">Index</a>
</div>
<h1><a id="user-content-backup-my-way" class="anchor" aria-hidden="true" href="#backup-my-way"><span aria-hidden="true" class="octicon octicon-link"></span></a>Backup my way</h1>
<p>First thing first, I want to list my own devices, which I have through the years:</p>
<ul>
@ -106,9 +108,10 @@ After that, log in to Bitwarden account using the master password and OTP from G
<h2><a id="user-content-the-end" class="anchor" aria-hidden="true" href="#the-end"><span aria-hidden="true" class="octicon octicon-link"></span></a>The end</h2>
<p>This guide will be updated regularly I promise.</p>
<a href="mailto:hauvipapro+posts@gmail.com"
>Feel free to ask me via email</a
>
<a rel="me" href="https://hachyderm.io/@haunguyen">Mastodon</a>
<div>
Feel free to ask me via
<a href="mailto:hauvipapro+posts@gmail.com">email</a> or
<a rel="me" href="https://hachyderm.io/@haunguyen">Mastodon</a>
</div>
</body>
</html>

View File

@ -25,7 +25,9 @@
}
</style>
<body class="markdown-body">
<a href="index">Index</a>
<div>
<a href="index">Index</a>
</div>
<h1><a id="user-content-dockerfile-for-go" class="anchor" aria-hidden="true" href="#dockerfile-for-go"><span aria-hidden="true" class="octicon octicon-link"></span></a>Dockerfile for Go</h1>
<p>Each time I start a new Go project, I repeat many steps.
Like set up <code>.gitignore</code>, CI configs, Dockerfile, ...</p>
@ -89,9 +91,10 @@ I use v3 because I read about AMD64 version in <a href="https://gitlab.archlinux
<span class="pl-k">ENTRYPOINT</span> [<span class="pl-s">"/app"</span>]</pre></div>
<p>Finally, I copy <code>app</code> to Distroless base image.</p>
<a href="mailto:hauvipapro+posts@gmail.com"
>Feel free to ask me via email</a
>
<a rel="me" href="https://hachyderm.io/@haunguyen">Mastodon</a>
<div>
Feel free to ask me via
<a href="mailto:hauvipapro+posts@gmail.com">email</a> or
<a rel="me" href="https://hachyderm.io/@haunguyen">Mastodon</a>
</div>
</body>
</html>

View File

@ -25,7 +25,9 @@
}
</style>
<body class="markdown-body">
<a href="index">Index</a>
<div>
<a href="index">Index</a>
</div>
<h1><a id="user-content-bootstrap-go" class="anchor" aria-hidden="true" href="#bootstrap-go"><span aria-hidden="true" class="octicon octicon-link"></span></a>Bootstrap Go</h1>
<p>It is hard to write bootstrap tool to quickly create Go service.
So I write this guide instead.
@ -271,9 +273,10 @@ fieldalignment -fix ./internal/business/<span class="pl-k">*</span>.go</pre></di
<li><a href="https://google.github.io/styleguide/go/index" rel="nofollow">Google Go Style</a></li>
</ul>
<a href="mailto:hauvipapro+posts@gmail.com"
>Feel free to ask me via email</a
>
<a rel="me" href="https://hachyderm.io/@haunguyen">Mastodon</a>
<div>
Feel free to ask me via
<a href="mailto:hauvipapro+posts@gmail.com">email</a> or
<a rel="me" href="https://hachyderm.io/@haunguyen">Mastodon</a>
</div>
</body>
</html>

View File

@ -25,7 +25,9 @@
}
</style>
<body class="markdown-body">
<a href="index">Index</a>
<div>
<a href="index">Index</a>
</div>
<h1><a id="user-content-uuid-or-else" class="anchor" aria-hidden="true" href="#uuid-or-else"><span aria-hidden="true" class="octicon octicon-link"></span></a>UUID or else</h1>
<p>There are many use cases where we need to use a unique ID.
In my experience, I only encouter 2 cases:</p>
@ -67,9 +69,10 @@ The reason I'm afraid because the database is sensitive subject, and I need more
<li><a href="https://0pointer.net/blog/projects/ids.html" rel="nofollow">On IDs</a></li>
</ul>
<a href="mailto:hauvipapro+posts@gmail.com"
>Feel free to ask me via email</a
>
<a rel="me" href="https://hachyderm.io/@haunguyen">Mastodon</a>
<div>
Feel free to ask me via
<a href="mailto:hauvipapro+posts@gmail.com">email</a> or
<a rel="me" href="https://hachyderm.io/@haunguyen">Mastodon</a>
</div>
</body>
</html>

View File

@ -25,7 +25,9 @@
}
</style>
<body class="markdown-body">
<a href="index">Index</a>
<div>
<a href="index">Index</a>
</div>
<h1><a id="user-content-migrate-to-buf-from-prototool" class="anchor" aria-hidden="true" href="#migrate-to-buf-from-prototool"><span aria-hidden="true" class="octicon octicon-link"></span></a>Migrate to <code>buf</code> from <code>prototool</code>
</h1>
<p>Why? Because <code>prototool</code> is outdated, and can not run on M1 mac.</p>
@ -126,9 +128,10 @@
<li><a href="https://github.com/bufbuild/buf">bufbuild/buf</a></li>
</ul>
<a href="mailto:hauvipapro+posts@gmail.com"
>Feel free to ask me via email</a
>
<a rel="me" href="https://hachyderm.io/@haunguyen">Mastodon</a>
<div>
Feel free to ask me via
<a href="mailto:hauvipapro+posts@gmail.com">email</a> or
<a rel="me" href="https://hachyderm.io/@haunguyen">Mastodon</a>
</div>
</body>
</html>

View File

@ -25,7 +25,9 @@
}
</style>
<body class="markdown-body">
<a href="index">Index</a>
<div>
<a href="index">Index</a>
</div>
<h1><a id="user-content-experiment-go" class="anchor" aria-hidden="true" href="#experiment-go"><span aria-hidden="true" class="octicon octicon-link"></span></a>Experiment Go</h1>
<p>There come a time when you need to experiment new things, new style, new approach.
So this post serves as it is named.</p>
@ -84,9 +86,10 @@ Also read <a href="https://go.dev/blog/protobuf-apiv2" rel="nofollow">A new Go A
<li><a href="https://blog.gopheracademy.com/advent-2019/api-clients-humans/" rel="nofollow">API Clients for Humans</a></li>
</ul>
<a href="mailto:hauvipapro+posts@gmail.com"
>Feel free to ask me via email</a
>
<a rel="me" href="https://hachyderm.io/@haunguyen">Mastodon</a>
<div>
Feel free to ask me via
<a href="mailto:hauvipapro+posts@gmail.com">email</a> or
<a rel="me" href="https://hachyderm.io/@haunguyen">Mastodon</a>
</div>
</body>
</html>

View File

@ -25,7 +25,9 @@
}
</style>
<body class="markdown-body">
<a href="index">Index</a>
<div>
<a href="index">Index</a>
</div>
<h1><a id="user-content-sql" class="anchor" aria-hidden="true" href="#sql"><span aria-hidden="true" class="octicon octicon-link"></span></a>SQL</h1>
<p>Previously in my fresher software developer time, I rarely write SQL, I always use ORM to wrap SQL.
But time past and too much abstraction bites me.
@ -94,9 +96,10 @@ Prefer <code>TEXT</code> if you don't care, just want to store something.</p>
<li><a href="https://architecturenotes.co/things-you-should-know-about-databases/" rel="nofollow">Things You Should Know About Databases</a></li>
</ul>
<a href="mailto:hauvipapro+posts@gmail.com"
>Feel free to ask me via email</a
>
<a rel="me" href="https://hachyderm.io/@haunguyen">Mastodon</a>
<div>
Feel free to ask me via
<a href="mailto:hauvipapro+posts@gmail.com">email</a> or
<a rel="me" href="https://hachyderm.io/@haunguyen">Mastodon</a>
</div>
</body>
</html>

View File

@ -25,7 +25,9 @@
}
</style>
<body class="markdown-body">
<a href="index">Index</a>
<div>
<a href="index">Index</a>
</div>
<h1><a id="user-content-gitignore" class="anchor" aria-hidden="true" href="#gitignore"><span aria-hidden="true" class="octicon octicon-link"></span></a>gitignore</h1>
<p>My quick check for <code>.gitignore</code>.</p>
<h2><a id="user-content-base" class="anchor" aria-hidden="true" href="#base"><span aria-hidden="true" class="octicon octicon-link"></span></a>Base</h2>
@ -50,9 +52,10 @@ vendor</pre></div>
<h2><a id="user-content-python" class="anchor" aria-hidden="true" href="#python"><span aria-hidden="true" class="octicon octicon-link"></span></a>Python</h2>
<div class="highlight highlight-text-adblock"><pre>venv</pre></div>
<a href="mailto:hauvipapro+posts@gmail.com"
>Feel free to ask me via email</a
>
<a rel="me" href="https://hachyderm.io/@haunguyen">Mastodon</a>
<div>
Feel free to ask me via
<a href="mailto:hauvipapro+posts@gmail.com">email</a> or
<a rel="me" href="https://hachyderm.io/@haunguyen">Mastodon</a>
</div>
</body>
</html>

View File

@ -25,7 +25,9 @@
}
</style>
<body class="markdown-body">
<a href="index">Index</a>
<div>
<a href="index">Index</a>
</div>
<h1><a id="user-content-reload-config" class="anchor" aria-hidden="true" href="#reload-config"><span aria-hidden="true" class="octicon octicon-link"></span></a>Reload config</h1>
<p>This serves as design draft of reload config system</p>
<div class="highlight highlight-source-wsd"><pre><span class="pl-k">@startuml</span> Reload config
@ -93,9 +95,10 @@ So there is some delay between upstream config (config in <code>storage</code>)
<li>Delay between upstream/downstream config</li>
</ul>
<a href="mailto:hauvipapro+posts@gmail.com"
>Feel free to ask me via email</a
>
<a rel="me" href="https://hachyderm.io/@haunguyen">Mastodon</a>
<div>
Feel free to ask me via
<a href="mailto:hauvipapro+posts@gmail.com">email</a> or
<a rel="me" href="https://hachyderm.io/@haunguyen">Mastodon</a>
</div>
</body>
</html>

View File

@ -25,7 +25,9 @@
}
</style>
<body class="markdown-body">
<a href="index">Index</a>
<div>
<a href="index">Index</a>
</div>
<h1><a id="user-content-install-arch-linux" class="anchor" aria-hidden="true" href="#install-arch-linux"><span aria-hidden="true" class="octicon octicon-link"></span></a>Install Arch Linux</h1>
<p>Install Arch Linux is thing I always want to do for my laptop/PC since I had my laptop in ninth grade.</p>
<p>This is not a guide for everyone, this is just save for myself in a future and for anyone who want to walk in my shoes.</p>
@ -270,9 +272,10 @@ ParallelDownloads</pre></div>
<h2><a id="user-content-in-the-end" class="anchor" aria-hidden="true" href="#in-the-end"><span aria-hidden="true" class="octicon octicon-link"></span></a>In the end</h2>
<p>This guide is updated regularly I promise.</p>
<a href="mailto:hauvipapro+posts@gmail.com"
>Feel free to ask me via email</a
>
<a rel="me" href="https://hachyderm.io/@haunguyen">Mastodon</a>
<div>
Feel free to ask me via
<a href="mailto:hauvipapro+posts@gmail.com">email</a> or
<a rel="me" href="https://hachyderm.io/@haunguyen">Mastodon</a>
</div>
</body>
</html>

View File

@ -25,15 +25,18 @@
}
</style>
<body class="markdown-body">
<a href="index">Index</a>
<div>
<a href="index">Index</a>
</div>
<h1><a id="user-content-integration-go-grpc-with-buf" class="anchor" aria-hidden="true" href="#integration-go-grpc-with-buf"><span aria-hidden="true" class="octicon octicon-link"></span></a>Integration Go gRPC with Buf</h1>
<p>There are 2 questions here.
What is Buf?
And why is Buf?</p>
<a href="mailto:hauvipapro+posts@gmail.com"
>Feel free to ask me via email</a
>
<a rel="me" href="https://hachyderm.io/@haunguyen">Mastodon</a>
<div>
Feel free to ask me via
<a href="mailto:hauvipapro+posts@gmail.com">email</a> or
<a rel="me" href="https://hachyderm.io/@haunguyen">Mastodon</a>
</div>
</body>
</html>

View File

@ -25,7 +25,9 @@
}
</style>
<body class="markdown-body">
<a href="index">Index</a>
<div>
<a href="index">Index</a>
</div>
<h1><a id="user-content-speed-up-writing-go-test-asap" class="anchor" aria-hidden="true" href="#speed-up-writing-go-test-asap"><span aria-hidden="true" class="octicon octicon-link"></span></a>Speed up writing Go test ASAP</h1>
<p>Imagine your project currently have 0% unit test code coverage.
And your boss keep pushing it to 80% or even 90%?
@ -260,9 +262,10 @@ You only need to check error or not if you want code coverage only.</p>
<p>So if request change fields or more dependencies, I need to update success case, and maybe add corresponding error case if need.</p>
<p>Same idea but still with table, you can find here <a href="https://arslan.io/2022/12/04/functional-table-driven-tests-in-go/" rel="nofollow">Functional table-driven tests in Go - Fatih Arslan</a>.</p>
<a href="mailto:hauvipapro+posts@gmail.com"
>Feel free to ask me via email</a
>
<a rel="me" href="https://hachyderm.io/@haunguyen">Mastodon</a>
<div>
Feel free to ask me via
<a href="mailto:hauvipapro+posts@gmail.com">email</a> or
<a rel="me" href="https://hachyderm.io/@haunguyen">Mastodon</a>
</div>
</body>
</html>

View File

@ -25,7 +25,9 @@
}
</style>
<body class="markdown-body">
<a href="index">Index</a>
<div>
<a href="index">Index</a>
</div>
<h1><a id="user-content-index" class="anchor" aria-hidden="true" href="#index"><span aria-hidden="true" class="octicon octicon-link"></span></a>Index</h1>
<p>This is where I dump my thoughts.</p>
<ul>
@ -42,9 +44,10 @@
<li><a href="2022-12-25-go-test-asap">Speed up writing Go test ASAP</a></li>
</ul>
<a href="mailto:hauvipapro+posts@gmail.com"
>Feel free to ask me via email</a
>
<a rel="me" href="https://hachyderm.io/@haunguyen">Mastodon</a>
<div>
Feel free to ask me via
<a href="mailto:hauvipapro+posts@gmail.com">email</a> or
<a rel="me" href="https://hachyderm.io/@haunguyen">Mastodon</a>
</div>
</body>
</html>

View File

@ -25,11 +25,14 @@
}
</style>
<body class="markdown-body">
<a href="index">Index</a>
<div>
<a href="index">Index</a>
</div>
{{.Body}}
<a href="mailto:hauvipapro+posts@gmail.com"
>Feel free to ask me via email</a
>
<a rel="me" href="https://hachyderm.io/@haunguyen">Mastodon</a>
<div>
Feel free to ask me via
<a href="mailto:hauvipapro+posts@gmail.com">email</a> or
<a rel="me" href="https://hachyderm.io/@haunguyen">Mastodon</a>
</div>
</body>
</html>