I. Mục đích Mục đích của NFS (Network File System) là cung cấp khả năng chia sẻ tập tin và…
Mysql replication sử dụng GTID
I. Khái niệm GTID (Global Transaction Identifier) Replication là một tính năng trong MariaDB giúp đồng bộ dữ liệu giữa…
Backup và restore bảng user trong mysql
Ở db nguồn chạy lệnh sau Kết quả Chạy các lệnh vừa in ra vào db đích
Dừng dịch vụ đang chạy trên 1 port ở debian/ ubuntu
Để dừng các dịch vụ đang chạy trên một cổng cụ thể trên Ubuntu, bạn có thể làm theo các…
Dựng proxy từ máy chủ bảo mật để bypass restrict
Mong muốn: Chuẩn bị: Thực hiện: Sử dụng Bạn set proxy trong trình duyệt hoặc những nơi cần dùng tới…
K8S cheatsheet
Viết cho tôi nhớ
Giới thiệu và cài đặt cơ bản Kubernetes: Quản lý ứng dụng phân tán dễ dàng
Giới thiệu: Kubernetes (K8s) là một hệ thống mã nguồn mở để quản lý và triển khai các ứng dụng…
Tích hợp Sonarqube với Gitlab CI/CD
Mục đích: Thực hiện: Test xem có đúng code thối nó không cho pass không.
Tự dựng gitlab runner để CI/CD gitlab
Mong muốn: Yêu cầu: Setup trong repo gitlab như sau Cài trong máy chủ như sau Setup để chạy gitlab-runner…
Proxy Pattern
The proxy pattern is a software design pattern. A proxy, in its most general form, is a class functioning as…
Các Network mode của VirtualBox
Network là một trong các thành phần có thể ảo hóa để thử nghiệm ở nhiều chế độ khi sử…
Adapter pattern
The adapter pattern is a software design pattern that allows the interface of an existing class to be used as…
Factory Method pattern
The factory method pattern is a creational pattern that uses factory methods to deal with the problem of creating objects…
Decorator pattern
The decorator pattern is a design pattern that allows behavior to be added to an individual object, dynamically, without affecting…
Composite pattern
The composite pattern describes a group of objects that are treated the same way as a single instance of the…
Abstract Factory
Abstract Factory provide an interface for creating families of related or dependent objects without specifying their concrete classes Abstract Factory…
Builder Pattern
The builder pattern is a design pattern designed to provide a flexible solution to various object creation problems in object-oriented…
Prototype Pattern
Specify the kinds of objects to create using a prototypical instance, and create new objects by copying this prototype. Mô…
Đến tuổi lười giải thích và comment
Nếu muốn code không cần comment ít ra phải như ảnh trên:
Singleton Pattern
Ensure a class only has one instance, and provide a global point of access to it. Đảm bảo một class…