Skip to content

Instantly share code, notes, and snippets.

View quantumxt's full-sized avatar

Photon quantumxt

View GitHub Profile
@greenbrettmichael
greenbrettmichael / Notes.md
Last active August 22, 2025 06:21
Building Colmap and Glomap with CUDA support

This is a bit fragile and hacky to setup at the moment. Two things should happen to improve this configuration process

  1. CMAKE improvements to finding CuDSS. Alternatively, it would be easy enough to write a FindCuDSS.cmake for ceres that looks in standard install locations.
  2. Release of Ceres 2.3. Glomap is dependent on Ceres 2.3 for GPU support, however this version does not have an official release. It would be straightforward to update the official vcpkg port once the version is released.
@Pyrestone
Pyrestone / setup_noetic.md
Created December 23, 2021 11:16
ROS Noetic Install on NVIDIA Jetson Nano (Ubuntu 18.04)

ROS Noetic Install on jetson nano (Ubuntu 18.04)

This guide is derived from the official Noetic setup page, which can be found here: http://wiki.ros.org/noetic/Installation/Source

This version includes some customizations for missing packages on Ubuntu 18.04 which the jetson nano OS uses. I think this installation should work on most ubuntu 18.04 installations, but I can give no guarantees.

System and python dependencies

@JADC362
JADC362 / ROS2DebugVSCode.md
Last active August 26, 2025 13:51
Debug ROS2 C++ node on VSCode (Ubuntu)

Debug ROS2 C++ node on VSCode (Ubuntu)

Description

This is a small tutorial on how to debug a ROS2 C++ node usign VSCode.

Requeriments

This implementation was done using:

@damiencarbery
damiencarbery / wc-defer-order-emails.php
Last active May 28, 2025 21:04
Defer WooCommerce emails for a few minutes - Defer WooCommerce emails for a specified time after the normal delivery time. https://www.damiencarbery.com/2020/04/defer-woocommerce-emails-for-a-few-minutes/
<?php
/*
Plugin Name: Defer WooCommerce emails for a few minutes (use Action Scheduler)
Plugin URI: https://www.damiencarbery.com/2020/04/defer-woocommerce-emails-for-a-few-minutes/
Description: Defer WooCommerce emails for a specified time after the normal delivery time. Use Action Scheduler instead of WP Cron. Call do_action() instead of remove_action() and calling trigger.
Author: Damien Carbery
Author URI: https://www.damiencarbery.com
Version: 0.11.20250528
*/
@rampfox
rampfox / Chromium-at-startup.md
Last active May 29, 2025 14:05
How to open Chromium in full screen at startup on the Raspberry Pi

(debian 10 buster)

First, it seems that ~/.config/lxsession/LXDE-pi/autostart does not exist by default.

  1. copy the autostart
cp /etc/xdg/lxsession/LXDE-pi/autostart ~/.config/lxsession/LXDE-pi/
@mustafaturan
mustafaturan / docker-on-pi-rootless.sh
Last active September 23, 2025 16:17
Install docker and run without sudo on Raspberry Pi
#!/bin/bash
curl -fsSL https://get.docker.com/rootless | sh
# Content to be added to .bashrc
content='export PATH="$HOME/bin:$PATH"'
# Check if content already exists in .bashrc
if grep -Fxq "$content" ~/.bashrc; then
echo "Content for bin path already exists in .bashrc. Skipping addition."
@rylev
rylev / learn.md
Created March 5, 2019 10:50
How to Learn Rust

Learning Rust

The following is a list of resources for learning Rust as well as tips and tricks for learning the language faster.

Warning

Rust is not C or C++ so the way your accustomed to do things in those languages might not work in Rust. The best way to learn Rust is to embrace its best practices and see where that takes you.

The generally recommended path is to start by reading the books, and doing small coding exercises until the rules around borrow checking become intuitive. Once this happens, then you can expand to more real world projects. If you find yourself struggling hard with the borrow checker, seek help. It very well could be that you're trying to solve your problem in a way that goes against how Rust wants you to work.

@KCarretto
KCarretto / Makefile
Created December 27, 2018 18:50
Sphinx example. Automatically generate docs and host on github pages.
# FILE LOCATION: <project_root>/docs/Makefile
# Minimal makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SOURCEDIR = source
BUILDDIR = build
@jwhendy
jwhendy / set_opencv_webcam.py
Last active October 7, 2025 09:54
An example of setting webcam settings via v4l2-ctl in a python script. Some of the CAP_* settings in opencv didn't seem to work.
import cv2
import subprocess
### for reference, the output of v4l2-ctl -d /dev/video1 -l (helpful for min/max/defaults)
# brightness (int) : min=0 max=255 step=1 default=128 value=128
# contrast (int) : min=0 max=255 step=1 default=128 value=128
# saturation (int) : min=0 max=255 step=1 default=128 value=128
# white_balance_temperature_auto (bool) : default=1 value=1
# gain (int) : min=0 max=255 step=1 default=0 value=0
# power_line_frequency (menu) : min=0 max=2 default=2 value=2
@peter-moran
peter-moran / gstreamer_fps_test.cpp
Last active October 8, 2021 04:22
Example code for displaying (and finding FPS of) gstreamer video in OpenCV.
/*
Example code for displaying (and finding FPS of) gstreamer video in OpenCV.
Created by Peter Moran on 7/29/17.
Usage
-------
After compiling, run this program with the following arguments. All are optional, but must be used cumulatively.
`./gstreamer_test <width> <height> <fps> <window_size> <display_video>`
For example, to display 1080p video at 30 fps and calculate the true fps over a 15 sample running window, run: