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 | |
# 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
_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
# 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
#!/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
# | |
# 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> | |
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
_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
[Firmware Bug]: ACPI(PEGP) defines _DOD but not _DOS | |
## https://bugs.launchpad.net/fwts/+bug/1249978 | |
# **https://ubuntuforums.org/showthread.php?t=1613132** | |
i915 | |
### ??? | |
realtek: No valid SSID, checking pincfg | |
### FIXED (overriding) | |
## https://bugzilla.redhat.com/show_bug.cgi?id=785417 |
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
""" | |
From Python 3.3, functional programing on top of generators has been reached a new state-level. | |
Infinite loop without memory footprint with just a `list()` over the magic. | |
https://stackoverflow.com/questions/13243766/python-empty-generator-function | |
A new ofuscated way to hide traditional server-loops is here, muajajaja. | |
""" | |
def classical_yield(): |