Skip to content

Instantly share code, notes, and snippets.

View DevonMorris's full-sized avatar
💥

Devon Morris DevonMorris

💥
View GitHub Profile
@DevonMorris
DevonMorris / Explanation.md
Created November 19, 2020 13:42
Ftplugin to use with vim dispatch and rust

With this rust.vim in nvim/after/ftplugin/rust.vim, you can just run :Make and it will make your project, populate the qf list and you can jump between errors with :cn and :cp

@DevonMorris
DevonMorris / i3URxvtCurrentDirectory.md
Last active October 7, 2022 12:32
i3 open URxvt in current directory, zsh

Add the following to a script in .config/i3/i3_shell.sh

#!/usr/bin/env bash
WHEREAMI=$(cat /tmp/whereami)
i3-sensible-terminal -cd $WHEREAMI

To call store the environment variable WHEREAMI put

@DevonMorris
DevonMorris / GentooROSEigen.md
Last active April 25, 2019 17:24
Compiling with Eigen in Gentoo on ROS

You can install ROS melodic using a portage overlay. However, I was having a hard time compiling against the Eigen libraries. I fixed it by setting two variables

CMAKE_PREFIX_PATH=/usr:/opt/ros/melodic
CATKIN_PREFIX_PATH=/usr:/opt/ros/melodic

Since Eigen and OpenCV aren't installed alongside ROS on gentoo, you have to point to the system versions of these first. So putting /usr first prefers the system versions over the ones installed with ROS.

@DevonMorris
DevonMorris / GentooSystemdMPB12_1.md
Created April 21, 2019 03:35
Gentoo 17.0 Systemd on Macbook Pro (12,1)

This document highlights my quest to install Gentoo with Systemd my Macbook Pro 2015 (12,1). I'm basically following the amd64 handbook with some changes I've had to search out.

First we need to connect to the network. I'm using WiFi to accomplish this and my network is WPA so I run

wpa_passphrase <SSID> <PASS> >> /etc/wpa_supplicant/wpa_supplicant.conf
rc-update add wpa_supplicant default
/etc/init.d/wpa_supplicant start

I'ts probably a good idea to test that the connection worked with ping 8.8.8.8 or something to that effect.