Skip to content

Instantly share code, notes, and snippets.

View anhtuank7c's full-sized avatar

Tuan Nguyen anhtuank7c

View GitHub Profile
@anhtuank7c
anhtuank7c / Crack Sublime Text.md
Created September 24, 2026 04:34 — forked from Fadi002/Crack Sublime Text.md
Crack Sublime Text 4.2.0.0 Build 4200 [latest version]
import sys
import os

NOP = 0x90
offsets_and_values = {
    0x00030170: 0x00,
    0x000A94D0: NOP, 0x000A94D1: NOP, 0x000A94D2: NOP, 0x000A94D3: NOP, 0x000A94D4: NOP, 0x000A94D5: NOP, 0x000A94D6: NOP, 0x000A94D7: NOP, 0x000A94D8: NOP, 0x000A94D9: NOP, 0x000A94DA: NOP, 0x000A94DB: NOP, 0x000A94DC: NOP, 0x000A94DD: NOP, 0x000A94DE: NOP, 0x000A94DF: NOP, 0x000A94E0: NOP, 0x000A94E1: NOP, 0x000A94E2: NOP, 0x000A94E3: NOP, 0x000A94E4: NOP, 0x000A94E5: NOP, 0x000A94E6: NOP, 0x000A94E7: NOP, 0x000A94E8: NOP, 0x000A94E9: NOP, 0x000A94EA: NOP, 0x000A94EB: NOP, 0x000A94EC: NOP, 0x000A94ED: NOP, 0x000A94EE: NOP, 0x000A94EF: NOP, 0x000A94F0: NOP, 0x000A94F1: NOP, 0x000A94F2: NOP, 0x000A94F3: NOP, 0x000A94F4: NOP, 0x000A94F5: NOP, 0x000A94F6: NOP, 0x000A94F7: NOP, 0x000A94F8: NOP, 0x000A94F9: NOP, 0x000A94FA: NOP, 0x000A94FB: NOP, 0x000A94FC: NOP, 0x000A94FD: NOP, 0x000A94FE: NOP, 0x000A94FF: NOP, 0x000A9500: NOP, 0x000A9501: NOP, 0x000A9502: NOP, 0x000A9503: NOP, 0x000A9504: NOP, 0x000A9505: NOP, 0x000A9506: NO
KFZUS-F3JGV-T95Y7-BXGAS-5NHHP
T3ZWQ-P2738-3FJWS-YE7HT-6NA3K
KFZUS-F3JGV-T95Y7-BXGAS-5NHHP
65Z2L-P36BY-YWJYC-TMJZL-YDZ2S
SFZHH-2Y246-Z483L-EU92B-LNYUA
GSZVS-5W4WA-T9F2E-L3XUX-68473
FTZ8A-R3CP8-AVHYW-KKRMQ-SYDLS
Q3ZWN-QWLZG-32G22-SCJXZ-9B5S4
DAZPH-G39D3-R4QY7-9PVAY-VQ6BU
KLZ5G-X37YY-65ZYN-EUSV7-WPPBS
@anhtuank7c
anhtuank7c / install.sh
Last active November 6, 2026 13:22
Script cài đặt napp tự động
#!/usr/bin/env bash
# ==============================================================================
# install.sh — Bootstrap cài đặt napp trên một server mới: Ubuntu/Debian, hoặc
# họ RHEL (RHEL, Rocky, AlmaLinux, Oracle Linux, CentOS Stream 9/10, Fedora).
#
# napp được viết bằng TypeScript/Node.js và đóng gói thành MỘT file duy nhất
# (napp.cjs), nên trước tiên cần đảm bảo Node.js đã có mặt trên máy — script
# này tự lo việc đó (qua NodeSource) nếu chưa có, rồi tải napp.cjs về và cài
# vào /usr/local/bin/napp. Ngoài ra còn cài sẵn 'bun' (system-wide) để có thể
# tạo app chạy bằng bun — có thể tắt bằng NAPP_INSTALL_BUN=0.
@anhtuank7c
anhtuank7c / napp.cjs
Last active November 6, 2026 15:54
napp - tiện ích quản lý ứng dụng web nodejs trên Ubuntu
This file has been truncated, but you can view the full file.
#!/usr/bin/env node
// __NAPP_MARKER__ version=1.38.0
"use strict";
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __commonJS = (cb, mod) => function __require() {
@anhtuank7c
anhtuank7c / Unikey-Kubuntu.md
Last active August 4, 2026 09:03
Hướng dẫn cài đặt bộ gõ Tiếng Việt Fcitx5 cho Kubuntu

Hướng dẫn cài đặt Fcitx5 cho Kubuntu (KDE Plasma) trên Wayland

Hướng dẫn này được tối ưu riêng cho Kubuntu sử dụng môi trường KDE Plasma trên session Wayland.

⚠️ Lưu ý quan trọng cho KDE Wayland: KWin (Window Manager) sẽ trực tiếp quản lý và gọi Fcitx5 thông qua giao thức Bàn phím ảo (Virtual Keyboard). Do đó, cách cấu hình Autostart và biến môi trường kiểu cũ của X11/GNOME sẽ gây xung đột.

Bước 1: Cài đặt Fcitx5 và Bộ gõ

Mở Terminal (Konsole) và chạy lệnh sau để cài đặt Fcitx5, giao diện cấu hình Qt và bộ gõ Tiếng Việt fcitx5-bamboo:

@anhtuank7c
anhtuank7c / README.md
Last active November 4, 2026 08:57
lara - PHP/Laravel site manager

lara — Công cụ quản lý website PHP/Laravel (một file duy nhất)

lara giúp tạo, triển khai và quản lý nhiều website PHP/Laravel trên cùng một máy chủ Ubuntu. Mỗi website chạy dưới một user hệ thống riêng với pool PHP-FPM, socket và cấu hình nginx riêng — cô lập hoàn toàn để site này không đọc được dữ liệu của site kia.

  • ✅ Hỗ trợ PHP 7.4, 8.4 hoặc 8.5, Laravel 8–13 (tự kiểm tra tương thích)
    • Laravel 8 → PHP 7.4 · Laravel 11 → PHP 8.4 · Laravel 12/13 → PHP 8.4 hoặc 8.5
  • 🗄️ Tạo sẵn database + user MySQL/MariaDB riêng cho mỗi site (tùy chọn)
@anhtuank7c
anhtuank7c / docker-autostart.sh
Last active May 13, 2026 05:00
Stop Docker containers from auto-starting when Docker Desktop launches. Bash script to bulk-set the restart policy (no / unless-stopped / always / on-failure) on all containers, with --status and --dry-run modes. macOS, Linux, WSL.
#!/usr/bin/env bash
# docker-autostart.sh — bulk-manage Docker container restart policies (autostart on/off).
# Author: Tuan Nguyen <https://github.com/anhtuank7c>
# Co-author: Claude Code <https://claude.com/claude-code>
# License: MIT. No warranty. Run --help for details.
set -euo pipefail
# MARK: - Constants
# Single TAB byte, used as field separator for docker -f templates and column(1).
@anhtuank7c
anhtuank7c / VMware Workstation KEYS
Created September 23, 2025 07:39 — forked from dapize/VMware Workstation KEYS
key VMware® Workstation 16 Player (16.1.1 build-17801498)
VMware® Workstation 16 Player (16.1.1 build-17801498)
FA1M0-89YE3-081TQ-AFNX9-NKUC0
VMware Workstation Pro v16 Serial Key - DiamondMonday
ZF3R0-FHED2-M80TY-8QYGC-NPKYF
YF390-0HF8P-M81RQ-2DXQE-M2UT6
pxKdy4w9gk2nUGZq5jLBWM
@anhtuank7c
anhtuank7c / API_guideline.md
Created November 29, 2024 08:00
RESTful Guideline

I'll help you improve the API security and design. Let's analyze the current issues and implement better security practices.

Current Issues:

  1. Exposing secret key as a query parameter is insecure because:
    • It appears in server logs
    • It's visible in browser history
    • It can be intercepted in network traffic
    • It might get cached or bookmarked

Here's a comprehensive solution to improve your API security: