Skip to content

Instantly share code, notes, and snippets.

@blechatellier
blechatellier / Cargo.toml
Last active May 7, 2019 00:17
Trying to get a persistent reference working with Iron, not sure how to set an appropriate lifetime here. I want to be able to re-use the controller on different routes.
[package]
name = "iron-lifetime"
version = "0.1.0"
edition = "2018"
[dependencies]
iron = "0.6.*"
router = "0.6.*"
persistent = "0.4.0"
ERROR: An error occurred while performing the step: "Building kernel modules". See /var/log/nvidia-installer.log for details.
-> The command `cd ./kernel; /usr/bin/make -k -j4 NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/lib/modules/4.14.48-yocto-standard/build" SYSOUT="/lib/modules/4.14.48-yocto-standard/build"` failed with the following output:
make[1]: Entering directory '/lib/modules/4.14.48-yocto-standard/build'
Makefile:950: "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel"
SYMLINK /tmp/selfgz2846/NVIDIA-Linux-x86_64-390.59/kernel/nvidia/nv-kernel.o
SYMLINK /tmp/selfgz2846/NVIDIA-Linux-x86_64-390.59/kernel/nvidia-modeset/nv-modeset-kernel.o
CONFTEST: INIT_WORK
CONFTEST: hash__remap_4k_pfn
CONFTEST: follow_pfn
@blechatellier
blechatellier / node-gyp-cross.sh
Created February 15, 2018 05:01 — forked from kevinmehall/node-gyp-cross.sh
node-gyp cross-compile
#!/bin/bash
set -e
if [ ! -d "$STAGING_DIR" ]; then
echo "STAGING_DIR needs to be set to your cross toolchain path";
exit 1
fi
ARCH=${ARCH:-mipsel}
NODE=${NODE:-0.10.33}
@blechatellier
blechatellier / Dockerfile
Last active November 11, 2017 10:17
CUDA on the Jetson TX2
FROM arm64v8/ubuntu:16.04
RUN apt-get update && apt-get install -y --no-install-recommends \
wget \
bzip2 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /tmp
# CUDA