Skip to content

Instantly share code, notes, and snippets.

View luongngocminh's full-sized avatar
🎯
Focusing

Luong Minh luongngocminh

🎯
Focusing
View GitHub Profile
@luongngocminh
luongngocminh / check-npm-cache.sh
Created September 17, 2025 03:56 — forked from joeskeen/check-npm-cache.sh
This script will check your npm cache and find if any of the affected packages was pulled in your machine. `chmod +x check-npm-cache.sh` before usage. No dependencies - should work on any system with Bash. (Only tested by me on Linux)
#!/usr/bin/env bash
echo "🔍 Scanning for compromised NPM packages..."
# Define compromised packages and versions
declare -A compromised=(
[ansi-regex]="6.2.1"
[ansi-styles]="6.2.2"
[backslash]="0.2.1"
[chalk]="5.6.1"
@luongngocminh
luongngocminh / Cidoo V65 R2.json
Last active November 21, 2025 04:47
Epomaker deprecated the older batch of keyboards that will make everyone that have boards with below vender and product ids unable to connect to VIA. You can you this definition file instead of the official ones to be able to connect to VIA
{
"name": "CIDOO V65",
"vendorId": "0x1EA7",
"productId": "0x7777",
"lighting": {
"extends": "qmk_rgblight",
"underglowEffects": [
[
"OFF_MODE",
0
@luongngocminh
luongngocminh / engagebay_utm_hijack_onsubmit.js
Last active August 2, 2024 09:47
Hijack Engagebay form redirection to add external params like UTM
// Hijacking Engagebay HTML form submission redirection
// By: Luong Ngoc Minh
// Usage: Replace the original form submit function, for custom form with dedicated Submit button, not for embeded form
function onSubmit(e, t) {
e.preventDefault();
window.EhForm.redirect_to_url = function(a, f, i, b) {
var g = f;
try {
g = JSON.parse(f);
} catch (h) {