In this article I’m going to share a trick that I use to achieve a similar result of the New in Symfony 3.4: Advanced environment variables for Symfony 2.x.
The new advanced environment variables is a great improvement on the developer experience using symfony. It is the way to go in the future and it expands what you can do using YML thanks to Symfony Expressions in the config and parameter files. Although you could do exactly the same in Symfony 2 with a small little trick.
The mlpz/mailchimp-bundle symphony bundle allows us to interact with Mailchimp API.
Start adding this line on composer.json “require” section:
Install Git for windows and add it on path environment (How to setup environment variables on windows).
Install Ruby for windows and add it on path environment var. After associate .rb and .rbw files with this Ruby interpreter.
Finally install Capifony:
C:\> gem -v
C:\> ruby -v
ruby 2.0.2p247 (2013-06-27) [x64-mingw32]
C:\> gem install capifony --verbose
(Wait until download and it's ready)
Goutte is a screen scraping and web crawling library for PHP on top of DomCrawler and Guzzle made by Fabian Potencer.
Building crawlers with this library is straightforward you just need to extract data with css selectors.
Let’s see an example that extracts PHP Symfony jobs in Barcelona from Spain main job portal: Infojobs
Add this line in your bash profile for autocomplete your ssh hosts.
complete -W "$(echo `cat ~/.ssh/known_hosts | cut -f 1 -d ' ' | \
sed -e s/,.*//g | uniq | grep -v "\["`;)" ssh
Source: Florian Beer http://blog.no-panic.at/2011/09/15/my-bash-configuration/