Skip to content

Instantly share code, notes, and snippets.

@FlorSanders
FlorSanders / JetsonNano2GB_LlamaCpp_SetupGuide.md
Created April 11, 2024 15:17
Setup llama.cpp on a Nvidia Jetson Nano 2GB

Setup Guide for llama.cpp on Nvidia Jetson Nano 2GB

This is a full account of the steps I ran to get llama.cpp running on the Nvidia Jetson Nano 2GB. It accumulates multiple different fixes and tutorials, whose contributions are referenced at the bottom of this README.

Procedure

At a high level, the procedure to install llama.cpp on a Jetson Nano consists of 3 steps.

  1. Compile the gcc 8.5 compiler from source.
@arpagon
arpagon / Cursor-Desktop-AutoUpdate-Handler.sh
Created August 31, 2023 21:51
Cursor-Desktop-AutoUpdate-Handler.sh
#!/bin/bash
# Step 1: Confirm the path to the .AppImage file
APPIMAGE_PATH="$HOME/Applications/cursor-0.8.6.AppImage"
echo "Using AppImage path: $APPIMAGE_PATH"
# Step 1.5: Download the Cursor logo
ICON_PATH="$HOME/.local/share/icons/cursor-icon.svg"
curl -o $ICON_PATH "https://www.cursor.so/brand/icon.svg"
echo "Downloaded logo to: $ICON_PATH"
@michalpelka
michalpelka / Dockerfile
Last active February 5, 2026 11:14
Livox2 && Fast Lio
# docker build -t livox -f Dockerfile .
# rocker --x11 --nvidia --network host livox
# set host ip to 192.168.1.5
# assume Livox ip is 192.168.1.177
# inside container:
# ping 192.168.1.177
# vim /ws/src/livox_ros_driver2/config/MID360_config.json
# screen -m bash -c '. /ws/devel/setup.sh && roslaunch /ws/src/livox_ros_driver2/launch_ROS1/msg_MID360.launch'
@michalpelka
michalpelka / docker
Last active March 31, 2024 08:04
KISS-ICP Docker
# docker build -t kiss-icp -f Dockerfile .
# rocker --x11 --nvidia kiss-icp --volume /home/michal/Downloads/:/data/
# kiss_icp_pipeline --visualize --topic /os1_cloud_node/points /data/rooster_2020-03-10-10-36-30_0-006.bag
ARG ROS_DISTRO=noetic
FROM ros:$ROS_DISTRO-ros-core
SHELL ["/bin/bash", "-c"]
RUN apt-get update && apt-get install -y \
@nowrep
nowrep / gist:1810670
Created February 12, 2012 20:11
Iterate through all groups and keys in QSettings
QString allGroupsString;
QSettings* settings = Settings::globalObject();
foreach (const QString &group, settings->childGroups()) {
QString groupString = QString("<table><th>..%1..</th>").arg(group);
settings->beginGroup(group);
foreach (const QString &key, settings->childKeys()) {
groupString.append(QString("<tr><td>%1</td><td>%2</td></tr>").arg(key, settings->value(key).toString()));
}