Skip to content

Instantly share code, notes, and snippets.

View doudou's full-sized avatar

Sylvain Joyeux doudou

View GitHub Profile
@doudou
doudou / disable_debian_services_permanently.sh
Created May 11, 2009 08:13
this script disables a list of services. Put it in /etc/rc.local. This is needed because debian reenables services at each package upgrade.
cat /etc/disabled_services | while read pkgname; do
level=$(runlevel | awk '{print $2}')
if test -f /etc/rc$level.d/S??$pkgname; then
echo "disabling service $pkgname"
/etc/init.d/$pkgname stop
update-rc.d -f $pkgname remove
fi
done
@doudou
doudou / export_dir_to_gh_pages.sh
Created May 11, 2009 08:16
This script takes a directory and creates a new commit in the gh-pages branch that represent the state of that directoy. This is used in my own project Roby to generate the documentation using webgen and rdoc, and automatically (and cheaply) update the gh
PAGES_BRANCH=gh-pages
DOC_DIR=doc/html
set -e
git reset -q HEAD
# Create the tree object
git add -f $DOC_DIR
tree=$(git write-tree --prefix=$DOC_DIR)
@doudou
doudou / overrides.yml
Created June 12, 2014 14:01
Overrides for using Rock's orogen_loaders branch
overrides:
- orogen:
branch: orogen_loaders
- tools/orocos.rb:
branch: orogen_loaders
- tools/syskit:
branch: orogen_loaders
- base/scripts:
branch: orogen_loaders
- gui/vizkit:
@doudou
doudou / overrides.yml
Created July 14, 2014 10:51
overrides to try the rock webapp
overrides:
orogen:
branch: models_to_h
tools/orocos.rb:
branch: webapp
typelib:
branch: to_simple_value
@doudou
doudou / task_context_base.rb
Created September 16, 2014 11:48
Fix for non-pull connection for state reading
def on_state_change(&block)
port('state').reader(:init => true, :pull => true, :type => buffer, :size => 100).on_data do |state|
block.call(obj.state_symbols[state])
end
end
@doudou
doudou / 80-syskit_new_naming_scheme.yml
Created March 25, 2015 14:28
Syskit's new naming scheme
- tools/roby:
branch: syskit_new_naming_scheme
- tools/syskit:
branch: syskit_new_naming_scheme
- base/doc:
branch: syskit_new_naming_scheme
- bundles/rock:
branch: syskit_new_naming_scheme
#include <fstream>
#include <vector>
#include <stdexcept>
#include <iostream>
#include <boost/lexical_cast.hpp>
using namespace std;
using boost::lexical_cast;
- pkg_set:github:/orocos-toolchain/autoproj.git:
branch: castxml
- pkg_set:github:/rock-core/package_set.git:
branch: castxml
- typelib:
branch: castxml
- tools/roby:
branch: roby3
- tools/syskit:
branch: syskit2
- drivers/transformer:
branch: roby3
- tools/roby:
branch: roby3-async
- tools/syskit:
branch: syskit2-async
- drivers/transformer:
branch: roby3-async
- tools/metaruby:
branch: syskit2-async