Skip to content

Instantly share code, notes, and snippets.

View rafaelrojasmiliani's full-sized avatar

Rafael A. Rojas rafaelrojasmiliani

View GitHub Profile
@joaopizani
joaopizani / .screenrc
Created May 17, 2012 11:55
A killer GNU Screen Config
# the following two lines give a two-line status, with the current window highlighted
hardstatus alwayslastline
hardstatus string '%{= kG}[%{G}%H%? %1`%?%{g}][%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}][%{B}%m/%d %{W}%C%A%{g}]'
# huge scrollback buffer
defscrollback 5000
# no welcome message
startup_message off
@tntmarket
tntmarket / Dockerfile
Created September 28, 2014 04:02
Example Dockerfile for a ROS Hydro image
# This Dockerfile starts from a base ubuntu 12.04 image and installs
# a full desktop ROS hydro.
#
# It also creates a catkin workspace for a single user named YOURNAME
# with password YOURPASSWORD.
#
# GUI applications in the container will connect to the host's X11 server
# by mounting the .X11-unix folder on the host OS. I have no idea if this
# works on Mac if Windows.
# (http://fabiorehm.com/blog/2014/09/11/running-gui-apps-with-docker/)
@pchaigno
pchaigno / bridge.sh
Last active October 16, 2023 21:21
Use Linux bridge to connect Docker containers to the same subnet as the host
#!/bin/bash
BRIDGE_NAME=dbridge
PHYS_IF=eth0
SUBNET=192.168.1.0
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
sudo brctl addbr $BRIDGE_NAME
sudo brctl addif $BRIDGE_NAME $PHYS_IF
sudo ifconfig $BRIDGE_NAME up
@mayataka
mayataka / install_pinocchio.sh
Last active March 28, 2024 07:47
Install Pinocchio
sudo apt install -qqy lsb-release gnupg2 curl
echo "deb [arch=amd64] http://robotpkg.openrobots.org/packages/debian/pub $(lsb_release -cs) robotpkg" | sudo tee /etc/apt/sources.list.d/robotpkg.list
curl http://robotpkg.openrobots.org/packages/debian/robotpkg.key | sudo apt-key add -
sudo apt update -y
sudo apt install -qqy robotpkg-py27-pinocchio
export PATH=/opt/openrobots/bin:$PATH
export PKG_CONFIG_PATH=/opt/openrobots/lib/pkgconfig:$PKG_CONFIG_PATH
export LD_LIBRARY_PATH=/opt/openrobots/lib:$LD_LIBRARY_PATH
export PYTHONPATH=/opt/openrobots/lib/python2.7/site-packages:$PYTHONPATH
export CMAKE_PREFIX_PATH=/opt/openrobots:$CMAKE_PREFIX_PATH