Latest news

SUDO with ssh keyfile

Recently stumbled across a post about sudo with keyfile. Wonderful, never enter password for sudo again, how cool is that. After I had some difficulties in the beginning, I want to write down my way here. Install libpam-ssh-agent-auth Add to sudoers via visudo Add to /etc/pam.d/sudo Copy authorized keys Be sure you have added the […]

Single SingOn via Active Directory Authentication in Symfony

Checked different ways to authenticate users in an windows environment. At least i realised the simplest way would be to let it do by the webserver himself: Enable windows authentificaion in your IIS authentification settings. Create a user entity: # src/AppBundle/Entity/User.php namespace AppBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Security\Core\User\UserInterface; /** […]

How to enable Copy Paste in Midnight Commander under MacOS

For several Updates of MacOS Copy & Paste stopped working in Terminal for the Editor in Midnight Commander. Since then i was searching for bringing it back since i work often with this editor. Now i found a method: If you disable Mouse Reporting (View/Allow Mouse Reporting, ⌘R), mouse events […]

Boilerplate for functional tests in Symfony with FosUserBundle

My boilerplate for functional tests of controllers in Symfony 3: client = $this->createAuthorizedClient(); } /** * @return Client */ protected function createAuthorizedClient() { $client = static::createClient(); $container = $client->getContainer(); $session = $container->get(’session‘); /** @var $userManager \FOS\UserBundle\Doctrine\UserManager */ $userManager = $container->get(‚fos_user.user_manager‘); /** @var $loginManager \FOS\UserBundle\Security\LoginManager */ $loginManager = $container->get(‚fos_user.security.login_manager‘); $firewallName = […]

Symfony auf Windows IIS installieren

Um Symfony auf einem Windows IIS Webserver laufen zu lassen, sollte der Physikalische Pfad auf den /web – Ordner zeigen. Außerdem muss das Rewrite Modul, dass man hier runterladen kann, installiert sein. Anschließend kann man dann die .htaccess oder gleich folgenden Code importieren: <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f […]

csrf token validation in symfony 2.6

Following the examples about csrf token validation in controllers in symfony i found always examples with form.csrf_provider. But this is deprecated since version 2.4 and i didn’t found any example for the new implementation until i stumbled after long crawling on a description of what’s new in symfony 2.6. And […]

Shares in die Finder Seitenleiste einbinden

Da mein MacBook die dumme Angewohnheit hat, alle Shares aus der Finder-Seitenleiste zu schmeißen, wenn ann z.B. in einem fremden Netzwerk ist und damit keinen Zugriff auf seine Shares hat, habe ich mir einen Alfred Workflow geschrieben: on alfred_script(q) set myComputer to „Toms MacBook Pro“ set myNas to „afp://nas1/“ set […]

Hire me

Hire me. My rate would be onehundredandfifty an hour. Plus VAT and expenses. Four hours minimum. Dollars for small problems, Euros for big problems. British Pounds for management problems. Quelle: http://vowe.net/archives/005436.html Image: „Hire Us“ (CC BY 2.0) by  Dita Margarita

Google Chrome – OSX – obere Menüleiste fehlt

Wenn die obere Menüleiste in OSX beim Google Chrome fehlt, hilft chrome://flags. Dort die Standardeinstellungen wiederherstellen und den Chrome neustarten – voila. Nach einer längeren Suche mit obskuren Tips letztendlich hier gefunden. Image:“Google Chrome Ad about deleting stuff“ (CC BY 2.0) by  codepo8