Skip to content

Instantly share code, notes, and snippets.

View truongtpa's full-sized avatar

Trần Phan An Trường truongtpa

View GitHub Profile
@hideojoho
hideojoho / 0-How-to-setup-ubuntu-server-2004-for-gpu.md
Last active July 9, 2025 09:39
How to set up Ubuntu Server 20.04 with GPU to use TensorFlow and Pytorch via JupyterLab on Docker

How to set up Ubuntu Server 20.04 with GPU to use TensorFlow and Pytorch via JupyterLab on Docker

Environment

  • Ubuntu Server 20.04
  • CUDA Driver 10.2
  • Docker 19.03
  • NVIDIA Container Toolkit 2.3.0
  • NVIDIA RTX 2080ti (or other supported GPUs)
@danieldogeanu
danieldogeanu / WampHTTPS.md
Last active December 9, 2025 18:58
How to enable HTTPS for WAMP Server.

After you've downloaded and installed WAMP Server, follow these steps:

  1. Generate SSL certificate using OpenSSL:
  • Add C:\wamp64\bin\apache\apache2.4.27\bin directory to the PATH so you can access openssl command from the command prompt (WAMP comes with its own version of OpenSSL already integrated, so you don't need to install it. You'll find it in this directory.).

    IMPORTANT: Please note that the path of your installation depends on your version of Apache! DO NOT copy and paste the paths presented in this gist as they will not match with yours!

  • Navigate to your user directory (C:\Users\%YOUR_USERNAME%\), create a new folder (.openssl), navigate to it with Powershell and run these commands:

    openssl genrsa -aes256 -out private.key 2048
    

openssl rsa -in private.key -out private.key