Skip to content

Instantly share code, notes, and snippets.

View awesomebytes's full-sized avatar

Sam Pfeiffer awesomebytes

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@awesomebytes
awesomebytes / README.md
Last active June 23, 2020 07:55
Test TX2 OpenCV cuda support

Run the docker image with

docker run -it --runtime nvidia -e DISPLAY --privileged IMAGE_NAME /bin/bash

./test.sh

diff --git a/cuda_gl_interop.h b/cuda_gl_interop.h
index 0f4aa17..e8c538c 100644
--- a/cuda_gl_interop.h
+++ b/cuda_gl_interop.h
@@ -59,13 +59,13 @@
#else /* __APPLE__ */
-#if defined(__arm__) || defined(__aarch64__)
-#ifndef GL_VERSION

ThinkPad X1 Extreme gen2 fingerprint reader Ubuntu 18.04

# Install latest version of firmware update tool from snap, but first remove the current one in the system
sudo apt-get remove fwupd

Get the latest firmware and flash it doing what is said here and here:

"""This module illustrates how to write your docstring in OpenAlea
and other projects related to OpenAlea."""
__license__ = "Cecill-C"
__revision__ = " $Id: actor.py 1586 2009-01-30 15:56:25Z cokelaer $ "
__docformat__ = 'reStructuredText'
class MainClass1(object):
"""This class docstring shows how to use sphinx and rst syntax
2020-06-01T19:00:04.5244075Z >>> Emerging (18 of 34) dev-lisp/sbcl-1.4.9::gentoo
2020-06-01T19:00:04.7475372Z * sbcl-1.4.9-source.tar.bz2 BLAKE2B SHA512 size ;-) ... [ ok ]
2020-06-01T19:00:04.7476878Z * sbcl-1.4.8-x86-64-linux-binary.tar.bz2 BLAKE2B SHA512 size ;-) ... [ ok ]
2020-06-01T19:00:05.5504559Z >>> Unpacking source...
2020-06-01T19:00:05.5519758Z >>> Unpacking sbcl-1.4.9-source.tar.bz2 to /tmp/gentoo/var/tmp/portage/dev-lisp/sbcl-1.4.9/work
2020-06-01T19:00:06.6932853Z >>> Unpacking sbcl-1.4.8-x86-64-linux-binary.tar.bz2 to /tmp/gentoo/var/tmp/portage/dev-lisp/sbcl-1.4.9/work
2020-06-01T19:00:08.5292282Z >>> Source unpacked in /tmp/gentoo/var/tmp/portage/dev-lisp/sbcl-1.4.9/work
2020-06-01T19:00:08.7784655Z >>> Preparing source in /tmp/gentoo/var/tmp/portage/dev-lisp/sbcl-1.4.9/work/sbcl-1.4.9 ...
2020-06-01T19:00:08.7817657Z * Applying concurrency-test-1.3.15.patch ...
2020-06-01T19:00:08.7851622Z patching file contrib/sb-concurrency/tests/test-frlock.lisp
user@2a48ac5f80d5:/tmp/gentoo$ emerge --info
Portage 2.3.100 (python 3.7.7-final-0, !/tmp/gentoo/var/db/repos/gentoo/profiles/default/linux/amd64/17.0/no-multilib/prefix/kernel-3.2+, gcc-10.1.0, glibc-2.31-r3, 4.15.0-42-generic x86_64)
=================================================================
System uname: Linux-4.15.0-42-generic-x86_64-Intel-R-_Core-TM-_i7-6700HQ_CPU_@_2.60GHz-with-debian-stretch-sid
KiB Mem: 16293808 total, 1493840 free
KiB Swap: 17050620 total, 17049852 free
Timestamp of repository gentoo: Mon, 01 Jun 2020 13:35:34 +0000
Head commit of repository gentoo: a8a6535614b7bfeffd031115378c47da96d5f1d9
Head commit of repository ros-overlay: ee1bf8b528ca7717957c614967cdc04074f39b59
@awesomebytes
awesomebytes / build.log
Created June 2, 2020 04:07
dev-lisp/sbcl build log
user@2a48ac5f80d5:/tmp/gentoo$ emerge dev-lisp/sbcl
* IMPORTANT: 5 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
Calculating dependencies... done!
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) dev-lisp/sbcl-2.0.4::gentoo
@awesomebytes
awesomebytes / 0001-Remove-signals-to-enable-build-with-boost-1.69.patch
Created May 11, 2020 10:20
Patch to enable ros-melodic/hector_mapping compiling with boost>1.69 on Gentoo
From 926a2eef519d150879f241d9fe1bab82d9bb53c7 Mon Sep 17 00:00:00 2001
From: Sammy Pfeiffer <sammypfeiffer@gmail.com>
Date: Mon, 11 May 2020 20:18:10 +1000
Subject: [PATCH 1/1] Remove signals to enable build with boost>1.69
---
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
@awesomebytes
awesomebytes / pepper_laser_driver_precise.py
Created April 21, 2020 01:47
More precise Pepper LaserScan driver (with UTS Unleashed! libraries used)
#!/usr/bin/env python
from math import cos, radians, sin, sqrt, atan2
# These are internal wrappers to make ROS easier to use
from magic_ros import InitROS, MessagePublisher, ROSNode
from rospy import Rate, Time
from sensor_msgs.msg import LaserScan
# Internal wrapper to make Qi easier to user