Skip to content

Instantly share code, notes, and snippets.

View fabiendupont's full-sized avatar

Fabien Dupont fabiendupont

View GitHub Profile
@fabiendupont
fabiendupont / _index.md
Last active August 30, 2022 20:54
Habana.ai

Install Habana Labs operator

This Gist explains how to deploy the Habana Labs operator in an OpenShift cluster. The first step is to deploy an OpenShift 4.11 cluster. Simply follow the documentation.

Prepare nodes

The habanalabs module needs to load a firmware, and the driver container will copy it to /var/lib/firmware on the node. We need to tell the node kernel to lookup that folder for firmwares, as it's not a default path. This is done by applying a MachineConfig to all worker nodes. The following command line will do it.

@fabiendupont
fabiendupont / convert_pdf_to_png.txt
Created September 10, 2018 07:24
Convert PDF to PNG
gs -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -dSAFER \
-dFirstPage=1 -dLastPage=1 \
-sOutputFile=%stdout% /home/anonymous/my_doc.pdf \
| convert -resize 200x200 -resample 72x72 pdf:- png:my_doc.png
@fabiendupont
fabiendupont / keybase.md
Created April 7, 2018 07:24
Keybase validation Gist

Keybase proof

I hereby claim:

  • I am evenit on github.
  • I am fdupont (https://keybase.io/fdupont) on keybase.
  • I have a public key ASDzjof1JYge6OdOamoEue-W5j_CJX0rAHfNKsyJWHBMOwo

To claim this, I am signing this object: