Skip to content

Instantly share code, notes, and snippets.

View yamishi13's full-sized avatar

Roberto Carlos Martinez Arriaga yamishi13

View GitHub Profile
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
@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() {
@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 / 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 / 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 / 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 / mongodb_installer.sh
Last active August 29, 2015 14:09
MongoDB Ubuntu installer
#!/usr/bin/env bash
# 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
#add the key for the repo
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
@yamishi13
yamishi13 / primos.c
Created November 25, 2014 19:00
paralell primos
#include <stdio.h>
#include <time.h>
const int NUMPRIMOS = 1000000;
clock_t start,end;
int CalculaPrimosFuerzaBruta()
{
int candidato;
bool esprimo;
@yamishi13
yamishi13 / mdbr_instaler.sh
Created December 1, 2014 16:37
MongoDB and Rails installer
#/bin/bash
#install ruby 2.1.2
apt-get update
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev
cd /tmp
wget http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.gz
tar -xvzf ruby-2.1.2.tar.gz
cd ruby-2.1.2/
./configure --prefix=/usr/local
make
@yamishi13
yamishi13 / vsftpd.sh
Created February 28, 2015 13:56
Vsftpd Installer
#!/bin/bash
#actualiza repos e instala vsftpd
sudo apt-get update
sudo apt-get install vsftpd -y
#remplaza opcioes para activar/desactivar en el archivo de configuracion
sudo sed -i -e 's/anonymous_enable=YES/anonymous_enable=NO/g' /etc/vsftpd.conf
sudo sed -i -e 's/#local_enable=YES/local_enable=YES/g' /etc/vsftpd.conf
sudo sed -i -e 's/#write_enable=YES/write_enable=YES/g' /etc/vsftpd.conf