Category: IT

  • KRSI – Kernel Runtime Security Instrumentation

    KRSI (appeared in Kernel v5.7) stands for Kernel Runtime Security Instrumentation and the target of this patch is to allow users to implement lsm hooks by utilizing bpf compiled code. This gets interesting for a couple of reasons: LSM ENABLE KRSI BOOT PARAMETER Check current boot parameter cat /proc/cmdline Edit the boot parameters sudo vim…

  • Some issues with git and gpg

    Read here if you want to stumble upon some interesting URLs (my repo) Key takeaways: make sure to configure your username, email, and gpg private key, sometimes even gpg version you can get some info here about your key, after generating your key if you got that error while executing gpg -a –export your@email then try these…

  • [visudo] Username is not in the sudoers file

    Username is not in the sudoers file. This incident will be reported Besides making sure that your username is in sudo group (I think it is), there are other cases that cause this problem. Some of them may have something to do with sudoers file (/etc/sudoers) in my case, i accidently commented out 1 important…

  • Overview of Container Runtimes

    Foundation OCI: Open Container Initiativefounded by Docker, CoreOS, and othersimage-specruntime-specCRI: Container Runtime Interface enables kubelet to use different runtimesCNI: Container Network Interface Container Runtimes high-level runtimes often incorporate low-level runtimes that are otherwise standalone projects.  If tomorrow you get the urge to add your own container project to the ever-growing jungle, you should make it…

  • Bản quyền phần mềm

    Có rất nhiều loại bản quyền (License) dành cho phần mềm (software program). Về định nghĩa thì có thể tìm thấy dễ dàng. Tuy nhiên đôi khi mọi người hay có thắc mắc về cái nào thì được thương mại hóa mà không phải cung cấp mã nguồn. Bài này mình sẽ trích ra một…

  • Machine Learning Systems Design

    Translated from Machine Learning Interviews – Machine Learning Systems Design by Chip Huyen Vì đây là một bài viết rất hay nên mình quyết định dịch lại để nó có thể đến với nhiều độc giả hơn. Để xem phiên bản mới nhất, các bạn nên truy cập Github của bạn Huyền. Cũng khoảng 12…

  • Tùy biến Terminal bằng oh-my-zsh & powerlevel10k

    Bước 1: cài đặt zsh Bước 2: cài đặt oh-my-zsh Bước 3: cài đặt powerlevel10k (click for full tutorial) Open ~/.zshrc, find the line that sets ZSH_THEME, and change its value to “powerlevel10k/powerlevel10k” Done. Bước 4: Cài đặt và cấu hình antigen (optional) 4.1 Tạo file ~/.antigenrc và thêm plugins 4.2 Cấu hình ~/.zshrc (để kích hoạt antigen)…

  • SIM not provisioned when roaming

    Quick solution: WAIT (1-2 hours) and manually register the SIM with the Mobile Network (AT&T, Viettel, olleh, etc.) in Settings section. I had this problem when traveling from Vietnam to Korea. My SIMs worked fine in Vietnam, I had 2 of them and both didn’t work when I brought them to Korea, 1 SIM was…

  • WordPress – hosting migration

    Backup & Restore: UpdraftPlus –> GoogleDrive Setting: CloudFlare: DNS (change IP – A record) TLS/SSL Non CloudFlare: change DNS record in Domain provider Set up WP on new host with UpdraftPlus plugin to restore data Hosting provider may not install SSL cert by default, you must install it in cPanel/DirectAdmin Others Use localhost instead of…

  • Applied Machine Learning – things you need to know

    Một số lưu ý khi áp dụng Machine Learning để giải quyết các vấn đề cụ thể: Always use train_test_split or similar GridSearchCV (built-in cross validation) HDF need to be shrunk after write/update –> ptrepack –chunkshape=auto –propindexes –complevel=9 –complib=blosc data_in.h5 data_out.h5 Use Keras optimizer instead of tensorflow itself (so that it can be saved later…