Skip to content

Instantly share code, notes, and snippets.

View kurogane1031's full-sized avatar

Zulfaqar Azmi kurogane1031

View GitHub Profile

Compile commands

Example if one try to use python 3.6.5 located in pyenv environment

./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release -DSETUPTOOLS_DEB_LAYOUT=OFF -DPYTHON_EXECUTABLE=/home/user/.pyenv/versions/3.6.5/bin/python3.6m -DPYTHON_INCLUDE_DIR=/home/user/.pyenv/versions/3.6.5/include/python3.6m -DPYTHON_LIBRARY=/home/user/.pyenv/versions/3.6.5/lib/libpython3.6m.so

NOT YET WORKING

./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release -DSETUPTOOLS_DEB_LAYOUT=OFF -DPYTHON_EXECUTABLE=~/.pyenv/versions/ros/bin/python3 -DPYTHON_INCLUDE_DIRS=~/.pyenv/versions/3.6.9/include/python3.6m

Switching between EN and JP layout

Download Gnome Tweak Tool

sudo apt install gnome-tweak-tool

Then run gnome-tweaks.

At the Keyboard & Mouse tab, select Additional Layout Options

@kurogane1031
kurogane1031 / Brute force undo a commit
Last active May 11, 2022 02:21
GIT Tips for myself
Caution: This is not revert, and only do this for personal commits
### Steps
1. `git log`
2. get the hash
3. `git reset --hard <hash>
### (Alternative) Steps
1. `git log`
2. `git reset --hard HEAD~1` (This reset previous 1 commit)
@kurogane1031
kurogane1031 / Build_Errors.md
Last active February 14, 2021 14:45
CMake rants
@kurogane1031
kurogane1031 / XSens_MTI_driver_and_QT_Issues.md
Last active September 1, 2020 20:56
Xsens MTI Drive and QT Issues

I was trying to run xsens mti driver the other day. However, issues related to Failed to load platform plugin "xcb" occurs. Not really the best error message out there isn't it.

As always, stackoverflow helps. This helps me to debug the issue.

  1. cd /folder/where/mtmanager/is/in.
  2. run the following
LD_LIBRARY_PATH=. QT_DEBUG_PLUGINS=1 ./mtmanager