This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Find terminal size: | |
tput lines | |
tput cols | |
Set terminal size in serial console: | |
stty rows Y cols X | |
Also recommend setting export TERM=screen |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
LEAF_SIZE=$1 | |
for file in ./original/*.pcd; do | |
filename=$(basename -- "${file}") | |
extension="${filename##*.}" | |
filename="${filename%.*}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
RESOLUTION=$1 | |
for file in ./original/*.pcd; do | |
filename=$(basename -- "${file}") | |
extension="${filename##*.}" | |
filename="${filename%.*}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install qemu binfmt-support qemu-user-static | |
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |