Jonatan Männchen Personal Homepage and Blog of Jonatan Männchen https://maennchen.dev/ Thu, 19 Mar 2026 14:08:57 +0000 Thu, 19 Mar 2026 14:08:57 +0000 Jekyll v3.10.0 How To communicate with an FTP Server from Symfony2 <h2 id="composer">Composer</h2> <p>Add The following two dependencies to you composer.json:</p> <script src="https://gist.github.com/maennchen/6f92fd5bc80156f15e0c.js?file=composer.json"></script> <h2 id="enable-the-bundle">Enable the Bundle</h2> <script src="https://gist.github.com/maennchen/6f92fd5bc80156f15e0c.js?file=AppKernel.php"></script> <h2 id="register-your-services">Register your Services</h2> <script src="https://gist.github.com/maennchen/6f92fd5bc80156f15e0c.js?file=services.yml"></script> <h2 id="usage">Usage</h2> <p>You can use all ftp_* Methods from PHP like this:</p> <script src="https://gist.github.com/maennchen/6f92fd5bc80156f15e0c.js?file=usage.php"></script> <h2 id="add-custom-methods">Add Custom Methods</h2> <p>Change the config:</p> <script src="https://gist.github.com/maennchen/6f92fd5bc80156f15e0c.js?file=services2.yml"></script> <p>Extend the Class like this, add whatever you want.</p> <script src="https://gist.github.com/maennchen/6f92fd5bc80156f15e0c.js?file=Ftp.php"></script> Wed, 03 Jun 2015 11:15:30 +0000 https://maennchen.dev/php/symfony2/ftp/service/2015/06/03/symfony-communicate-with-ftp.html https://maennchen.dev/php/symfony2/ftp/service/2015/06/03/symfony-communicate-with-ftp.html php symfony2 ftp service A simple Symfony Service to Upload Files to Amazon S3 <p>How to implement a simple Syomfony2 Service to upload Files to S3.</p> <h1 id="install-the-amazon-sdk">Install the Amazon SDK</h1> <p>Execute the following Statement: <script src="https://gist.github.com/maennchen/b075407e1f4f722278f4.js?file=console.sh"></script></p> <h1 id="create-a-service-class">Create a Service Class</h1> <script src="https://gist.github.com/maennchen/b075407e1f4f722278f4.js?file=AmazonS3Service.php"></script> <h1 id="parameters-config">Parameters Config</h1> <p>Add the following lines to your parameters.yml file or set them by settig <a href="http://symfony.com/doc/current/cookbook/configuration/external_parameters.html">environement variables</a>.</p> <script src="https://gist.github.com/maennchen/b075407e1f4f722278f4.js?file=parameters.yml"></script> <h1 id="create-a-service-configuration">Create a Service Configuration</h1> <p>For every Bucket you’re using, create one Service Config.</p> <script src="https://gist.github.com/maennchen/b075407e1f4f722278f4.js?file=services.yml"></script> <h1 id="usage">Usage</h1> <script src="https://gist.github.com/maennchen/b075407e1f4f722278f4.js?file=usage.php"></script> Sat, 30 May 2015 11:30:30 +0000 https://maennchen.dev/php/symfony2/amazon/s3/service/2015/05/30/simple-s3-symfony-service.html https://maennchen.dev/php/symfony2/amazon/s3/service/2015/05/30/simple-s3-symfony-service.html php symfony2 amazon s3 service Do nosetests for python-eve <p>This little tutorial explains how to set up nosetests for python-eve.</p> <h2 id="installation">Installation</h2> <script src="https://gist.github.com/maennchen/e45a74bf99b5c02a7cc1.js?file=installation.sh"></script> <h2 id="create-a-test-client">Create a test-client</h2> <script src="https://gist.github.com/maennchen/e45a74bf99b5c02a7cc1.js?file=client.py"></script> <h2 id="example-test">Example Test</h2> <p>tests/test_example.py <script src="https://gist.github.com/maennchen/e45a74bf99b5c02a7cc1.js?file=test_example.py"></script></p> <h2 id="run">Run</h2> <script src="https://gist.github.com/maennchen/e45a74bf99b5c02a7cc1.js?file=run.sh"></script> Wed, 27 May 2015 22:19:30 +0000 https://maennchen.dev/nosetest/python/eve/flask/2015/05/27/nosetest-python-eve.html https://maennchen.dev/nosetest/python/eve/flask/2015/05/27/nosetest-python-eve.html nosetest python eve flask Installing Jekyll 2.5 on Heroku <p>Installing Jekyll 2.5 on Heroku isn’t very dificult. You just have to find a working manual.</p> <h2 id="setup-jekyll">Setup Jekyll</h2> <p>First follow this tutorial: <a href="http://blog.bigbinary.com/2014/04/27/deploy-jekyll-to-heroku.html">How to deploy jekyll site to heroku</a></p> <h2 id="heroku">Heroku</h2> <p>After that you can create a normal Heroku Ruby app without even using a custom buildpack.</p> <script src="https://gist.github.com/maennchen/0ebf128e841678b21a48.js?file=heroku.sh"></script> <h2 id="fix-fucked-up-buildpack">Fix fucked up buildpack</h2> <p>If you allready followed any of the popular tutorials, you’ll have a custom buildpack set in Heroku. To reset the buildpack, run this command:</p> <script src="https://gist.github.com/maennchen/0ebf128e841678b21a48.js?file=fix.sh"></script> Wed, 27 May 2015 20:22:13 +0000 https://maennchen.dev/jekyll/heroku/buildpack/2015/05/27/installing-jekyll-on-heroku.html https://maennchen.dev/jekyll/heroku/buildpack/2015/05/27/installing-jekyll-on-heroku.html jekyll heroku buildpack