Skip to content

Instantly share code, notes, and snippets.

View bernardomig's full-sized avatar

Bernardo Lourenço bernardomig

View GitHub Profile
@bernardomig
bernardomig / cookbook.md
Last active July 28, 2017 05:58
Pascal Introduction

Pascal Cookbook

Introduction

This book contains small pascal program that implement some features. They are supposed to be easy to read and to understand.

Each script starts with a brief description, followed by the code and then the output of the program, like so:


@bernardomig
bernardomig / setup-code-ros.sh
Last active February 21, 2019 10:19
Setup VS code for ROS melodic
cat <<EOF
_ _ ____ ___ __ ____ ____ ____ __ ____
/ )( \/ ___) / __)/ \( \( __) ( _ \ / \ / ___)
\ \/ /\___ \( (__( O )) D ( ) _) ) /( O )\___ \
\__/ (____/ \___)\__/(____/(____) (__\_) \__/ (____/
EOF
echo "Installing basic dependencies"
sudo apt install clang clang-format clang-tidy -y
@bernardomig
bernardomig / README.md
Last active October 29, 2023 15:32
Setup podman and nvidia-container-runtime

How to setup nvidia-container-runtime and podman/runc

Podman is such a cool project! However, there is no easy way to setup the nvidia-container-runtime and podman so that we can run unprivileged container in a gpu host. This is specially interesting in environments with multiple people accessing the same host (strong isolation between containers!!!).

Steps to setup the whole system

  1. Install podman and friends (buildah and skopeo)

Ubuntu: add-apt-repository -y ppa:projectatomic/ppa &amp;&amp; apt install podman buildah skopeo