Skip to content

Instantly share code, notes, and snippets.

View jbohren's full-sized avatar

Jonathan Bohren jbohren

View GitHub Profile
@jbohren
jbohren / proc interrupts
Created November 14, 2012 20:33
xenomai 2.6.1 kernel 3.2.21 intel xeon e5-1620
CPU0 CPU1 CPU2 CPU3 CPU4 CPU5 CPU6 CPU7
0: 44 1 0 0 0 0 0 0 IO-APIC-edge timer
1: 1 2 0 0 0 0 0 0 IO-APIC-edge i8042
8: 0 1 0 0 0 0 0 0 IO-APIC-edge rtc0
9: 0 0 0 0 0 0 0 0 IO-APIC-fasteoi acpi
12: 0 4 0 0 0 0 0 0 IO-APIC-edge i8042
16: 0 0 1006613 0 0 0 0 0 IO-APIC-fasteoi ehci_hcd:usb1, xhci_hcd:usb3, isci-intx, mei
17: 0 0 0 35 0 0 0 0 IO-APIC-fasteoi
18: 0 0 0 0 0
@jbohren
jbohren / gist:4074603
Created November 14, 2012 20:34
xenomai 2.6.1 kernel 3.2.21 intel xeon e5-1620 $ cat /proc/xenomai/irq
IRQ CPU0 CPU1 CPU2 CPU3 CPU4 CPU5 CPU6 CPU7
16672: 18475 8936 18557 19047 6975 6742 6544 8874 [timer]
16673: 0 1 1 1 1 1 1 1 [reschedule]
16674: 0 1 1 1 1 1 1 1
16675: 0 0 0 0 0 0 0 0 [sync]
16707: 0 0 0 0 0 0 0 0 [virtual]
@jbohren
jbohren / kernel config
Created November 14, 2012 20:46
xenomai 2.6.1 kernel 3.2.21 intel xeon e5-1620
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86_64 3.2.21-xenomai-2.6.1 Kernel Configuration
#
CONFIG_64BIT=y
# CONFIG_X86_32 is not set
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_OUTPUT_FORMAT="elf64-x86-64"
@jbohren
jbohren / feature_peak_pcie.patch
Created December 4, 2012 15:00
[PATCH] Adding device ID for PEAK PCIe card IPEH-003027
From d97ee63e108c3f6eff26368af0df3ba1d1050692 Mon Sep 17 00:00:00 2001
From: Jonathan Bohren <jbo@jhu.edu>
Date: Tue, 27 Nov 2012 09:13:11 -0500
Subject: [PATCH] Adding device ID for PEAK PCIe card IPEH-003027
Signed-off-by: Jonathan Bohren <jbo@jhu.edu>
Acked-by: Wolfgang Grandegger <wg@grandegger.com>
---
ksrc/drivers/can/sja1000/rtcan_peak_pci.c | 4 +++-
@jbohren
jbohren / wstool_aliases.bash
Last active December 13, 2015 22:49
Useful bash aliases for wstool/rosws
#!/usr/bin/env bash
# Set the workspace to the current directory
alias wspwd='export ROS_WORKSPACE=$(pwd)'
# Save the workspace used in this shell as the current workspace
alias wssave='echo -e "$ROS_WORKSPACE" > ~/.curws'
# Load the saved workspace into this shell
alias wsload='source $(cat ~/.curws)/setup.bash'
@jbohren
jbohren / gist:4997788
Last active December 14, 2015 00:19
Building controller_manager in groovy
[ moldy-crow: ~/ws/ros_control/ros_control/controller_manager ] time rosmake controller_manager --pre-clean
real 3m11.488s
user 5m34.313s
sys 0m21.373s
[ moldy-crow: ~/ws/ros_control/ros_control/controller_manager ] time rosmake controller_manager
real 1m15.435s
user 2m12.640s
@jbohren
jbohren / gist:4997805
Last active December 14, 2015 00:19
Building controller_manager in fuerte
[ moldy-crow: ~/ws/ros_control/ros_control/controller_manager ] time rosmake controller_manager --pre-clean
real 0m32.831s
user 0m39.910s
sys 0m10.821s
[ moldy-crow: ~/ws/ros_control/ros_control/controller_manager ] time rosmake controller_manager
real 0m4.720s
user 0m4.964s
[ moldy-crow: ~/ws/ros_control/ros_control/controller_manager ] time rosmake controller_manager --pre-clean
real 1m12.880s
user 1m47.095s
sys 0m20.865s
[ moldy-crow: ~/ws/ros_control/ros_control/controller_manager ] time rosmake controller_manager
real 0m20.672s
user 0m30.462s
" Vim syntax file
" Language: roslaunch XML
" Maintainer: Jonathan Bohren
" Latest Revision: 8 July 2013
"
" roslaunch xml syntax hilighting with inline yaml support
"
" Put this file in ~/.vim/syntax/roslaunch.vim
" Put the following in your .vimrc:
" autocmd BufRead,BufNewFile *.launch setfiletype roslaunch
# generated from catkin/cmake/template/pkgConfig.cmake.in
# append elements to a list if they are not already in the list
# copied from catkin/cmake/list_append_unique.cmake to keep pkgConfig
# self contained
macro(_list_append_unique listname)
foreach(_item ${ARGN})
list(FIND ${listname} ${_item} _index)
if(_index EQUAL -1)
list(APPEND ${listname} ${_item})