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 | |
| # Setup MoveIT | |
| # https://moveit.picknik.ai/main/doc/tutorials/getting_started/getting_started.html | |
| rosdep update | |
| sudo apt update | |
| sudo apt dist-upgrade | |
| colcon mixin add default https://raw.githubusercontent.com/colcon/colcon-mixin-repository/master/index.yaml | |
| colcon mixin update default |
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 | |
| # install dependencies | |
| sudo apt-get update && rosdep update | |
| source /opt/ros/$ROS_DISTRO/setup.bash | |
| export COLCON_WS=~/ws_moveit2 | |
| mkdir -p $COLCON_WS/src |
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 | |
| # only run if USERNAME USER_UID are supplied as arguments | |
| if [ ${#*} -gt 1 ]; then # if number of args is greater than 2 | |
| export USERNAME=$1 | |
| export USER_UID=$2 | |
| export USER_GID=$USER_UID | |
| if ! id -u $USER_UID >/dev/null 2>&1; then \ | |
| groupadd --gid $USER_GID $USERNAME && \ | |
| useradd -s /bin/bash --uid $USER_UID --gid $USER_GID -m $USERNAME; \ |
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
| #!/usr/bin/python3 | |
| """@package docstring | |
| Finds and replaces text in a file | |
| Usage: | |
| python3 find_replace.py /path/to/file.file_extension "some text to find" "some other text to replace the found text" | |
| ./find_replace.py /path/to/file.file_extension "some text to find" "some other text to replace the found text" | |
| """ | |
| import sys | |
| import os |
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 | |
| # install dependencies | |
| sudo apt-get update && sudo apt-get uprade -y | |
| sudo apt install -y \ | |
| build-essential \ | |
| cmake \ | |
| git \ | |
| python3-colcon-common-extensions \ | |
| python3-colcon-mixin \ |
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 | |
| source ~/venv/bin/activate | |
| git clone -b master https://github.com/3b1b/manim.git ~/manim | |
| python3 -m pip install -e ~/manim | |
| python3 -m pip install jupyterlab |
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 | |
| TEX_DIR=$(find "/usr/local/" -maxdepth 1 -type d -regextype egrep -regex "/usr/local/texlive" -print -quit) | |
| if ! [ -n "$TEX_DIR" ]; then | |
| echo "installing tex" | |
| cd /tmp | |
| wget https://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz | |
| #curl -L -o install-tl-unx.tar.gz https://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz |
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 | |
| cd /tmp | |
| curl -L -o install-tl-unx.tar.gz https://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz | |
| cd install-tl-* | |
| sudo perl ./install-tl --no-interaction | |
| export TEX_DIR="/usr/local/texlive" | |
| TEX_INSTAL_DIR=$(find $TEX_DIR -maxdepth 3 -type d -regextype egrep -regex "$TEX_DIR/([0-9][0-9][0-9][0-9])?/bin/.*" -print -quit) |
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 | |
| # Do all the needed sourcing in ~/.bashrc file | |
| source ~/.bashrc | |
| echo "Provided arguments: $@" | |
| exec $@ |
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 | |
| sudo apt install -y \ | |
| build-essential \ | |
| cmake \ | |
| git \ | |
| python3-colcon-common-extensions \ | |
| python3-colcon-mixin \ | |
| python3-flake8 \ | |
| python3-rosdep \ | |
| python3-setuptools \ |