Skip to content

Instantly share code, notes, and snippets.

View jbohren's full-sized avatar

Jonathan Bohren jbohren

View GitHub Profile
$pipe <&0
rttlua "$@" <$pipe &
#!/usr/bin/env bash
# Wrapper script
SCREEN_NAME=RTTLUA
screen -dmS $SCREEN_NAME rttlua "$@"
SCREEN_ID=$(screen -list | grep $SCREEN_NAME | head -n 1 | awk '{print $1}')
cleanup()
{
<?xml version="1.0"?>
<package>
<name>gazebo</name>
<version>0.0.0</version>
<description>The gazebo package</description>
<!-- One maintainer tag required, multiple allowed, one person per tag -->
<!-- Example: -->
<!-- <maintainer email="[email protected]">Jane Doe</maintainer> -->
<maintainer email="[email protected]">jbohren</maintainer>
#!/usr/bin/env bash
# Play videos from a directory in VLC during work hours
while true ; do
timestamp=$(date +"%T")
if [[ "$timestamp" > "09:00:00" && "$timestamp" < "16:00:00" ]]; then
for i in * ; do
vlc -f --play-and-exit "$1"
done
[15303:15303:1126/144646:ERROR:chrome_browser_main_extra_parts_x11.cc(56)] X IO error received (X server probably went away)
[15378:15378:1126/194646:ERROR:x11_util.cc(82)] X IO error received (X server probably went away)
@jbohren
jbohren / main.cpp
Last active August 29, 2015 14:11
interesting rosparam behavior...
#include <ros/ros.h>
/**
> rosparam set /some_abs_param 1337
> rosparam set /test/foo 16
> ./test
struct!
has member foo: 1
@jbohren
jbohren / CMakeLists.txt
Created December 16, 2014 14:44
simplest roscpp cmakelists for testing small snippets of roscpp code (no catkin required)
cmake_minimum_required(VERSION 2.8)
project(a_ros_experiment)
find_package(roscpp REQUIRED)
include_directories(${roscpp_INCLUDE_DIRS})
add_executable(main main.cpp)
target_link_libraries(main ${roscpp_LIBRARIES})
@jbohren
jbohren / altwin
Created December 16, 2014 16:00
/usr/share/X11/xkb/symbols/altwin
partial modifier_keys
xkb_symbols "meta_alt" {
key <LALT> { [ Alt_L, Meta_L ] };
key <RALT> { type[Group1] = "TWO_LEVEL",
symbols[Group1] = [ Alt_R, Meta_R ] };
modifier_map Mod1 { Alt_L, Alt_R, Meta_L, Meta_R };
// modifier_map Mod4 {};
};
// Control is mapped to the Win-keys (and the usual Ctrl keys).
ros-hydro-desktop
Depends: ros-hydro-common-tutorials
Depends: ros-hydro-geometry-tutorials
Depends: ros-hydro-robot
Depends: ros-hydro-ros-full
Depends: ros-hydro-ros-tutorials
Depends: ros-hydro-urdf-tutorial
Depends: ros-hydro-visualization-tutorials
Depends: ros-hydro-viz
ros-hydro-common-tutorials
Depends: python-catkin-pkg (>= 0.2.0)
Depends: cmake-data (= 2.8.7-0ubuntu4)
Depends: libc6 (>= 2.15)
Depends: libcurl3-gnutls (>= 7.16.2-1)
Depends: libexpat1 (>= 1.95.8)
Depends: libgcc1 (>= 1:4.1.1)
Depends: libstdc++6 (>= 4.6)
Depends: zlib1g (>= 1:1.2.3.3.dfsg)
Depends: bsdutils (>= 3.0-0)
Depends: debianutils (>= 1.8)