Skip to content

Instantly share code, notes, and snippets.

View ngtrphuong's full-sized avatar

Phương Nguyễn ngtrphuong

  • HCM - Viet Nam
View GitHub Profile
@disler
disler / standards_for_true_ai_coding_assistants.md
Created January 21, 2024 16:30
Standards For True AI Coding Assistants

What is an AI Coding Assistant?

If the coding assistant can't run ITERATIVE CRUD on ALL of your code, it's not a True AI Coding Assistant (TACA)

Standards for TRUE AI Coding Assistants

  1. Must work on existing codebases
  2. Must have a file context mechanism
  3. Must be iteratively controllable
@robin-collins
robin-collins / windows-11-activation.txt
Created October 7, 2023 11:05
Windows 11 Activation
# How to Activate Windows 11 for FREE
## Step 1: Click on the Start button, search for “cmd“, and click on “Run as Administrator“.
## Step 2: Type: slmgr /ipk [KEY]
Replace the [KEY] with your key as per your windows version as mentioned below.
The following is the list of Windows 11 Volume license keys.
* Home: TX9XD-98N7V-6WMQ6-BX7FG-H8Q99
@Hansimov
Hansimov / install-pytorch-with-cuda.md
Last active March 7, 2026 05:28
Install PyTorch with CUDA enabled

Check if CUDA is available by torch:

import torch

def check_cuda():
    print(torch.version.cuda)
    cuda_is_ok = torch.cuda.is_available()
    print(f"CUDA Enabled: {cuda_is_ok}")
@juanmc2005
juanmc2005 / diart_whisper.py
Last active November 26, 2025 07:29
Code for my tutorial "Color Your Captions: Streamlining Live Transcriptions with Diart and OpenAI's Whisper". Available at https://medium.com/@juanmc2005/color-your-captions-streamlining-live-transcriptions-with-diart-and-openais-whisper-6203350234ef
import logging
import os
import sys
import traceback
from contextlib import contextmanager
import diart.operators as dops
import numpy as np
import rich
import rx.operators as ops
Windows 11 Home Product Key
4BKNH-D2VBJ-HQCHQ-47RR2-4RG3V
B4J96-7NXHJ-DG92W-WX887-JQKQV
3HP6K-9N8Q6-BY7VG-P8KCW-WB47H
9NW26-K7PD9-WJBTX-9XTCW-9TPHH
9QJFK-MNQ2Y-KJG2J-P7GPD-G83DV
Windows 11 Pro Product key
XGWR7-NX2JM-CKF9Q-BYGVP-6JF9M
69HCR-4NTVC-K94M3-GRBWP-YKMQB
@dPacc
dPacc / KUBERNETES_SETUP.md
Created April 7, 2023 05:13
Setup Kubernetes Cluster on premise using kubeadm

Setup Kubernetes Cluster On-Premise using kubeadm

Why would you do this?

  • You own your bare metal infrastructure.
  • You want to take advantage of Kubernetes.
  • You do not wish to migrate your application to the cloud

Why it will not always suit your needs?

Build a flutter app in WSL2

Install, build and debug a flutter app in WSL2 (Windows Subsystem for Linux).

Linux setup

Install Java

To install the JDK, execute the following command, which will also install the JRE:

sudo apt install default-jdk

Add the following two lines to /etc/profile (setting the JAVA_HOME environment variable):

@letsgoawaydev
letsgoawaydev / WinKeys.txt
Last active April 30, 2026 09:24
Windows Product Keys
``````````````````````````````````````````
Windows Product Keys for Getting Past Setup
Windows XP - Windows 11
Home product keys are currently not added.
THESE WILL ONLY HELP YOU GET PAST SETUP AND WILL NOT
ACTIVATE WHEN YOU CONNECT TO THE INTERNET. THESE JUST
LET YOU INSTALL WINDOWS TO YOUR HARDDISK UNACTIVATED
``````````````````````````````````````````
@edjdavid
edjdavid / file.md
Created October 13, 2022 12:45
Stream Windows webcam/desktop via RTSP

Can be used for streaming data (webcam or screen capture) from the Windows to WSL

Install

  1. Simple RTSP Server
  2. ffmpeg

Get the internal IP of WSL

Run from a WSL terminal

ip route list default | awk '{print $3}'
@teocci
teocci / how-to-ssh-into-windows.md
Created October 13, 2022 08:07
How to SSH into Windows 10 or 11?

How to SSH into Windows 10 or 11?

The latest builds of Windows 10 and Windows 11 include a build-in SSH server and client that are based on OpenSSH. This means now you can remotely connect to Windows 10/11 or Windows Server 2019 using any SSH client, like Linux distros. Let's see how to configure OpenSSH on Windows 10 and Windows 11, and connect to it using Putty or any other SSH client.

OpenSSH is an open-source, cross-platform version of Secure Shell (SSH) that is used by Linux users for a long time. This project is currently ported to Windows and can be used as an SSH server on almost any version of Windows. In the latest versions of Windows Server 2022/2019 and Windows 11, OpenSSH is built-in to the operating system image.