From 3e8dd7b3650a65e3a4bff42f5f86527164d1c9cb Mon Sep 17 00:00:00 2001 From: Hau Nguyen Date: Fri, 8 Mar 2024 15:12:41 +0700 Subject: [PATCH] feat: remove toolong --- docs/2022-06-08-backup.html | 12 ++--- docs/2022-06-08-dockerfile-go.html | 4 +- docs/2022-07-10-bootstrap-go.html | 66 +++++++++++++------------- docs/2022-07-12-uuid-or-else.html | 10 ++-- docs/2022-07-19-migrate-to-buf.html | 8 ++-- docs/2022-07-31-experiment-go.html | 8 ++-- docs/2022-07-31-sql.html | 30 ++++++------ docs/2022-08-10-gitignore.html | 8 ++-- docs/2022-10-26-reload-config.html | 2 +- docs/2022-12-25-archlinux.html | 66 +++++++++++++------------- docs/2022-12-25-go-test-asap.html | 6 +-- docs/2023-03-05-incident.html | 6 +-- docs/2023-03-08-ekyc.html | 2 +- docs/2023-03-30-fonts.html | 28 +++++------ docs/2023-04-01-games.html | 20 ++++---- docs/2023-04-17-keeb.html | 42 ++++++++-------- docs/2023-04-17-naming.html | 6 +-- docs/2023-05-03-neovim.html | 12 ++--- docs/2023-05-08-things-i-like.html | 6 +-- docs/2023-05-23-swagger.html | 4 +- docs/2023-06-06-terminal-workflow.html | 6 +-- docs/2023-06-10-incident-context.html | 8 ++-- docs/2023-06-24-khoan-cat-be-tong.html | 2 +- docs/2023-06-25-useful-tools.html | 42 ++++++++-------- docs/2023-07-01-pastebin.html | 28 +++++------ docs/2023-07-02-fandroid.html | 4 +- docs/2023-07-06-redis.html | 4 +- docs/2023-07-30-cache-shenanigan.html | 20 ++++---- docs/2023-08-09-vscode.html | 2 +- docs/2023-08-20-hardware.html | 2 +- docs/2023-08-23-real-world-crypto.html | 16 +++---- docs/2023-09-14-vietnam-survivor.html | 12 ++--- docs/2023-09-23-bloguru.html | 2 +- docs/2023-10-02-unrelated.html | 6 +-- docs/2023-12-16-debounce.html | 4 +- docs/2024-01-20-backend-thinking.html | 38 +++++++-------- docs/index.html | 2 +- posts/2023-06-25-useful-tools.md | 2 +- 38 files changed, 273 insertions(+), 273 deletions(-) diff --git a/docs/2022-06-08-backup.html b/docs/2022-06-08-backup.html index 64c3dc6..0fc4afd 100644 --- a/docs/2022-06-08-backup.html +++ b/docs/2022-06-08-backup.html @@ -48,7 +48,7 @@

Backup my way

How to backup ~

Backup work related data

~

Recovery strategy

~

Misc

~

The end

Dockerfile for Go Thanks Bootstrap Go Structure Do not repeat! Taste on style guide Stop using global var External libs No need vendor *.go

Snippet/script

*.go

Thanks

UUID or else What else? Thanks FAQ Tips Thanks Experiment Go Thanks SQL Stay away from database unique id Stay away from database timestamp Extra field for extra things Use index!!! Be careful with UTF-8 Be careful with NULL -- field_something can be NULL -- Bad -SELECT * +SELECT * FROM table WHERE field_something != 1 -- Good -SELECT * +SELECT * FROM table WHERE (field_something IS NULL OR field_something != 1) @@ -244,7 +244,7 @@ SELECT *

VARCHAR or TEXT

*

LIMIT

* *

Heathcheck

*

Tools

*

Thanks

gitignore Base Go

Python

Reload config Install Arch Linux Pre-installation Verify the boot mode Connect to the internet Partition the disks

Installation

Configure

Chroot

Time zone

Localization: Network configuration Initramfs Root password Addition Bluetooth enable bluetooth.service
Clock
enable bluetooth.service

Boot loader

enable bluetooth.service

System administration

Desktop Environment

enable gdm.service enable gdm.service

Hardware dependent

Experiment

In the end

Speed up writing Go test ASAP Let the fun (writing test) begin Incident come and go Service starts with empty port Race condition of series of APIs EKYC - The battle never ends Fonts Bitmap/Oldschool Only display Games 4 fun PS2 emulator Mega Man X Collection Mega Man X8 God of War God of War II Shadow of the Colossus PS3 emulator Windows games Keeb Keyboard iKBC CD87 Cherry MX Blue KBDfans X Lazurite D60Lite Sofle V2 Guide Switch KTT Strawberry SKYLOONG Glacier Silent Red Switch JWICK Yellow Linear Switch C3 Equalz Tangerine V2 CHERRY MX2A Black Keycap EnjoyPBT 9009 PBTfans BOW JTK iKey GMK Mecha-01 Color I love Tools Buy history Thanks Naming things Filename in storage (S3, ...) Time variable My neovim workflow Trick or treat Jumpo Fold Keymap keymap.set(References / Thanks Things I like Discord (old) naming Interesting website Swagger or OpenAPI

Thanks

My terminal workflow Another day another incident #02 The problem The (temporary) solution Thanks Khoan cắt bê tông 101 Userful tools Tools Terminal Windows UI macOS Developement Terminal https://github.com/cli/cli -
  • - https://github.com/Textualize/toolong -
  • Memory

    Go

    UI macOS Notes Misc macOS Firefox Thanks Throw away pastebin .gitignore

    GitHub Actions

    Go

    Git clean up

    Delete .DS_Store

    '\s\[.*?];'\s\[.*?]; "{mtime.YYYY}{mtime.MM}{mti "{mtime.YYYY}{mtime.MM}{mti "{mtime.YYYY}{mtime.MM}{mti F(an) android Apps Redis Cache shenanigan activate service service ->> cache: get data alt exist in cache - service -->> other: return data - else not exist in cache - service ->> db: get data - alt exist data in db - service -->> other: return data - else not exist data in db - service -->> other: return error not found + service -->> other: return data + else not exist in cache + service ->> db: get data + alt exist data in db + service -->> other: return data + else not exist data in db + service -->> other: return error not found end - end + end deactivate service other ->> service: set data @@ -104,7 +104,7 @@

    Thanks

    VSCode Hardware 101 Real World Crypto 101 AES (Advanced Encryption Standard) AES-CBC (Cipher Block Chaining) AES-GCM (Galois/Counter Mode) AEAD ChaCha20-Poly1305 AED Vietnam survivor Giấy tờ CMND/CCCD Passport BHXH GPLX Bloguru Unrelated engineer Debounce Thanks Backend Thinking Backend Role Technical side API Message Broker Tip References Coding principle Write code that is easy delete Write code that is easy to test References System Design Concept service ->> cache: get (5ms) alt not exist in cache - service ->> database: get (100ms) + service ->> database: get (100ms) end

    @@ -567,14 +567,14 @@ participant cache participant database - note over service,database: Read Through + note over service,database: Read Through service ->> cache: get alt not exist in cache - service ->> database: get - service ->> cache: set + service ->> database: get + service ->> cache: set end - note over service,database: Write Through + note over service,database: Write Through service ->> database: set service ->> cache: set @@ -582,7 +582,7 @@

    References

    Bonus Index