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 | |
class Iterable implements IteratorAggregate{ | |
protected $array; | |
function __construct(array $array = null ){ | |
if(is_array($array)) | |
$this->setArray($array); | |
} | |
function getArray(){ |
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 | |
//colocar na pasta app | |
namespace MyApp; | |
class Date { | |
public static function next_week() | |
{ | |
$datetime = new \DateTime(); | |
$datetime->add(new \DateInterval('P7D')); | |
return $datetime->format('Y-m-d'); | |
} |
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
class base { | |
group { "puppet": | |
ensure => "present", | |
} | |
exec { "apt_update": | |
command => "apt-get update", | |
path => "/usr/bin" | |
} | |
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@curupira:~/Downloads/desenvolvimento/php-5.3.20$ make test TESTS=tests/output/bug63377.phpt | |
Build complete. | |
Don't forget to run 'make test'. | |
===================================================================== | |
PHP : /home/raphael/Downloads/desenvolvimento/php-5.3.20/sapi/cli/php | |
PHP_SAPI : cli | |
PHP_VERSION : 5.3.20 |
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 | |
namespace ZFTool\Model; | |
use Zend\Code\Generator\ValueGenerator; | |
class Skeleton | |
{ | |
const SKELETON_URL = 'https://github.com/zendframework/ZendSkeletonApplication/archive/master.zip'; | |
const API_LAST_COMMIT = 'https://api.github.com/repos/zendframework/ZendSkeletonApplication/commits?per_page=1'; |
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:~/Downloads/vagrant-oracle-xe$ vagrant up | |
[oraxe] VM already created. Booting if it's not already running... | |
[oraxe] Clearing any previously set forwarded ports... | |
[oraxe] Forwarding ports... | |
[oraxe] -- 22 => 41022 (adapter 1) | |
[oraxe] Creating shared folders metadata... | |
[oraxe] Clearing any previously set network interfaces... | |
[oraxe] Preparing network interfaces based on configuration... | |
[oraxe] Running any VM customizations... | |
[oraxe] Booting VM... |
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
class oracle::server { | |
file { | |
"/etc/wgetrc": | |
source => "puppet:///modules/oracle/wgetrc"; | |
} | |
file { | |
"/etc/apt/apt.conf.d/01proxy": | |
source => "puppet:///modules/oracle/01proxy"; |
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
Acquire::http::Proxy "http://ubuntu-galeao.ccarj.intraer:3142"; |
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
# You can set the default proxies for Wget to use for http, https, and ftp. | |
# They will override the value in the environment. | |
https_proxy = https://user:[email protected]:3128/ | |
http_proxy = http://user:[email protected]:3128/ | |
ftp_proxy = http://user:[email protected]:3128/ | |
# If you do not want to use proxy at all, set this to off. | |
use_proxy = on |
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
# pacotes .deb | |
# | |
# apache 2 | |
# apache2 apache2-dev apache2-utils | |
# | |
# MySQL | |
# libmysqlclient-dev mysql-server-5.5 | |
# | |
# ReadLine | |
# libreadline6-dev |