Skip to content

Instantly share code, notes, and snippets.

View Hs293Go's full-sized avatar

H S Helson Go Hs293Go

  • UTIAS FSC Lab
View GitHub Profile
@Hs293Go
Hs293Go / CMakePresets.json
Created August 7, 2023 06:24
Hs293Go's CMakePresets template
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 14,
"patch": 0
},
"configurePresets": [
{
"name": "clang-tidy",
@Hs293Go
Hs293Go / px4_pluginlists.yaml
Created December 7, 2021 22:52
Example of px4_pluginlists.yaml with sensible blacklist presets
plugin_blacklist:
# common
- safety_area
# extras
- image_pub
- vibration
- distance_sensor
- rangefinder
- rallypoint # Used in mostly manual missions
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Hs293Go
Hs293Go / read_mat_file.hpp
Last active November 2, 2020 12:53
Reading MATLAB .mat file in C++, storing data in a std::map keyed by variable names
/* MATLAB API Libraries
*
* The headers are typically located in ${MATLAB_ROOT}/extern/include
* where ${MATLAB_ROOT} is the directory of your matlab installation.
*
* To use these libraries, your program must link against libmx.so and libmat.so
* The shared libraries are typically located in ${MATLAB_ROOT}/bin/glnxa64
*
* CMake users add the following lines to your CMakeLists.txt
* find_package(Matlab REQUIRED)
@Hs293Go
Hs293Go / Installing_Ubuntu_18_04_on_XPS_15_9570.md
Last active May 24, 2020 05:44
Installing Ubuntu 18.04 on XPS 15 9570

Installing Ubuntu 18.04 on XPS 15 9570

The XPS 15 is a popular high performance laptop that is quite suitable as a developer laptop. Its Nvidia graphics card even lets it handle some basic machine learning tasks.

Some developers may be tempted to install a Linux-based OS on their XPS 15. However, there are a few steps that must be done for the machine to function properly. This documents collects a few tips and fixes from Stack Overflow, Dell forums, and blog posts and links to the source of the ideas will be provided.

Preliminaries

How to create a Ubuntu bootable USB

Either balenaEtcher or Win32DiskImager can be used. I prefer BalenaEtcher since the same software with an identical interface is available in Linux too.