Skip to content

Instantly share code, notes, and snippets.

@beyerz
beyerz / download.php
Created August 3, 2017 07:39
Symfony console, download remote file with progress bar using guzzle
/**
* @param SymfonyStyle $io
* @param $remotePath
*
* @return string
*/
public function download(SymfonyStyle $io, $remotePath)
{
$io->section("Download " . $remotePath);
$parts = parse_url($remotePath);
@beyerz
beyerz / codeship-symfony2.sh
Last active September 29, 2016 09:04
CodeShip Symfony2 Script
#################################
### Environment Script
#################################
# Set php version through phpenv. 5.3, 5.4 and 5.5 available
phpenv local 5.4
# Modify xdebug settings and memory limit
echo "xdebug.max_nesting_level = 250" >> $HOME/.phpenv/versions/$(phpenv version-name)/etc/php.ini
echo "memory_limit = 512M" >> $HOME/.phpenv/versions/$(phpenv version-name)/etc/php.ini

Keybase proof

I hereby claim:

  • I am beyerz on github.
  • I am beyerz (https://keybase.io/beyerz) on keybase.
  • I have a public key ASCF0ykgI5shB_8Xn1Gk8hnS6T1Nx8JTLk5mBLaiOMKQSQo

To claim this, I am signing this object: