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
@ngtrphuong
ngtrphuong / KUBERNETES_SETUP.md
Created July 30, 2025 07:46 — forked from dPacc/KUBERNETES_SETUP.md
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?

@ngtrphuong
ngtrphuong / install-pytorch-with-cuda.md
Created September 6, 2025 23:50 — forked from Hansimov/install-pytorch-with-cuda.md
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}")
@ngtrphuong
ngtrphuong / install_open_webui_service.bat
Created September 19, 2025 11:57 — forked from cyysky/install_open_webui_service.bat
Batch script to install Open WebUI as a Windows service using nssm and uvx, need to run it command prompt with administrator right.
@echo off
setlocal enabledelayedexpansion
echo ========================================
echo Installing Open WebUI as a Windows service
echo ========================================
:: Define variables
set "INSTALL_DIR=%~dp0"
set "INSTALL_DIR=%INSTALL_DIR:~0,-1%"
set "DATA_DIR=%INSTALL_DIR%\data"
@ngtrphuong
ngtrphuong / how-to-ssh-into-windows.md
Created October 15, 2025 05:30 — forked from teocci/how-to-ssh-into-windows.md
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.

@ngtrphuong
ngtrphuong / dellchromelinux.md
Created April 3, 2026 08:18 — forked from plembo/dellchromelinux.md
Linux on a Dell Chromebook 11

Linux on a Dell Chromebook 11

NOTE: The N3060 CPU's 2 cores on this old Chromebook were just too sluggish for it to be usable during that overseas trip mentioned below. It now sits unused on my lab table, as I contemplate taking it on a journey to our local county recycling center. I leave this gist here mostly out of nostalgia.

My retail (not enterprise) Dell Chromebook 11 (an Inspiron model 3181, not the 3180 or 3189) went EOL shortly after I purchased it new from Best Buy. Since then it saw some hard use in the family kitchen as a recipe lookup device, but was finally retired when replaced by a (relatively) newer Android tablet (that also reached EOL shortly thereafter).

With an overseas trip looming, I decided to look into refurbishing the Chromebook for use as a privacy hardened travel laptop. Frankly, the thought of TSA and Customs manhandling my trusty portable workstation was too much to bear.

I mostly followed the detailed instructions in the Chrultrabook Docs,