Skip to content

Instantly share code, notes, and snippets.


Pablo Banderas pbanderas

View GitHub Profile
pbanderas / gitrc
Last active Mar 11, 2020 — forked from philcryer/gitrc
This .gitrc activates when you're in a directory that is a git repo. It tells you the branch you're on, with color handling of the bash prompt according to the branch/status. For example, the prompt would look like this: [~/foo](master) $ with (master) colored GREEN, until you've added a file to the repo, but not committed it, then it will turn …
View gitrc
# Set your bash prompt according to the branch/status of the current git repository.
# Relies on git output being in English.
# Set an alias with
# $ echo "alias git='LANGUAGE=en_US.UTF-8 git'" >> ~/.bash_profile
# Forked from
pbanderas /
Last active Oct 17, 2019 — forked from eidosam/
Install Apache ORC tools
sudo add-apt-repository ppa:george-edison55/cmake-3.x
sudo apt-get update
sudo apt-get purge cmake cmake-data
sudo apt-get -y install build-essential cmake
curl -sSLO
tar -zxf orc-1.4.1.tar.gz
cd orc-1.4.1
mkdir build
cd build
pbanderas /
Last active Mar 4, 2019 — forked from raineorshine/
Cheatsheet: git commands
# adding and committing
git add -A # stages All
git add . # stages new and modified, without deleted
git add -u # stages modified and deleted, without new
git commit --amend # Add staged changes to previous commit. Do not use if commit has been pushed.
git commit --amend --no-edit # Do so without having to edit the commit message.
# remotes - pushing, pulling, and tracking
git fetch # gets remote objects and refs. Needed if new branches were added on the remote.
git remote -v # Lists all remotes (verbose)
pbanderas / aws_dynamodb_local
Last active Dec 27, 2017 — forked from Cinedin/aws_dynamodb_local
Download last Local DynamoDB and execute as daemon
View aws_dynamodb_local
# chkconfig: 35 99 01
# description: java application
if [ -z "$JRE_HOME" ]; then
if [ -z "$JRE_HOME" ]; then
pbanderas / xfdf.php
Created Sep 14, 2015
HTML Form to FDF Parser for PHP
View xfdf.php
KOIVI HTML Form to FDF Parser for PHP (C) 2004 Justin Koivisto
Version 1.2
Last Modified: 2011/12/02
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or (at
your option) any later version.
pbanderas /
Last active Aug 29, 2015
Vagrant error with private network IP

Occurred with Centos 6.4 installations.

After specifying a private IP address in Vagrant file, command vagrant up crashed with this error

The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

/sbin/ifdown eth1 2> /dev/null
You can’t perform that action at this time.