This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_pwd=$PWD | |
find . -name '.git' -type d | while read repo | |
do | |
repo_dir=$(dirname $repo) | |
cd $repo_dir | |
echo "$(git rev-parse --short HEAD) $(git rev-parse --show-toplevel)" | |
#echo -e "$(git rev-parse --show-toplevel) \t $(git rev-parse HEAD)" | |
cd $_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Copyright (c) 2016 | |
# Author: Victor Arribas <v.arribas.urjc@gmail.com> | |
# License: GPLv3 <http://www.gnu.org/licenses/gpl-3.0.html> | |
if pgrep gzserver || pgrep gzclient | |
then | |
killall gzserver |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Copyright (C) 2015 Victor Arribas | |
# Copyright (C) 2015 JDE Developers Team | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Copyright (c) 2016 | |
# Author: Victor Arribas <v.arribas.urjc@gmail.com> | |
# License: GPLv3 <http://www.gnu.org/licenses/gpl-3.0.html> | |
## Download practices' container | |
wget -nc https://github.com/RoboticsURJC/JdeRobot-TeachingRobotics/archive/master.zip | |
unzip -q master.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# find files bigger than 100Mb. If match .log extension, rename it to .bigfile | |
find log/ -type f -size +100M -exec rename -v 's/\.log$/\.bigfile/i' {} \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_GAZEBO_PLUGIN_PATH=$GAZEBO_PLUGIN_PATH | |
BASE=$HOME/git/build.d/JdeRobot-sandbox/src/gazebo_plugins | |
BASE=$HOME/git/build.d/JdeRobot/src/stable/components/gazeboserver/plugins | |
GAZEBO_PLUGIN_PATH=$BASE/quadrotor2:$BASE/flyingKinect2:$_GAZEBO_PLUGIN_PATH | |
export GAZEBO_PLUGIN_PATH | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Copyright (c) 2015 | |
# Author: Victor Arribas <v.arribas.urjc@gmail.com> | |
# License: GPLv3 <http://www.gnu.org/licenses/gpl-3.0.html> | |
# | |
# Usage: | |
# add_to_ignore.sh https://github.com/github/gitignore/blob/master/C++.gitignore | |
set -e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
varribas@Ubuntu14lts:/tmp/gitignore-test$ git --version | |
git version 1.9.1 | |
varribas@Ubuntu14lts:/tmp$ mkdir gitignore-test | |
varribas@Ubuntu14lts:/tmp$ cd gitignore-test/ | |
varribas@Ubuntu14lts:/tmp/gitignore-test$ git init . | |
Initialized empty Git repository in /tmp/gitignore-test/.git/ | |
varribas@Ubuntu14lts:/tmp/gitignore-test$ mkdir -p a/b b c | |
varribas@Ubuntu14lts:/tmp/gitignore-test$ touch a/A a/b/B b/B c/C | |
varribas@Ubuntu14lts:/tmp/gitignore-test$ git add . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Copyright (c) 2015 Victor Arribas Raigadas | |
# | |
# This software is under GPL3 Lincense. | |
# You could get a copy at http://www.gnu.org/licenses/gpl-3.0.html | |
# | |
# Requires: | |
# * NetworkManager >= 0.96 | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Code example related to | |
https://github.com/RoboticsURJC/JdeRobot/issues/211 | |
Additional docs: | |
- http://www.boost.org/doc/libs/1_59_0/libs/format/doc/format.html | |
- http://studiofreya.com/cpp/a-few-boostformat-examples/ | |
*/ | |
#include <iostream> | |
#include <boost/format.hpp> |