Skip to content

Instantly share code, notes, and snippets.


Camilo Sampedro camilosampedro

View GitHub Profile
camilosampedro /
Last active Oct 22, 2016
Schema of how to create a script's daemon on /etc/init.d/
# Provides: start-hadoop
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start Jupyter Notebook's service
# Description: Executes jupyter notebook in background.
camilosampedro / Instal Jupyter Cloudera
Last active Sep 29, 2015
Install Jupyter on LMDE2 and Cloudera
View Instal Jupyter Cloudera
# Execute this script as root
# First install python2.7 with an alternative installation
# (Source:
yum groupinstall "Development tools"
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel
tar xf Python-2.7.6.tar.xz
View Java
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer oracle-java8-set-default
View Install
# Verifies if Java is installed, and if it's not installed, install it.
function isJavaInstalled {
echo -ne "=> Verifying Java installation"
# Trying to execute java
java -version
# Getting the exit code of the execution.
echo -ne "... "
We couldn’t find that file to show.
View Install Ruby on Rails
if [ "$(grep -Ei 'debian|buntu|mint' /etc/*release)" ]; then
sudo apt-get update
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev
git clone git:// .rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
git clone git:// ~/.rbenv/plugins/ruby-build
View message with
sudo -u $USERNAME DISPLAY=:0.0 zenity --warning --text="$MESSAGE"
You can’t perform that action at this time.