tmux new [-s name] [cmd](:new) - new session
tmux ls(:ls) - list sessionstmux switch [-t name](:switch) - switches to an existing session
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl https://www.npmjs.org/install.sh | sh |
| // Simple example of client. | |
| // Client prints received messages to stdout and sends from stdin. | |
| #include <errno.h> | |
| #include <fcntl.h> | |
| #include <stdio.h> | |
| #include <signal.h> | |
| #include <unistd.h> | |
| #include <sys/select.h> | |
| #include <netinet/in.h> |
To remove a submodule you need to:
| cmake_minimum_required(VERSION 3.5.1) | |
| project(matrix_demo) | |
| find_package(catkin REQUIRED | |
| rospy | |
| roscpp | |
| std_msgs | |
| ) | |
| include_directories( |
| ### Install Box2D from source | |
| # Mac | |
| brew install swig | |
| # Linux | |
| sudo apt-get install build-essential python-dev swig | |
| # Download source | |
| cd ~/dev |
| # WARNING: These steps seem to not work anymore! | |
| #!/bin/bash | |
| # Purge existign CUDA first | |
| sudo apt --purge remove "cublas*" "cuda*" | |
| sudo apt --purge remove "nvidia*" | |
| # Install CUDA Toolkit 10 | |
| wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-repo-ubuntu1804_10.0.130-1_amd64.deb |
| # tips from Ben Lindsay: http://benjlindsay.com/blog/running-jupyter-lab-remotely/ | |
| # This function does a few things when you type jllocal: | |
| # Runs ssh tunneling command if it's not already running | |
| # Grabs the Jupyter token from the remote machine | |
| # Opens a tab in your browser with the right url and token for you | |
| # When you're done with Jupyter Lab, you just type jllocal kill and it will shut down the ssh connection. | |
| function jllocal { |
| #!/bin/bash | |
| # Purge existign CUDA first | |
| sudo apt --purge remove "cublas*" "cuda*" | |
| sudo apt --purge remove "nvidia*" | |
| # Install CUDA Toolkit 10 | |
| wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-repo-ubuntu1804_10.0.130-1_amd64.deb | |
| sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub && sudo apt update | |
| sudo dpkg -i cuda-repo-ubuntu1804_10.0.130-1_amd64.deb |