Skip to content

Instantly share code, notes, and snippets.

🤔

Tyler Kurtz tykurtz

🤔
  • Mountain View, CA
Block or report user

Report or block tykurtz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tykurtz
tykurtz / ccls-ros-merge.sh
Created Jul 13, 2019
Merge ccls compile commands
View ccls-ros-merge.sh
#!/bin/bash
cat ./**/**/compile_commands.json > compile_commands.json && sed -i -e ':a;N;$!ba;s/\n\]\[\n/,\n/g' compile_commands.json
@tykurtz
tykurtz / catkin_configuration.sh
Last active Jul 29, 2019
Catkin profile configuration setup
View catkin_configuration.sh
#!/bin/bash
mkdir ~/catkin_ws
cd ~/catkin_ws
catkin init
mkdir src
catkin config --profile release -x _release --extend /opt/ros/melodic --cmake-args -DCMAKE_BUILD_TYPE=Release
catkin config --profile debug -x _debug --extend /opt/ros/melodic --cmake-args -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=1
catkin profile set debug
@tykurtz
tykurtz / dev_env_setup.md
Last active Aug 5, 2019
Dev environment setup for spacemacs with c++ dev
View dev_env_setup.md
  • TODO - Add example test project
  • TODO - Add style and code format in .spacemacs

Install spacemacs

sudo apt install -y emacs tmux git
git clone -b develop https://github.com/syl20bnr/spacemacs ~/.emacs.d
wget -O ~/.spacemacs https://gist.githubusercontent.com/tykurtz/41c6d7b0930b9f8b107265ab895114a4/raw/e0e5f4bba3692b9746d27c377e5eddd81a7cd1e2/.spacemacs
emacs --batch -l ~/.emacs.d/init.el --eval="(configuration-layer/update-packages t)"  # Layer initialization before launch
View .spacemacs
;; -*- mode: emacs-lisp; lexical-binding: t -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Layer configuration:
This function should only modify configuration layer settings."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
;; `+distribution'. For now available distributions are `spacemacs-base'
@tykurtz
tykurtz / rtags_setup.sh
Last active Jul 13, 2019
Rtags setup catkin tools ROS
View rtags_setup.sh
#!/bin/bash
for file in $(find . -name "compile_commands.json");
do
rc -J $file
done
You can’t perform that action at this time.