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
@truongtpa
truongtpa / ApacheIgniteSystemdService.md
Created January 24, 2023 08:14 — forked from olaf-2/ApacheIgniteSystemdService.md
Install Apache Ignite as a systemd service

Install Apache Ignite as a systemd service

Create a user for running Apache Ignite.

sudo useradd -s /usr/sbin/nologin -m ignite

Create a folder for the configuration files and the data folder for Apache Ignite Native Persistence.

sudo -u ignite mkdir -p /home/ignite/apache-ignite-config /home/ignite/apache-ignite-data

@truongtpa
truongtpa / spark_tutorial.md
Created October 10, 2022 10:12 — forked from devender-yadav/spark_tutorial.md
Introduction to Spark
@truongtpa
truongtpa / install-keycloak-ubuntu-21.04.sh
Created September 15, 2022 03:26 — forked from alexjsteffen/install-keycloak-deb.sh
Simple bash install script to install Keycloak 13 on Ubuntu 21.04 as a service (updated June, 2021)
#/bin/bash
apt update
apt upgrade -y
apt install -y software-properties-common curl wget nano sudo openjdk-11-jdk gnupg2 build-essential git mercurial
cd /opt
wget https://github.com/keycloak/keycloak/releases/download/13.0.1/keycloak-13.0.1.tar.gz
tar -xvf keycloak-13.0.1.tar.gz
mv keycloak-13.0.1 keycloak
groupadd keycloak
@truongtpa
truongtpa / cuda-install.md
Created August 31, 2022 15:09 — forked from mikaelhg/cuda-install.md
Proper CUDA and cuDNN installation
date title tags
2020-02-29
Proper CUDA and cuDNN installation
tech

You're here, so you're probably already hurting because of CUDA and cuDNN compatibility, and I won't have to motivate you, or explain why you'd want to have standalone CUDA and cuDNN installations, if you're going to develop using Tensorflow in the long term.

1. Download your CUDA runfile (local) packages

@truongtpa
truongtpa / installing_nvidia_driver_cuda_cudnn_linux.md
Created August 26, 2022 12:53 — forked from kmhofmann/installing_nvidia_driver_cuda_cudnn_linux.md
Installing the NVIDIA driver, CUDA and cuDNN on Linux

Installing the NVIDIA driver, CUDA and cuDNN on Linux (Ubuntu 20.04)

This is a companion piece to my instructions on building TensorFlow from source. In particular, the aim is to install the following pieces of software

on an Ubuntu Linux system, in particular Ubuntu 20.04.

@truongtpa
truongtpa / 0-How-to-setup-ubuntu-server-2004-for-gpu.md
Created August 24, 2022 03:00 — forked from hideojoho/0-How-to-setup-ubuntu-server-2004-for-gpu.md
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)
@truongtpa
truongtpa / letsencrypt_2020.md
Created February 24, 2022 00:14 — forked from cecilemuller/letsencrypt_2020.md
How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SSL rating)

How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SLL rating)


Virtual hosts

Let's say you want to host domains first.com and second.com.

Create folders for their files:

@truongtpa
truongtpa / WampHTTPS.md
Last active February 15, 2022 16:04 — forked from danieldogeanu/WampHTTPS.md
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