Skip to content

Instantly share code, notes, and snippets.

View JWhitleyWork's full-sized avatar

Joshua Whitley JWhitleyWork

  • Electrified Autonomy
  • Roscoe, IL, USA
  • X @OobieJosh
View GitHub Profile
@JWhitleyWork
JWhitleyWork / serial_term_fix.txt
Created December 22, 2021 23:25
Fix Terminal in Serial Connection
Find terminal size:
tput lines
tput cols
Set terminal size in serial console:
stty rows Y cols X
Also recommend setting export TERM=screen
@JWhitleyWork
JWhitleyWork / pcd_downsample_vg.bash
Last active September 9, 2020 16:56
PCD Downsampling Script (Voxel Grid Algorithm)
#!/bin/bash
set -e
LEAF_SIZE=$1
for file in ./original/*.pcd; do
filename=$(basename -- "${file}")
extension="${filename##*.}"
filename="${filename%.*}"
@JWhitleyWork
JWhitleyWork / pcd_downsample_min.bash
Last active September 9, 2020 16:56
PCD Downsampling Script (Min Algorithm)
#!/bin/bash
set -e
RESOLUTION=$1
for file in ./original/*.pcd; do
filename=$(basename -- "${file}")
extension="${filename##*.}"
filename="${filename%.*}"
@JWhitleyWork
JWhitleyWork / docker-qemu.bash
Created June 3, 2020 22:41
Run non-Native Docker Container with QEMU
sudo apt-get install qemu binfmt-support qemu-user-static
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
@JWhitleyWork
JWhitleyWork / git_move_dir.txt
Created June 23, 2019 18:41
Move Directory Between Git Repos with History
git clone source_repo && cd source_repo
git remote rm origin
git filter-branch -f --tree-filter \
"find -maxdepth 1 -not -name . -not -name .git -not -name folder_to_move -print0 | xargs -0 rm -rf" \
--tag-name-filter cat --prune-empty -- --all
cd ..
git clone target_repo && cd target_repo
git remote add source_repo ../source_repo
git pull source_repo master --allow-unrelated-histories
git push
@JWhitleyWork
JWhitleyWork / autoware-melodic-dnn-deps.sh
Last active May 9, 2019 02:25
A bash script to install the required CMake and Eigen versions for the DNN features of Autoware
#!/bin/bash
EIGEN_VERSION=3.3.7
mkdir /tmp/dl && cd /tmp/dl
echo "Downloading installer files"
curl -s -L -o eigen-$EIGEN_VERSION.tar.gz http://bitbucket.org/eigen/eigen/get/$EIGEN_VERSION.tar.gz
echo "Installing Eigen version $EIGEN_VERSION"
@JWhitleyWork
JWhitleyWork / install-cuda-headless.sh
Last active December 14, 2018 01:39
Install CUDA on Ubuntu 16.04 without Prompts
sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_10.0.130-1_amd64.deb
sudo dpkg -i cuda-repo-*.deb
sudo apt update && DEBIAN_FRONTEND=noninteractive sudo apt install -y cuda