Skip to content

Instantly share code, notes, and snippets.

View PierrickKoch's full-sized avatar

Pierrick Koch PierrickKoch

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
document.location.href = 'http://www.meteofrance.com/previsions-meteo-france/toulouse/31000';
// TODO document.onload ?
document.body.innerHTML = document.querySelector("#mf-accordion-content-pluie > div > div.content").outerHTML;
document.querySelector("td").style.height = "30px";
# python3-setuptools needed for rospkg, available on 14.04
# wget https://bootstrap.pypa.io/ez_setup.py -O - | python - --user
# wget -cq http://pyyaml.org/download/pyyaml/PyYAML-3.11.tar.gz
# tar zxf PyYAML-3.11.tar.gz; cd PyYAML-3.11; python3 setup.py install --user
sudo apt-get install python3-setuptools python3-yaml
cd /tmp
git clone git://github.com/ros/rospkg.git
cd rospkg
python3 setup.py install --user
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#! /bin/bash
work=$HOME/work
name=$(git config --get user.email)
since=1week
[[ ! -z "$1" ]] && since=${1}
for workdir in $(ls ${work}); do
if [[ -d ${work}/${workdir}/.git ]]; then
cd ${work}/${workdir}
echo ${workdir}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#! /bin/bash
dir=$1
cd $dir/velodyne-dump
for f in velodyneShot.pos.*; do
i=${f##*.} # get the %04i indice
~/velodyne-tools/build/convert velodyneShot.$i $f cloud.$(printf %05i $((10#$i))).pcd
done
mkdir $dir-pcd
mv cloud.*.pcd $dir-pcd/
tar czf $dir-pcd.tgz $dir-pcd
@PierrickKoch
PierrickKoch / morse-gitlab.md
Last active February 12, 2016 14:52
note on morse to gitlab

gitlab import

in order to fix git issue:

remote: error: object : zeroPaddedFilemode: contains zero-padded file modes

(you can check in morse repo using git fsck)

sudo apt-get install libffi-dev
cd /tmp
wget https://pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz
tar xvf six-1.10.0.tar.gz
cd six-1.10.0
python setup.py install --user
# crossbar
cd /tmp
git clone https://github.com/crossbario/crossbar -b v0.11.2
cd crossbar