Skip to content

Instantly share code, notes, and snippets.

View dinhanhx's full-sized avatar
:shipit:
Building nuke

dinhanhx dinhanhx

:shipit:
Building nuke
View GitHub Profile
@dinhanhx
dinhanhx / run.sh
Created June 12, 2025 14:47
Checking system's nvidia and docker
#!/bin/bash
echo ":) Let's do this!!!"
echo -e "\n#~> Checking the presence of nvidia-smi <~#"
if command -v nvidia-smi &> /dev/null
then
nvidia-smi
else
echo "Nvidia-smi not found. Nvidia driver may not be installed or nvidia-smi may not be in your system's PATH."
fi
@dinhanhx
dinhanhx / readme.md
Created March 1, 2024 04:31
Python Virtual Environment Tools

Python Virtual Environment Tools

This document provides some fundamental and comparisons about virtual environment tools. The readers are expected to use one of similar tools once. If not, the readers should read 12. Virtual Environments and Packages — Python 3.12.2 documentation. Some concepts might be oversimplified.

The fundamental

Every beginner tutorial about creating virtual environment starts with venv or virtualenv .

venv is a standard module for creating lightweight environment.

@dinhanhx
dinhanhx / RDarkMode
Created March 14, 2020 06:31
A configured GUI file for R Gui/ R Editor
# Optional parameters for the console and the pager
# The system-wide copy is in rwxxxx/etc.
# A user copy can be installed in `R_USER'.
## Style
# This can be `yes' (for MDI) or `no' (for SDI).
MDI = yes
# the next two are only relevant for MDI
toolbar = yes
statusbar = no