Skip to content

Instantly share code, notes, and snippets.

View MRo47's full-sized avatar

Myron Rodrigues MRo47

View GitHub Profile
@MRo47
MRo47 / grub_fix.md
Created July 19, 2022 09:49
Windows boot not showing in grub (ubuntu/windows dualboot)
@MRo47
MRo47 / bt_reconnect.sh
Last active February 5, 2022 22:41
Fix for bluetooth audio device freezing video/spotify or no audio issue in Ubuntu. This is a known bug: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1589008
#!/bin/bash
# I like to place this file in ~/.scripts/bt_reconnect.sh
# Then assign a keyboard shortcut (CTRL + R) to run this script.
# This can be done on the keyboard shortcut app supplied with Ubuntu desktop.
# Make sure the script has executable permissions: chmod +x ~/.scripts/bt_reconnect.sh
# In the shortcut command enter the full path without using ~ or $HOME
bluetoothctl disconnect <your headset mac address>
systemctl --user restart pulseaudio
@MRo47
MRo47 / AlignedDepth.cpp
Last active July 23, 2023 08:12
Retriving aligned depth and color images from realsense 450i for opencv
#include <opencv2/opencv.hpp>
#include <iostream>
#include <librealsense2/rs.hpp>
#include <cstring>
#include <algorithm>
/*Modded from https://github.com/IntelRealSense/librealsense/issues/2552#issuecomment-431075931
Realsense Customer Engineering Team Comment on fu3lab's issue*/