Skip to content

Instantly share code, notes, and snippets.

View baonq-me's full-sized avatar
🏠
Working from home

quocbao baonq-me

🏠
Working from home
  • Zalo
  • Ho Chi Minh city, Vietnam
View GitHub Profile

Turn off AER logging for NVMe and event severity corrected

Motherboard: Asus Pro WS WRX80E-SAGE SE WIFI
Card: Asus HYPER M.2 X16 GEN 4 CARD
NVMe: 4x Samsung SSD 980 PRO 1TB
OS: Linux fedora 5.16.12-200.fc35.x86_64

AER, advanced error reporting logs excessively:

@baonq-me
baonq-me / fix-intel_wifi_aer-avell_g1513_fire_v3
Created August 7, 2024 09:36 — forked from Brainiarc7/ fix-intel_wifi_aer-avell_g1513_fire_v3
Temporary fix for AER's excessive `severity=Corrected` logging for Intel Wireless (Avell G1513 Fire V3) (Arch Linux)
silly gist hack, why do we need you? :(
@baonq-me
baonq-me / postgres-json-cheatsheet.md
Created August 3, 2023 15:51 — forked from rmtsrc/postgres-json-cheatsheet.md
Using JSON in Postgres by example

PostgreSQL JSON Cheatsheet

Using JSON in Postgres by example.

Quick setup via Docker

  1. Download and install: Docker Toolbox
  2. Open Docker Quickstart Terminal
  3. Start a new postgres container:
    docker run --name my-postgres -e POSTGRES_PASSWORD=mysecretpassword -d postgres
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
@baonq-me
baonq-me / encrypting-without-reinstalling-ubuntu.txt
Created February 8, 2023 03:22 — forked from gvtulder/encrypting-without-reinstalling-ubuntu.txt
Encrypting hard drives without reinstalling Ubuntu
Encrypting hard drives without reinstalling Ubuntu
===================================================
Gijs van Tulder, 26.02.2019, last update 04.03.2019
This is a list of the steps I took to encrypt the partitions on my
Ubuntu 16.04 laptop with the LUKS encryption system. Encrypting the
partitions took some time but was relatively easy. Getting the system
to boot afterwards was a little trickier, but doable.
Obviously, these steps might not work for you. Follow them at your

Download CMake from: https://cmake.org/download/

wget https://github.com/Kitware/CMake/releases/download/v3.25.1/cmake-3.25.1.tar.gz

Compile from source and install

tar zxvf cmake-3.*
@baonq-me
baonq-me / build-git.md
Created December 7, 2022 09:54 — forked from egorsmkv/build-git.md
Build git from source code on CentOS 7

Build git from source code

1) Go to https://git-scm.com/ and check out the latest version of Git

Currently, the latest version is 2.18.0. Download and extract it and go to the folder of the source code:

wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.20.5.tar.gz
tar xf git-2.20.5.tar.gz
cd git-2.20.5/
@baonq-me
baonq-me / build-git.md
Created December 7, 2022 09:54 — forked from egorsmkv/build-git.md
Build git from source code on CentOS 7

Build git from source code

1) Go to https://git-scm.com/ and check out the latest version of Git

Currently, the latest version is 2.18.0. Download and extract it and go to the folder of the source code:

wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.18.0.tar.gz
tar xf git-2.18.0.tar.gz
cd git-2.18.0/
@baonq-me
baonq-me / Makefile
Created July 29, 2022 02:22 — forked from huxuan/Makefile
Hello World for LuaJIT FFI/C++ binding.
all: lib run
lib:
g++ -shared -fPIC -o libhello.so libhello.cpp hello.cpp
run:
luajit main.lua
clean:
rm *.so
@baonq-me
baonq-me / nginx.conf
Created July 27, 2022 13:47 — forked from baskaran-md/nginx.conf
NginX allow POST on static pages.
# ...
server {
listen 80;
server_name localhost;
location / {
root html;
index index.html index.htm;
}