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
alias phpdebug='PHP_IDE_CONFIG="serverName=website.dev" XDEBUG_CONFIG="idekey=PHPSTORM" php -d xdebug.remote_host=10.0.2.2 -d xdebug.remote_connect_back=0' |
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 | |
class Collection | |
{ | |
/** | |
* Gets an item from the collection | |
* | |
* @param $item | |
* @return string|null | |
*/ | |
public function get($item) |
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
clemherreman@macclem ~ $ php -v | |
PHP 5.4.3 (cli) (built: Jun 6 2012 11:03:31) | |
Copyright (c) 1997-2012 The PHP Group | |
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies | |
with Xdebug v2.2.1, Copyright (c) 2002-2012, by Derick Rethans | |
clemherreman@macclem ~ $ php test.php | |
Content: | |
.container_home .crm .bd_e{foo) repeat-x |
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 | |
use Behat\Behat\Context\Step\Given; | |
use Behat\Behat\Context\Step\When; | |
use Behat\Mink\Element\Element; | |
use Behat\Mink\Exception\ExpectationException; | |
use Behat\MinkExtension\Context\RawMinkContext; | |
use FooInterface; |
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
Vagrant::Config.run do |config| | |
config.vm.box = "centos-6.3" | |
config.vm.host_name = "ps3.profilsearch.com" | |
# config.vm.boot_mode = :gui | |
config.vm.network :hostonly, "192.168.33.10" | |
config.vm.share_folder "v-data", "/vagrant_data", "../..", :nfs => true | |
config.vm.customize ["modifyvm", :id, "--name", "Profilsearch"] | |
config.vm.customize ["modifyvm", :id, "--memory", 1024] | |
config.vm.customize ["modifyvm", :id, "--cpus", 2] |
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
clemherreman@macclem ~/Boulot/Perso $ git clone https://github.com/kud/krr.git | |
Cloning into krr... | |
remote: Counting objects: 250, done. | |
remote: Compressing objects: 100% (158/158), done. | |
remote: Total 250 (delta 76), reused 238 (delta 64) | |
Receiving objects: 100% (250/250), 236.43 KiB | 163 KiB/s, done. | |
Resolving deltas: 100% (76/76), done. | |
clemherreman@macclem ~/Boulot/Perso $ cd krr/ | |
clemherreman@macclem ~/Boulot/Perso/krr $ npm install | |
npm http GET https://registry.npmjs.org/feedparser |
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 | |
$options = array( | |
'http' => array( | |
'method' => 'GET', | |
'verify_peer' => false, | |
'allow_self_signed' => true, | |
'follow_location' => 1, | |
'max_redirects' => 20, | |
'proxy' => 'tcp://your.proxy.ip:yourProxyPort', | |
// Uncomment the following line to reproduce the bug |
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
// Count the numbers of attached files | |
if (!empty($tabProprietes)) | |
{ | |
foreach ($tabProprietes as $prop) | |
{ | |
$count++; | |
} | |
} |
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
# Java is needed | |
sudo apt-get install openjdk-6-jdk | |
# Install jenkins for their repository | |
wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add - | |
sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list' | |
sudo apt-get update | |
sudo apt-get install jenkins | |
# Optional: setup pear |
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
{ | |
"repositories" : [ | |
{ | |
"type": "vcs", | |
"url": "https://github.com/my/package" | |
}, | |
"require": { | |
"my/package": "*" | |
} | |
} |