In most of the cases, predefining the database if fine, as in the official Quickstart tutorial, following are the 2 major ways, database proxy and […]
Peewee Mod Operator Overload
Mod(modulo) operation is not officially defined for peewee database query. To use the “MOD“ operator, we have to override the operator by ourselves.1 After this, […]
GPU Benchmark
Instal Nsight libtinfo5 is a prerequisite for Nsight1 You have to login to download the Nsight package, for example, for Ubuntu, I downloaded the NsightSystems-linux-public-2021.2.1.58-642947b.deb […]
CPU Benchmark
Install Perf On newer kernels If you are using container, making sure that you have kernel relative new, for example, 5.4. It is tested that […]
Install Docker-CE with CUDA support
Installation Add a non-root user to docker group Now your can login to the server again, and the user is granted with docker usage privilege. […]
Install Nvidia CUDA Toolkit on CentOS 7
Disable Nouveau Create a file named /etc/modprobe.d/blacklist.conf and add the following line to it: Then run the following commands After reboot, you can try to […]
Fix No Inodes Left on Linux Using Btrfs
Create a Sparse File Let’s take allocating 7TB as an example,1 After this, with ls -alh you can see that the file size is 7TB, […]
Convert .flac to .wav Using ffmpeg
-acodec pcm_s16le : 16 bit little endian -ac 1: mono channel -ar 16000: Sampling rate 16K