Skip to content

Instantly share code, notes, and snippets.

View yamishi13's full-sized avatar

Roberto Carlos Martinez Arriaga yamishi13

View GitHub Profile
@yamishi13
yamishi13 / vagranter_install.sh
Last active August 29, 2015 14:02
vagranter environment installer
#!/bin/bash
# vagranter environment installer
# TODO: develop compatibility with other platforms aside from ubuntu
wget https://dl.bintray.com/mitchellh/vagrant/vagrant_1.6.3_x86_64.deb
sudo dpkg -i vagrant_1.6.3_x86_64.deb
rm vagrant_1.6.3_x86_64.deb
# TODO: install ruby, gems and vagrant plugins
# TODO: install required gems
@yamishi13
yamishi13 / casa.ino
Last active August 29, 2015 14:01
Casa-domotica
int cp = 9;
int ap = 8;
int cv = 6;
int av = 7;
int l1 = 13;
int l2 = 12;
int l3 = 11;
void parseSerial(String ser) {
//ignorar mayusculas y minusculas
@yamishi13
yamishi13 / Rbenv_installer.sh
Last active June 21, 2017 16:30
Rbenv_installer.sh
#!/bin/bash
# Rbenv Installer for ubuntu
rubyb=2.1.2
# Verify it is not being run as root
if [ $EUID -eq 0 ] ; then
echo "Don't run this script as root if you don't want to have nightmares at night" >> /dev/stderr
exit 1
fi
@yamishi13
yamishi13 / ruboto_env_installer.sh
Last active August 29, 2015 14:01
ruboto_env_installer
#!/bin/bash
environment="server"
java=1
# parse arguments for environment settings
while [ $# -gt 0 ] ; do
case $1 in
-e | --environment) environment=$2 ; shift 2 ;;
-n | --no-java) java=0 ; shift 1 ;;
@yamishi13
yamishi13 / lamp_installer.sh
Last active August 29, 2015 14:00
lamp installer for ubuntu
#!/bin/bash
# This script must be run as root
if [[ $EUID -ne 0 ]]
then
echo "This script must be run as root" 1>&2
exit 1
fi
function uninstall() {
echo "stack ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
sudo apt-get install git -y
git clone https://github.com/openstack-dev/devstack.git
cd devstack
git checkout --track /origin/stable/icehouse
wget https://gist.githubusercontent.com/yamishi13/11321419/raw/2aa6b15114dd46becb21f3328fb19e8e24a6dbd6/local.conf
./stack