Last active
April 16, 2023 14:27
-
-
Save mikaelarguedas/75b057c902728161f2059bbfa9bfeda4 to your computer and use it in GitHub Desktop.
random config files
This file contains 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
export ROS2_WS=/media/mikatchou/ROS/work/ros2/ros2_ws | |
# export ROS2_WS=/media/mikatchou/ROS/work/ros2/secureros2_ws | |
export ROS_SECURE_ROOT=/media/mikatchou/ROS/work/ros2/secureros2_ws/ros_secure_folder | |
export ROS_DOMAIN_ID=42 | |
if [ -f ~/.bash_aliases ]; then | |
. ~/.bash_aliases | |
fi | |
# enable programmable completion features (you don't need to enable | |
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile | |
# sources /etc/bash.bashrc). | |
if ! shopt -oq posix; then | |
if [ -f /usr/share/bash-completion/bash_completion ]; then | |
. /usr/share/bash-completion/bash_completion | |
elif [ -f /etc/bash_completion ]; then | |
. /etc/bash_completion | |
fi | |
fi | |
# setup prompt decoration | |
export PS1="\[[0;32m\]\u\[[m\] \[[1;34m\]\w\[[m\]\[[1;31m\]\n\$ \[[0;37m\]" | |
GIT_PROMPT_THEME=Mikatchou | |
GIT_PROMPT_ONLY_IN_REPO=1 | |
source ~/.bash-git-prompt/gitprompt.sh |
This file contains 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
{ | |
"build": { | |
"cmake-args": ["--no-warn-unused-cli", "-DSECURITY=ON"], | |
"event-handlers": ["console_cohesion+", "console_package_list+"], | |
"symlink-install": true | |
}, | |
"test": { | |
"executor": "sequential", | |
"event-handlers": ["console_direct+", "console_package_list+"] | |
} | |
} |
This file contains 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
[user] | |
email = mikael.arguedas@gmail.com | |
name = Mikael Arguedas | |
signingkey = 4A9A2F7A67317D27 | |
[commit] | |
gpgsign = true | |
[filter "lfs"] | |
clean = git-lfs clean -- %f | |
smudge = git-lfs smudge -- %f | |
process = git-lfs filter-process | |
required = true | |
[core] | |
excludesfile = /home/mikatchou/.gitignore_global |
This file contains 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
# prompt decorator theme | |
# to use with bash-git-prompt project https://github.com/magicmonty/bash-git-prompt | |
override_git_prompt_colors() { | |
GIT_PROMPT_THEME_NAME="Mikatchou" | |
GIT_PROMPT_ONLY_IN_REPO=1 | |
GIT_PROMPT_LEADING_SPACE=0 | |
GIT_PROMPT_PREFIX="[ " | |
GIT_PROMPT_SUFFIX=" ]" | |
GIT_PROMPT_SEPARATOR=" |" | |
GIT_PROMPT_STAGED=" ${BoldGreen}● ${ResetColor}" | |
GIT_PROMPT_CONFLICTS=" ${BoldRed}✖ ${ResetColor}" | |
GIT_PROMPT_CHANGED=" ${Red}✚ ${ResetColor}" | |
GIT_PROMPT_UNTRACKED=" ${Cyan}…" | |
GIT_PROMPT_STASHED=" ${BoldBlue}⚑ " | |
GIT_PROMPT_CLEAN=" ${BoldGreen}✔ ${ResetColor}" | |
GIT_PROMPT_SYMBOLS_NO_REMOTE_TRACKING="✭" | |
GIT_PROMPT_COMMAND_OK="${Green}✔ " | |
GIT_PROMPT_COMMAND_FAIL="${Red}✘ " | |
GIT_PROMPT_END_USER="${BoldRed}\n$ ${ResetColor}" | |
GIT_PROMPT_START_ROOT="${BoldRed}❖ ${ResetColor}" | |
GIT_PROMPT_START_USER="${Green}\\u ${BoldBlue}${PathShort}${ResetColor}" | |
GIT_PROMPT_END_ROOT="\n_LAST_COMMAND_INDICATOR_${ResetColor} ${BoldRed}\\u${White}@${BoldYellow}\\h ${Cyan}${PathShort}${ResetColor}${BoldRed} # ${ResetColor}" | |
} | |
reload_git_prompt_colors "Mikatchou" |
This file contains 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
alias rti524env="source /home/mikael/rti_connext_dds-5.2.4/resource/scripts/rtisetenv_x64Linux3gcc4.8.2.bash" | |
alias rti523env="source /home/mikael/rti_connext_dds-5.2.3/resource/scripts/rtisetenv_x64Linux3gcc4.8.2.bash" | |
alias rti53env="source /home/mikael/rti_connext_dds-5.3.0/resource/scripts/rtisetenv_x64Linux3gcc5.4.0.bash" | |
alias rti531env="source /home/mikael/rti_connext_dds-5.3.1/resource/scripts/rtisetenv_x64Linux3gcc5.4.0.bash" | |
alias rtienv="rti531env" | |
alias go="gnome-open" | |
# alias ab="cd $ROS2_WS && $ROS2_WS/src/ament/ament_tools/scripts/ament.py build --isolated --symlink-install --build-tests" | |
# alias at="cd $ROS2_WS && $ROS2_WS/src/ament/ament_tools/scripts/ament.py test --isolated" | |
alias ab="rtienv && cd $ROS2_WS && $ROS2_WS/src/ament/ament_tools/scripts/ament.py build --isolated --symlink-install --build-tests --cmake-args -DSECURITY=ON --" | |
alias ab-debug="ab --build-space $ROS2_WS/build_debug_isolated --install-space $ROS2_WS/install_debug_isolated --cmake-args -DCMAKE_BUILD_TYPE=Debug --" | |
alias ab-release="ab --build-space $ROS2_WS/build_release_isolated --install-space $ROS2_WS/install_release_isolated --cmake-args -DCMAKE_BUILD_TYPE=Release -DSECURITY=ON --" | |
alias at="rtienv && cd $ROS2_WS && $ROS2_WS/src/ament/ament_tools/scripts/ament.py test --isolated --cmake-args -DSECURITY=ON --" | |
alias at-debug="at --build-space $ROS2_WS/build_debug_isolated --install-space $ROS2_WS/install_debug_isolated --cmake-args -DCMAKE_BUILD_TYPE=Debug --" | |
alias at-release="at --build-space $ROS2_WS/build_release_isolated --install-space $ROS2_WS/install_release_isolated --cmake-args -DCMAKE_BUILD_TYPE=Release --" | |
alias at-skip="at --skip-build --skip-install" | |
alias at-skip-debug="at-debug --skip-build --skip-install" | |
alias at-skip-release="at-release --skip-build --skip-install" | |
# alias ab="cd $ROS2_WS && $ROS2_WS/src/ament/ament_tools/scripts/ament.py build --isolated --symlink-install --build-tests" | |
# alias ab-debug="ab --build-space $ROS2_WS/build_debug_isolated --install-space $ROS2_WS/install_debug_isolated --cmake-args -DCMAKE_BUILD_TYPE=Debug --" | |
# alias ab-release="ab && --build-space $ROS2_WS/build_release_isolated --install-space $ROS2_WS/install_release_isolated --cmake-args -DCMAKE_BUILD_TYPE=Release --" | |
# alias at="cd $ROS2_WS && $ROS2_WS/src/ament/ament_tools/scripts/ament.py test --isolated" | |
# alias at-debug="at --build-space $ROS2_WS/build_debug_isolated --install-space $ROS2_WS/install_debug_isolated --cmake-args -DCMAKE_BUILD_TYPE=Debug --" | |
# alias at-release="at --build-space $ROS2_WS/build_release_isolated --install-space $ROS2_WS/install_release_isolated --cmake-args -DCMAKE_BUILD_TYPE=Release --" | |
# alias at-skip="at --skip-build --skip-install" | |
# alias at-skip-debug="at-debug --skip-build --skip-install" | |
# alias at-skip-release="at-release --skip-build --skip-install" | |
alias cb="rtienv && cd $ROS2_WS && colcon build" | |
alias cb-debug="cb --mixin debug debug-paths build-testing-on" | |
alias cb-release="cb --mixin release release-paths build-testing-on'" | |
alias ct="rtienv && cd $ROS2_WS && colcon test" | |
alias ct-debug="ct --mixin debug-paths" | |
alias ct-release="ct --mixin release-paths" | |
alias wsros2="cd $ROS2_WS" | |
alias wsros2src="cd $ROS2_WS/src/ros2" | |
alias secureenv="export ROS_SECURITY_STRATEGY=Enforce && export ROS_SECURITY_ENABLE=true" | |
alias source-colcon="source /home/mikael/work/ros2/colcon/install/setup.sh" | |
alias bootstrap-colcon="pushd `pwd` && cd /home/mikael/work/ros2/colcon/src && vcs pull && cd .. && ./src/colcon-core/bin/colcon build --symlink-install --paths src/* && source /home/mikael/work/ros2/colcon/install/setup.sh && colcon build && source /home/mikael/work/ros2/colcon/install/setup.bash && popd" | |
alias thisworkspace="export ROS2_WS=$(pwd) && source ~/.bash_aliases && source-colcon" | |
alias vcs-fetch="vcs custom --args fetch origin --prune" | |
alias vcs-checkout="vcs custom --args checkout" | |
alias osrf-vpn="cd $HOME/openvpn && sudo openvpn --config osrf.conf" | |
alias go="gnome-open" | |
alias getros2repos="wget https://raw.githubusercontent.com/ros2/ros2/master/ros2.repos -o ros2.repos && wget https://raw.githubusercontent.com/ros2/turtlebot2_demo/master/turtlebot2_demo.repos -o turtlebot2_demo.repos" | |
alias importallros2repos="mkdir -p src && wget https://raw.githubusercontent.com/ros2/ros2/master/ros2.repos && wget https://raw.githubusercontent.com/ros2/turtlebot2_demo/master/turtlebot2_demo.repos && vcs import src < ros2.repos && vcs import src < turtlebot2_demo.repos" | |
alias importallros2repossinglecall="mkdir -p src && wget https://raw.githubusercontent.com/ros2/ros2/master/ros2.repos && wget https://raw.githubusercontent.com/ros2/turtlebot2_demo/master/turtlebot2_demo.repos && vcs import src < ros2.repos turtlebot2_demo.repos" | |
alias importros2repos="mkdir -p src && wget https://raw.githubusercontent.com/ros2/ros2/master/ros2.repos && vcs import src < ros2.repos" | |
alias ros2distroindex="export ROSDISTRO_INDEX_URL='https://raw.githubusercontent.com/ros2/rosdistro/ros2/index.yaml'" |
This file contains 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 install -y git terminator vim-gnome curl gnupg2 | |
# docker | |
sudo apt-get remove docker docker-engine docker.io containerd runc | |
sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo apt-key fingerprint 0EBFCD88 | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -cs) \ | |
stable" | |
sudo apt update | |
sudo apt-get install docker-ce docker-ce-cli containerd.io | |
# docker compose | |
sudo curl -L "https://github.com/docker/compose/releases/download/1.25.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose | |
cp gitconfig ~/.gitconfig | |
# copy terminator config | |
mkdir -p ~/.config/terminator | |
cp terminator ~/.config/terminator/config | |
# vim plugins | |
mkdir -p ~/.vim/autoload ~/.vim/bundle && \ | |
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim | |
sudo sh -c 'echo " | |
execute pathogen#infect() | |
" >> /usr/share/vim/vimrc' | |
git clone --depth=1 https://github.com/vim-syntastic/syntastic.git ~/.vim/bundle/syntastic | |
git clone https://github.com/scrooloose/nerdtree.git ~/.vim/bundle/nerdtree | |
cp vimrc ~/.vimrc | |
echo 'export MYVIMRC=~/.vimrc' >> ~/.bashrc | |
# bash-git-prompt | |
git clone https://github.com/magicmonty/bash-git-prompt.git ~/.bash-git-prompt --depth=1 | |
cp Mikatchou.bgptheme ~/.bash-git-prompt/themes/ | |
echo ' | |
# setup prompt decoration | |
export PS1="\[[0;32m\]\u\[[m\] \[[1;34m\]\w\[[m\]\[[1;31m\]\n\$ \[[0;37m\]" | |
GIT_PROMPT_THEME=Mikatchou | |
GIT_PROMPT_ONLY_IN_REPO=1 | |
source ~/.bash-git-prompt/gitprompt.sh' >> ~/.bashrc |
This file contains 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
[global_config] | |
suppress_multiple_term_dialog = True | |
[keybindings] | |
[profiles] | |
[[default]] | |
background_image = None | |
scrollback_lines = 100000 | |
scroll_on_output = False | |
[layouts] | |
[[default]] | |
[[[child1]]] | |
type = Terminal | |
parent = window0 | |
[[[window0]]] | |
type = Window | |
parent = "" | |
[plugins] |
This file contains 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
set bg=dark | |
colorscheme desert | |
set nu! | |
" size of a hard tabstop | |
set tabstop=4 | |
" size of an "indent" | |
set shiftwidth=4 | |
" a combination of spaces and tabs are used to simulate tab stops at a width | |
" other than the (hard)tabstop | |
set softtabstop=4 | |
set smarttab | |
set expandtab | |
" Highlight search results | |
set hlsearch | |
" Makes search act like search in modern browsers | |
set incsearch | |
au BufRead,BufNewFile *.lib set filetype=python | |
au BufRead,BufNewFile *.launch set filetype=xml | |
au BufRead,BufNewFile *.urdf set filetype=xml | |
au BufRead,BufNewFile *.sdf set filetype=xml | |
au BufRead,BufNewFile *.world set filetype=xml | |
au BufRead,BufNewFile *.dae set filetype=xml | |
au BufRead,BufNewFile *.nesc set filetype=c | |
" autocmd vimenter * if argc() == 0 | |
" vsplit | NERDTree | | |
" else | |
" NERDTree | |
" endif | |
autocmd vimenter * NERDTree | wincmd p | |
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif | |
autocmd BufWritePre *.py execute ':Black' | |
execute pathogen#infect() | |
set statusline+=%#warningmsg# | |
set statusline+=%{SyntasticStatuslineFlag()} | |
set statusline+=%* | |
let g:syntastic_always_populate_loc_list = 1 | |
let g:syntastic_auto_loc_list = 1 | |
let g:syntastic_check_on_open = 1 | |
let g:syntastic_check_on_wq = 0 | |
let g:syntastic_aggregate_errors = 1 | |
let g:syntastic_python_python_exec = '/usr/bin/python3' | |
let g:syntastic_python_checkers = ['flake8', 'mypy'] | |
let g:syntastic_python_flake8_args = "--max-line-length=100 --ignore='B006,B902,B950,E203,E501,W503,ANN101,ANN102,ANN401'" | |
let g:syntastic_python_mypy_args = "--disable-error-code import" | |
let g:syntastic_cpp_cpplint_args = "--max-line-length=100" | |
let g:syntastic_yaml_checkers = ['yamllint'] | |
" let g:syntastic_debug = 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment