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 | |
# Instalacion de paquetes necesarios | |
apt-get update | |
apt-get install -y build-essential autoconf libxml2-dev libmcrypt-dev libmysqlclient-dev openssl pkg-config libjpeg-dev libpng-dev libxslt1-dev libcurl4-gnutls-dev libbz2-dev libxpm-dev libfreetype6-dev | |
apt-get install -y curl | |
mkdir /home/vagrant/provisioning | |
cd /home/vagrant/provisioning |
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
config.vm.box = "hashicorp/precise64" | |
config.vm.network "forwarded_port", guest: 80, host: 8080 | |
config.vm.provision "shell", path: "vagrant-provision.sh" | |
config.vm.hostname = "vagrant" |
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 | |
# Install basics | |
apt-get update | |
apt-get -y install git curl python-software-properties | |
# Install packagess | |
add-apt-repository -y ppa:ondrej/php5 | |
apt-get update | |
apt-get -y install php5 php5-mysql php5-mcrypt php5-curl php5-gd |
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 | |
# Create laravel project | |
composer create-project laravel/laravel . | |
# Download vagrant-provision.sh | |
curl https://gist.githubusercontent.com/sahibalejandro/80038293f363ec9c95c2/raw/b78a4682f70a3125b96a2dc508a9914472bff5c2/vagrant-provision.sh > vagrant-provision.sh | |
# Initialize and configure Vagrantfile | |
vagrant init -m |
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
export PATH=$PATH:/usr/local/mysql/bin:/Users/sahib/bin | |
# | |
# Vagrant commands | |
# | |
alias vi="vagrant init" | |
alias vu="vagrant up" | |
alias vh="vagrant halt" | |
alias vd="vagrant destroy" |
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
ffmpeg -f image2 -start_number 170 -i G0010%03d.JPG -s 750x562 -pix_fmt yuv420p -r 60 tiendeme.mov |
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
/** | |
* Setup datepickers | |
*/ | |
$('.datepicker').each(function () | |
{ | |
var alt_field = $(this).data('alt-field'); | |
var altField = $(alt_field); | |
var defaultDate = new Date(); | |
if (altField.val() != '') { |
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
<?php namespace Acme\Validators; | |
use Validator; | |
/** | |
* Class InputValidator | |
* @package Acme\Validators | |
*/ | |
abstract class InputValidator { |
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
<?php namespace Acme\Validators; | |
use Illuminate\Support\MessageBag; | |
/** | |
* Class InputValidatorException | |
* @package Acme\Validators | |
*/ | |
class InputValidatorException extends \Exception { |
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
module.exports = function (grunt) | |
{ | |
var files = { | |
vendor: { | |
css_src: 'vendor/css/bootstrap.css', | |
css_dest: 'compiled/vendor.min.css', | |
js_src: ['vendor/js/jquery.js', 'vendor/js/bootstrap.js'], | |
js_dest: 'compiled/vendor.min.js' | |
}, | |
app: { |
OlderNewer