This file contains hidden or 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 | |
if [ $1 ] | |
then | |
mkdir -p lib/vendor | |
wget http://www.symfony-project.org/get/symfony-1.4.13.tgz | |
tar -zxvf symfony-1.4.13.tgz | |
mv symfony-1.4.13 lib/vendor/symfony | |
rm symfony-1.4.13.tgz | |
php lib/vendor/symfony/data/bin/symfony generate:project $1 | |
php symfony generate:app frontend |
This file contains hidden or 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/php | |
<?php | |
if (isset($argv[1])) { | |
$lista = file($argv[1]); | |
$total = count($lista) - 1; | |
echo $lista[mt_rand(1, $total)]; | |
} else { | |
echo "Passe uma lista de nomes como parâmetro!"; | |
} |
NewerOlder