Skip to content

Instantly share code, notes, and snippets.

@hanshu830
hanshu830 / ccomments
Created March 16, 2023 09:43 — forked from eij/ccomments
Clean C style comments with sed.
#! /bin/sed -nf
# Remove C style comments.
# Copyright Brian Hiles ([email protected]), Paolo Bonzini ([email protected])
:loop
/^\/\// s,.*,, # This line is sufficient to remove C++ comments!
/^$/{
@hanshu830
hanshu830 / installing_nvidia_driver_cuda_cudnn_linux.md
Created February 20, 2021 09:34 — 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.

groupadd -g 54321 oinstall
groupadd -g 54322 dba
groupadd -g 54323 oper
useradd -u 54321 -g oinstall -G dba,oper -m -s binbash oracle
passwd oracle