Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Might as well ask for password up-front, right?
sudo -v
# Keep-alive: update existing sudo time stamp if set, otherwise do nothing.
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
# Add ros key
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu jessie main" > /etc/apt/sources.list.d/ros-latest.list'
@miquelmassot
miquelmassot / catkin_create_sublime_project.py
Created September 8, 2014 13:09
Create a Sublime Text 2/3 project with all your workspace packages in it!
#!/usr/bin/env python
from __future__ import print_function
import argparse
import json
import os
import sys
from catkin_pkg.packages import find_packages
@miquelmassot
miquelmassot / test_fovis.launch
Created June 14, 2014 11:10
Fovis test with Sequence 'freiburg1_xyz'
<launch>
<!-- This should be the same as used with openni_launch -->
<arg name="camera" default="camera" />
<arg name="image" default="image_color" />
<arg name="depth_image" default="image" />
<param name="use_sim_time" value="true"/>
<!-- not needed, images are already rectified and converted -->
<!--include file="$(find openni_launch)/launch/openni.launch">