Skip to content

Instantly share code, notes, and snippets.

View johannesnagl's full-sized avatar
👨‍👩‍👧
#proudDadOfAGirl

Johannes Nagl johannesnagl

👨‍👩‍👧
#proudDadOfAGirl
View GitHub Profile
@johannesnagl
johannesnagl / init-server.sh
Last active August 29, 2015 14:01
Initialize Server
apt-get update
apt-get upgrade -y
apt-get install git-core -y
@johannesnagl
johannesnagl / viennaphp-august-2014-gathering.txt
Created August 11, 2014 19:16
ViennaPHP August 2014 Gathering: CakePHP point of view
ViennaPHP August Gathering: http://www.meetup.com/viennaphp/events/195495012/
hi guys,
sorry for not being able to join you last week for the August gathering! Sebastian asked me to say some words about our CakePHP development point of view, but it was not possible for me to join in time (because we're running late on a quite big relaunch).
Sebastian sent my some questions, I now want to answer directly here. If there are questions left, please contact me directly and/or comment here!
* Ecosystem (Plugins, Community/Help available): How is the overall ecosystem? Are there many plugins for the framework to integrate the work of others? Is there a community which enables to build better software? Is there a good help and other resources?
@johannesnagl
johannesnagl / app-Config-bootstrap.php
Created July 17, 2018 12:03
CakePHP2 Postgres Lateral Join Hack
<?php
// …
CakePlugin::load('PostgresApp');
// …
@johannesnagl
johannesnagl / SqlStatementCountAssertionTrait.php
Created February 13, 2020 15:23
Including this trait in your Laravel Test code will **automatically** start counting SQL queries for every test.
<?php declare(strict_types = 1);
namespace Swat\Api\V2\Tests\Traits;
use DB;
use Illuminate\Database\Events\QueryExecuted;
use Swat\Api\V2\Tests\TestCase;
/**
* Including this trait will **automatically** start counting SQL queries
* for every test.