Copyright (C) 2016 Victor Arribas (CC-BY-NC-SA-4.0)
Recover from bootloop after break CyanogenMod's Privacy Guard without data lost.
| #!/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 | |
| # |
| #!/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 | |
| if [ -z "$1" ]; then | |
| echo "Little script to launch an SCHROOT throught a specific workspace" |
| /* 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> |
| 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 . |
| #!/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 |
| _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 | |
| # 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' {} \; |
| #!/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 |
| #!/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 |