Skip to content

Instantly share code, notes, and snippets.

View zendobk's full-sized avatar
🤖
I may be slow to respond.

Dao Nguyen zendobk

🤖
I may be slow to respond.
  • Da Nang, Viet Nam
View GitHub Profile
@zendobk
zendobk / 01-install-nvidia-driver.sh
Last active May 30, 2022 02:55
Steps to install CUDA 10.0 on Ubuntu 18.04
#!/bin/bash
set -eo pipefail
# Purge existing drivers first if needed
sudo apt-get purge --auto-remove -y "nvidia*"
sudo ubuntu-drivers autoinstall
sudo apt-mark manual nvidia-prime nvidia-settings libnvidia-compute-440:i386 libnvidia-decode-440:i386 libnvidia-encode-440:i386 libnvidia-gl-440:i386
@zendobk
zendobk / 01-install-nvidia-driver.sh
Last active November 14, 2022 08:08
Steps to install CUDA 10.1 on Ubuntu 18.04
#!/bin/bash
set -eo pipefail
# Purge existing drivers first if needed
sudo apt-get purge --auto-remove -y "nvidia*"
sudo ubuntu-drivers autoinstall
sudo apt-mark manual nvidia-prime nvidia-settings libnvidia-compute-440:i386 libnvidia-decode-440:i386 libnvidia-encode-440:i386 libnvidia-gl-440:i386
@zendobk
zendobk / generate-openjdk-11-jre.sh
Created January 15, 2020 02:52
Generate default JRE for OpenJDK 11
#!/bin/bash
set -eo pipefail
cd /usr/lib/jvm/java-11-openjdk-amd64
sudo ./bin/jlink --output ./jre --compress=2 --no-header-files --no-man-pages --module-path ./jmods --add-modules java.base,java.compiler,java.datatransfer,java.desktop,java.instrument,java.logging,java.management,java.management.rmi,java.naming,java.net.http,java.prefs,java.rmi,java.scripting,java.se,java.security.jgss,java.security.sasl,java.smartcardio,java.sql,java.sql.rowset,java.transaction.xa,java.xml,java.xml.crypto