Skip to content

Instantly share code, notes, and snippets.

View KevinNitroG's full-sized avatar
😐
Sad

Kevin Nitro KevinNitroG

😐
Sad
View GitHub Profile
This file has been truncated, but you can view the full file.
{"timestamp":"2026-04-18T07:27:14.981179392Z","level":"INFO","fields":{"message":"log cleaner compression profile configured","compression_algorithm":"zstd","parallel_compress":true,"parallel_workers":6,"zstd_level":8,"zstd_fallback_to_gzip":true,"zstd_workers":1},"target":"rustfs_obs::telemetry::local","filename":"crates/obs/src/telemetry/local.rs","line_number":463,"threadName":"main","threadId":"ThreadId(1)"}
{"timestamp":"2026-04-18T07:27:14.981237383Z","level":"INFO","fields":{"message":"Init file logging at '/logs', rotation: hourly, keep 30 files"},"target":"rustfs_obs::telemetry::local","filename":"crates/obs/src/telemetry/local.rs","line_number":283,"threadName":"main","threadId":"ThreadId(1)"}
{"timestamp":"2026-04-18T07:27:14.981273611Z","level":"INFO","fields":{"message":"Initializing global guard"},"target":"rustfs_obs::global","filename":"crates/obs/src/global.rs","line_number":147,"threadName":"main","threadId":"ThreadId(1)"}
{"timestamp":"2026-04-18T07:27:14.981286306Z","level":"INFO","fields"
@KevinNitroG
KevinNitroG / cau-hoi-thay-Khanh.md
Last active March 26, 2026 14:25
Các câu hỏi đến thầy Nguyễn Duy Khánh

1. Câu hỏi về đồ án, thứ tự aggregate

Class diagram link: https://egolia-uit.github.io/egolia/references/class-diagram.html

Các class cần được quan tâm bao gồm Course, SectionLesson.

Có 4 phuơng án mà em đã suy nghĩ:

  • Gom Section và Lesson vào Course, nhược điểm mutate dữ liệu nhỏ đối tượng Section và Lesson tốn kém phải get toàn bộ Course.
  • Sử dụng linked list đánh dấu thứ tự quan hệ (nextSection, nextLesson), nhược điểm cần có 1 aggregate hold ID đầu tiên (giống kiểu dữ liệu cần có head lưu con trỏ đầu tiên của list)
@KevinNitroG
KevinNitroG / BT3-csdlnc.md
Last active March 27, 2026 11:52
BT 3, 4 CSDLNC

Bao đóng

Bài 1

{BD}+F

{BD}+F = {BD}

Duyệt lần 1:

@KevinNitroG
KevinNitroG / courses.user.less
Last active March 7, 2026 20:04
UIT catppuccin userstyle, made by sonnet 4.6
/* ==UserStyle==
@name Moodle Quiz Catppuccin
@namespace github.com/catppuccin/userstyles/styles/moodle-quiz
@homepageURL https://gist.github.com/KevinNitroG/8fe249116629c58c3a98bdf20dc176be
@version 2000.01.01
@updateURL https://gist.github.com/KevinNitroG/8fe249116629c58c3a98bdf20dc176be/raw/courses.user.less
@supportURL https://gist.github.com/KevinNitroG/8fe249116629c58c3a98bdf20dc176be
@description Soothing pastel theme for Moodle Quiz (mod/quiz)
@author Catppuccin
@license MIT
@KevinNitroG
KevinNitroG / ele.log
Created November 8, 2025 18:44
Log file panic
go build -gcflags='all=-N -l' -o ./backend ./cmd/main.go
./backend
[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
- using env: export GIN_MODE=release
- using code: gin.SetMode(gin.ReleaseMode)
2025/11/09 01:03:55 bucket not exist: operation error S3: HeadBucket, exceeded maximum number of attempts, 3, https response error StatusCode: 0, RequestID: , HostID: , request send failed, Head "http://localhost:9000/electricilies": dial tcp [::1]:9000: connect: connection refused
2025/11/09 01:03:55 error when connecting to keycloak:could not get token: Post "http://localhost:8081/realms/electricilies/protocol/openid-connect/token": dial tcp [::1]:8081: connect: connection refused
[GIN-debug] GET /metrics --> github.com/gin-gonic/gin.WrapH.func1 (2 handlers)
[GIN-debug] GET /health/live --> backend/internal/interface/api/handler.HealthCheck.Liveness-fm (2 handlers)
@KevinNitroG
KevinNitroG / download.sh
Created October 14, 2025 11:12
download video from downloaded.txt?
#!/bin/bash
PLAYLIST_FILE="playlists.txt"
ARCHIVE_FILE="downloaded.txt"
YTDLP_OPTS=(
-f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best"
--merge-output-format mp4
--download-archive "$ARCHIVE_FILE"
)
@KevinNitroG
KevinNitroG / owl-ref.md
Last active April 8, 2025 11:44
OWL SE101.P21
@KevinNitroG
KevinNitroG / chinh-tri.js
Last active October 15, 2025 07:18
Chính trị DHQG HCM
function convertEmbedToWatch(url) {
const match = url.match(/embed\/([a-zA-Z0-9_-]+)/);
return match ? `https://www.youtube.com/watch?v=${match[1]}` : null;
}
console.log(
Array.from(document.querySelectorAll('.video-js iframe'))
.map((iframe, index) => `${index + 1}. ${convertEmbedToWatch(iframe.src)}`)
.join('\n'),
);
UNIT FILE STATE PRESET
app-at\x2dspi\x2ddbus\x2dbus@autostart.service generated -
app-blueman@autostart.service generated -
app-geoclue\x2ddemo\x2dagent@autostart.service generated -
app-gnome\x2dkeyring\x2dpkcs11@autostart.service generated -
app-gnome\x2dkeyring\x2dsecrets@autostart.service generated -
app-gnome\x2dkeyring\x2dssh@autostart.service generated -
app-nm\x2dapplet@autostart.service generated -
app-org.fcitx.Fcitx5@autostart.service generated -
at-spi-dbus-bus.service static -
@KevinNitroG
KevinNitroG / app.uit.edu.uit.md
Last active January 20, 2026 13:23
request app.uit.edu.vn, API UIT app mobile