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 | |
echo "Automated VPS Setup for Ubuntu 10.04 LTS (Lucid) - Rails with Nginx" | |
echo "------------------------------------------------------------------" | |
echo "------------------------------------------------------------------" | |
echo "------------------------------------------------------------------" | |
echo "------------------------------------------------------------------" | |
echo "------------------------------------------------------------------" | |
echo "------------------------------------------------------------------" | |
echo "------------------------------------------------------------------" |
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
..PHP Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Error at offset 9013 of 38834 bytes' in /usr/share/php/PHPUnit/Util/PHP.php:186 | |
Stack trace: | |
#0 /usr/share/php/PHPUnit/Util/PHP.php(186): unserialize('a:4:{s:10:"test...') | |
#1 /usr/share/php/PHPUnit/Util/PHP.php(161): PHPUnit_Util_PHP::processChildResult(Object(JobsControllerTest), Object(PHPUnit_Framework_TestResult), 'a:4:{s:10:"test...', '') | |
#2 /usr/share/php/PHPUnit/Framework/TestCase.php(605): PHPUnit_Util_PHP::runJob('<?php?set_inclu...', Object(JobsControllerTest), Object(PHPUnit_Framework_TestResult)) | |
#3 /usr/share/php/PHPUnit/Framework/TestSuite.php(751): PHPUnit_Framework_TestCase->run(Object(PHPUnit_Framework_TestResult)) | |
#4 /usr/share/php/PHPUnit/Framework/TestSuite.php(727): PHPUnit_Framework_TestSuite->runTest(Object(JobsControllerTest), Object(PHPUnit_Framework_TestResult)) | |
#5 /usr/share/php/PHPUnit/Framework/TestSuite.php(687): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult), false, Array, Arr |
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
mplayer tv:// -tv driver=v4l2:width=352:height=288:device=/dev/video0 |
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
raphael@SIGPES-RAPHAEL:/var/www/bol/testes/unitarios$ pry | |
/home/raphael/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': no such file to load -- readline (LoadError) | |
from /home/raphael/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' | |
from /home/raphael/.rvm/gems/ruby-1.9.2-p180@tcc/gems/pry-0.8.3/lib/pry.rb:6:in `<top (required)>' | |
from /home/raphael/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' | |
from /home/raphael/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' | |
from /home/raphael/.rvm/gems/ruby-1.9.2-p180@tcc/gems/pry-0.8.3/bin/pry:10:in `rescue in <top (required)>' | |
from /home/raphael/.rvm/gems/ruby-1.9.2-p180@tcc/gems/pry-0.8.3/bin/pry:6:in `<top (required)>' | |
from /home/raphael/.rvm/gems/ruby-1.9.2-p180@tcc/bin/pry:19:in `load' | |
from /home/raphael/.rvm/gems/ruby-1.9.2-p180@tcc/bin/pry:19:in `<main>' |
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
<?php | |
require 'Zend/Loader/Autoloader.php'; | |
Zend_Loader_Autoloader::getInstance(); | |
$pdf = Zend_Pdf::load('arquivo.pdf'); //qualquer arquivo com duas páginas | |
$page2 = $pdf->pages[0]; | |
$p = new Zend_Pdf(); | |
$p->pages[] = clone $page2; |
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
<?php | |
require_once 'Zend/Loader/Autoloader.php'; | |
$loader = Zend_Loader_Autoloader::getInstance(); | |
class ClobTest extends PHPUnit_Framework_TestCase{ | |
public function setUp() { | |
parent::setUp(); | |
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
<? | |
//Entidade que representa o modelo de negócio | |
$user = new User(); | |
//objeto que vai ser a interface do sistema (com usuários ou outros sistemas) | |
$formUser = new Form(); | |
//Desta forma desacoplaria as validações da interface | |
$formUser->setValidations($user->getValidations()); |
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
<? | |
$evento = array('data' => '05/11/2011', | |
'local' => 'Rio de Janeiro'); |
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
<?php | |
/** | |
* Zend Framework | |
* | |
* LICENSE | |
* | |
* This source file is subject to the new BSD license that is bundled | |
* with this package in the file LICENSE.txt. | |
* It is also available through the world-wide-web at this URL: | |
* http://framework.zend.com/license/new-bsd |
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
<?php | |
$port = fopen('/dev/ttyUSB0', 'w'); | |
fwrite($port, 'A'); | |
fwrite($port, 'a'); | |
fclose($port); |
OlderNewer