Skip to content

Instantly share code, notes, and snippets.

@atinfinity
atinfinity / install-nvidia-container-toolkit-wsl2.md
Last active June 25, 2025 16:33
Install NVIDIA Container Toolkit on WSL2

Install NVIDIA Container Toolkit on WSL2

Preparation

Please install Ubuntu on WSL2.
I have executed the following procedures on Ubuntu 22.04 of WSL2.

Install Docker CLI

@atinfinity
atinfinity / m5stack_llm_module_study.md
Last active May 8, 2025 12:23
M5Stack LLM モジュール参考リンク集
$ pixi list
Package                                           Version             Build                     Size       Kind   Source
adwaita-icon-theme                                48.0                unix_0                    596.1 KiB  conda  https://conda.anaconda.org/conda-forge/
aiohappyeyeballs                                  2.6.1               pyhd8ed1ab_0              19.3 KiB   conda  https://conda.anaconda.org/conda-forge/
aiohttp                                           3.11.16             py311h4921393_0           873 KiB    conda  https://conda.anaconda.org/conda-forge/
aiosignal                                         1.3.2               pyhd8ed1ab_0              12.9 KiB   conda  https://conda.anaconda.org/conda-forge/
ampl-asl                                          1.0.0               h286801f_2                402.3 KiB  conda  https://conda.anaconda.org/conda-forge/
aom                                               3.9.1               h7bae524_0                2.1 MiB    conda 
$ pixi list
Package                                            Version       Build                      Size       Kind   Source
aiohappyeyeballs                                   2.6.1         pyhd8ed1ab_0               19.3 KiB   conda  https://conda.anaconda.org/conda-forge/
aiohttp                                            3.11.16       py311h4921393_0            873 KiB    conda  https://conda.anaconda.org/conda-forge/
aiosignal                                          1.3.2         pyhd8ed1ab_0               12.9 KiB   conda  https://conda.anaconda.org/conda-forge/
aom                                                3.9.1         h7bae524_0                 2.1 MiB    conda  https://conda.anaconda.org/conda-forge/
argcomplete                                        3.6.2         pyhd8ed1ab_0               41.2 KiB   conda  https://conda.anaconda.org/conda-forge/
assimp                                             5.4.3         ha9c0b8d_0                 2.4 MiB    conda  https://conda.anaconda.org/
$ pixi list
Package                                           Version       Build                     Size       Kind   Source
adwaita-icon-theme                                48.0          unix_0                    596.1 KiB  conda  https://conda.anaconda.org/conda-forge/
aiohappyeyeballs                                  2.6.1         pyhd8ed1ab_0              19.3 KiB   conda  https://conda.anaconda.org/conda-forge/
aiohttp                                           3.11.16       py312h998013c_0           871.2 KiB  conda  https://conda.anaconda.org/conda-forge/
aiosignal                                         1.3.2         pyhd8ed1ab_0              12.9 KiB   conda  https://conda.anaconda.org/conda-forge/
aom                                               3.9.1         h7bae524_0                2.1 MiB    conda  https://conda.anaconda.org/conda-forge/
argcomplete                                       3.6.2         pyhd8ed1ab_0              41.2 KiB   conda  https://conda.anaconda.org/conda-forge/
a
@atinfinity
atinfinity / view_frames.md
Last active October 9, 2024 11:50
view_frames
We couldn’t find that file to show.
@atinfinity
atinfinity / ros2_humble_install macos.md
Last active March 20, 2024 02:26
ROS 2 Humble installation for macOS
@atinfinity
atinfinity / CMakeLists.txt
Last active January 8, 2024 06:20
コンパイラ情報を取得するCMakeLists.txt
message(STATUS "CMAKE_GENERATOR: ${CMAKE_GENERATOR}\n")
message(STATUS "CMAKE_C_COMPILER_ID: ${CMAKE_C_COMPILER_ID}")
message(STATUS "CMAKE_CXX_COMPILER_ID: ${CMAKE_CXX_COMPILER_ID}\n")
message(STATUS "CMAKE_C_COMPILER_VERSION: ${CMAKE_C_COMPILER_VERSION}")
message(STATUS "CMAKE_CXX_COMPILER_VERSION: ${CMAKE_CXX_COMPILER_VERSION}\n")
if(MSVC)
message(STATUS "MSVC_VERSION: ${MSVC_VERSION}")
@atinfinity
atinfinity / oclMat_custom_kernel.cpp
Last active September 14, 2023 07:26
sample code to execute custom OpenCL kernel on OpenCV 2.4.9
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/ocl/ocl.hpp>
// cl_mem構造体を参照するためにインクルード
#if defined __APPLE__
#include <OpenCL/cl.h>
#else
#include <CL/cl.h>
#endif
@atinfinity
atinfinity / Dockerfile
Last active August 3, 2023 02:24
Autoware Auto(w/o ADE) on Docker
FROM nvidia/cuda:11.1-cudnn8-devel-ubuntu20.04
ENV NVIDIA_VISIBLE_DEVICES ${NVIDIA_VISIBLE_DEVICES:-all}
ENV NVIDIA_DRIVER_CAPABILITIES ${NVIDIA_DRIVER_CAPABILITIES:+$NVIDIA_DRIVER_CAPABILITIES,}graphics
# add new sudo user
ENV USERNAME autoware
ENV HOME /home/$USERNAME
RUN useradd -m $USERNAME && \
echo "$USERNAME:$USERNAME" | chpasswd && \