Skip to content

Instantly share code, notes, and snippets.

View acalatrava's full-sized avatar

Antonio Calatrava acalatrava

  • Mobile Innovations SL
  • Spain
  • 04:39 (UTC +02:00)
  • X @acalatrava
View GitHub Profile
@jasongill
jasongill / nvidia-jetson-libnvdla_compiler-fix-instructions.md
Last active June 16, 2025 15:12
Fixing the "libnvdla_compiler.so" on Jetson devices

If you, like me, just got a new Nvidia Jetson Orin Nano Super Developer Kit and are struggling to get the examples provided by Nvidia to run due to the following error:

ImportError: libnvdla_compiler.so: cannot open shared object file: No such file or directory

then you probably don't want to have to deal with downgrading the flashed version of things just to see if it will work. The issue is that the libnvdla_compiler.so file is not included in the latest (36.4.2 as of this writing) version of the Jetpack software which you're instructed to install to upgrade the firmware on the device.

The fix is to grab the file from the .deb file from the previous version. Running the following command will fix the issue:

@epicfilemcnulty
epicfilemcnulty / 2safetensors.py
Created September 13, 2023 20:21
convert pytorch weights to safetensors
import json
import os
import sys
from collections import defaultdict
from tqdm import tqdm
import argparse
import torch
from safetensors.torch import load_file, save_file
@igrr
igrr / esp32s3-psram-alloc-exec.c
Created July 10, 2023 17:18
Copy a function into PSRAM on ESP32-S3 and execute it
/*
* SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <stdio.h>
#include <string.h>
#include "esp_err.h"
#include "esp_log.h"
@darookee
darookee / mine-top-coin.sh
Created June 25, 2017 20:20
Start mining coins recommended by whattomine
#!/bin/bash
# this script expects scripts named <cointag> in the minerscripts sub directory
# Passing 'i' to this scripts will ask before starting to mine, answer 'n' to quit
# or 'c' to ask for the next available coin
# running without arguments starts mining the first available coin
#
# Example:
#
# cat ./minerscripts/ETH
@hellonicolas
hellonicolas / gulpfile.js
Last active March 10, 2018 11:30
Build script to help convert Framer projects to Cordova iOS builds
var gulp = require('gulp'),
runSequence = require('run-sequence'),
coffee = require('gulp-coffee'),
htmlreplace = require('gulp-html-replace'),
del = require('del'),
copy = require('gulp-copy'),
wait = require('gulp-wait'),
gutil = require('gulp-util'),
cordova = require("cordova-lib").cordova;