Skip to content

Instantly share code, notes, and snippets.

View KevinNitroG's full-sized avatar
😐
Sad

Kevin Nitro KevinNitroG

😐
Sad
View GitHub Profile
@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
@KevinNitroG
KevinNitroG / sql_keywords.sql
Created November 24, 2024 05:21
All sql keyword taken from wikipedia
-- ABORT ABORTSESSION ABS ABSENT ABSOLUTE ACCESS ACCESSIBLE ACCESS_LOCK ACCOUNT ACOS ACOSH ACTION ADD ADD_MONTHS ADMIN AFTER AGGREGATE ALIAS ALL ALLOCATE ALLOW ALTER ALTERAND AMP ANALYSE ANALYZE AND ANSIDATE ANY ANY_VALUE ARE ARRAY ARRAY_AGG ARRAY_EXISTS ARRAY_MAX_CARDINALITY AS ASC ASENSITIVE ASIN ASINH ASSERTION ASSOCIATE ASUTIME ASYMMETRIC AT ATAN ATAN2 ATANH ATOMIC AUDIT AUTHORIZATION AUX AUXILIARY AVE AVERAGE AVG BACKUP BEFORE BEGIN BEGIN_FRAME BEGIN_PARTITION BETWEEN BIGINT BINARY BIT BLOB BOOLEAN BOTH BREADTH BREAK BROWSE BT BTRIM BUFFERPOOL BULK BUT BY BYTE BYTEINT BYTES CALL CALLED CAPTURE CARDINALITY CASCADE CASCADED CASE CASESPECIFIC CASE_N CAST CATALOG CCSID CD CEIL CEILING CHANGE CHAR CHAR2HEXINT CHARACTER CHARACTERS CHARACTER_LENGTH CHARS CHAR_LENGTH CHECK CHECKPOINT CLASS CLASSIFIER CLOB CLONE CLOSE CLUSTER CLUSTERED CM COALESCE COLLATE COLLATION COLLECT COLLECTION COLLID COLUMN COLUMN_VALUE COMMENT COMMIT COMPLETION COMPRESS COMPUTE CONCAT CONCURRENTLY CONDITION CONNECT CONNECTION CONSTRAINT C
@KevinNitroG
KevinNitroG / muc_luc_triet.md
Created November 7, 2024 18:03
Mục lục triết

WTF IS THIS

Ờm ko biết bro


Chương 1: KHÁI NIỆM VỀ TRIẾT HỌC VÀ TRIẾT HỌC MÁC - LÊNIN

I. TRIẾT HỌC VÀ VẤN ĐỀ CƠ BẢN CỦA TRIẾT HỌC

@KevinNitroG
KevinNitroG / download_weibo.ps1
Created November 6, 2024 07:47
download image from weibo
Get-Clipboard > _test.html
prettier _test.html | Select-String -Pattern 'src="' | ForEach-Object {
if ($_ -match 'src="([^"]+)"')
{
$url = $matches[1]
curl --header "Referer: https://m.weibo.cn/" --header "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36" --header "Sec-Fetch-Site: cross-site" --output $([System.IO.Path]::GetFileName($url)) $url
}
}
Remove-Item -Path _test.html -Force