Skip to content

Instantly share code, notes, and snippets.

@pipme
pipme / pcl_install.sh
Created July 11, 2019 06:34
PCL v1.8.0 installation on Ubuntu 16.04
sudo apt -y install g++ cmake cmake-gui doxygen mpi-default-dev openmpi-bin openmpi-common libusb-1.0-0-dev libqhull* libusb-dev libgtest-dev
sudo apt -y install git-core freeglut3-dev pkg-config build-essential libxmu-dev libxi-dev libphonon-dev libphonon-dev phonon-backend-gstreamer
sudo apt -y install phonon-backend-vlc graphviz mono-complete qt-sdk libflann-dev
sudo apt -y install libflann1.8 libboost1.58-all-dev
cd ~/Downloads
wget http://launchpadlibrarian.net/209530212/libeigen3-dev_3.2.5-4_all.deb
sudo dpkg -i libeigen3-dev_3.2.5-4_all.deb
sudo apt-mark hold libeigen3-dev
# local
ssh-keygen -t rsa
cat ~/.ssh/id_rsa.pub | ssh demo@198.51.100.0 "mkdir -p ~/.ssh && chmod 700 ~/.ssh && cat >> ~/.ssh/authorized_keys"
@pipme
pipme / pystan3_logprob.ipynb
Last active January 3, 2022 21:16
A minimal example for computing log probability with pystan3
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Install Miniforge3-MacOSX-arm64 first, then

conda create --name py39_forge python=3.9
conda activate py39_forge
conda install numpy scipy
pip install -U https://files.pythonhosted.org/packages/a1/70/74886d4edc355a375532f6cfe18a7f86a2db5093b374270fbd203414e404/jaxlib-0.1.75-cp39-none-macosx_11_0_arm64.whl
pip install jax
@pipme
pipme / Conda.md
Created January 28, 2022 08:36
My conda cheat sheet

Add init shell script to .bashrc

cd ~/.miniconda3/bin
conda config --set auto_activate_base true

Environment.yml

conda env export | grep -v "^prefix: " > environment.yml
conda env create -f environment.yml
@pipme
pipme / jupyter cheatsheet.md
Last active November 27, 2022 18:07
Jupyter notebook

Install jupyter kernel.

pip install ipykernel
python -m ipykernel install --user --name myenv
@pipme
pipme / empty_gh_pages.sh
Created May 30, 2023 14:11
Create new empty branch gh-pages
git checkout --orphan gh-pages
git reset --hard
git commit --allow-empty -m "Initializing gh-pages branch"
git push origin gh-pages
git checkout main