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
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 |
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/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() { |
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/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 ;; |
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/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 |
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
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 |
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/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 |
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
#!/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 |
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
#include <stdio.h> | |
#include <time.h> | |
const int NUMPRIMOS = 1000000; | |
clock_t start,end; | |
int CalculaPrimosFuerzaBruta() | |
{ | |
int candidato; | |
bool esprimo; |
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/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 |
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/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 |
OlderNewer