Skip to content

Instantly share code, notes, and snippets.

Michael Härtl mikehaertl

Block or report user

Report or block mikehaertl

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:c2d4fb8a10a4dd2538b99def3faa2eac
PHPUnit 5.1.3 by Sebastian Bergmann and contributors.
FFSSE.EFFF.....EFEFFFEEEEE.. 28 / 28 (100%)
Time: 37 ms, Memory: 6.00Mb
There were 9 errors:
1) yiiunit\extensions\bootstrap\ButtonDropdownTest::testContainerOptions
Array to string conversion
View demo.php
<?php
/**
* writeToExcelFiles
*
* $messages is an array of this format:
* [
* 'de' => [
* 'categoryA' =>
* 'text in line 1',
* 'text in line 2',
View vim.md

Vim

Basics

Hilfe

  • :help: Hilfe aufrufen
  • :help thema: Hilfe zu Thema/Befehl aufrufen
  • <ctrl>-5: Zu verlinktem Thema springen (statt <ctrl>-])
  • <ctrl>-t: Zurückspringen
View gist:954952e09ead26f7baf4
$ fig up [240/240]
Recreating elk_elastic_1...
Recreating elk_logstash_1...
Attaching to elk_elastic_1, elk_logstash_1
logstash_1 | +++ dirname /app/bin/boot
logstash_1 | ++ readlink -f /app/bin/..
logstash_1 | + export SCRIPT_ROOT=/app
logstash_1 | + SCRIPT_ROOT=/app
logstash_1 | + . /app/elasticsearch.sh
logstash_1 | ++ set -e -o pipefail
@mikehaertl
mikehaertl / model\User.php
Last active Dec 28, 2015
Reorganization of Yii2 REST HAL implementation
View model\User.php
<?php
namespace app\models;
use Yii;
use yii\web\Link;
use yii\web\Linkable;
use yii\helpers\Url;
// Use HAL trait
use yii\rest\hal\ArrayableTrait;
@mikehaertl
mikehaertl / README.md
Last active Feb 23, 2019
How to develop with docker and Yii2
View README.md

Docker Development Workflow

These ideas are WORK IN PROGRESS!

Summary

The core idea with this workflow is that we end up with a self contained docker image of your application. This image will not only contain our code, but also all the dependencies that are neccessary to run the code. This image can then be used for both, easy deployment in production and as basis for ongoing development.

The image is not a static, though. In fact, it will see many revisions over time - which is supported nicely through dockers inheritance approach. We basically

View gist:538022a9c0e0171452dd
Adele
Adelgunde
Adelheid
Adelinde
Adeline
Adina
Adolfine
Adriana
Adriane
View gist:870cdee52fa438e334b4
Abbas
Abdul
Abdullah
Abraham
Abram
Achim
Ada
Adalbert
Adam
Adelbert
View gist:6110758
/var/lib/gems/1.9.1/gems/stringex-2.0.5/lib/stringex/localization/backend/i18n.rb in i18n_translations_for
::I18n.translate("stringex", :locale => locale, :default => {})
/var/lib/gems/1.9.1/gems/stringex-2.0.5/lib/stringex/localization/backend/i18n.rb in block in translations
@translations ||= Hash.new { |hsh, locale| hsh[locale] = Hash.new({}).merge(i18n_translations_for(locale)) }
/var/lib/gems/1.9.1/gems/stringex-2.0.5/lib/stringex/localization/backend/i18n.rb in yield
translations[locale][scope][key.to_sym]
/var/lib/gems/1.9.1/gems/stringex-2.0.5/lib/stringex/localization/backend/i18n.rb in default
translations[locale][scope][key.to_sym]
/var/lib/gems/1.9.1/gems/stringex-2.0.5/lib/stringex/localization/backend/i18n.rb in initial_translation
translations[locale][scope][key.to_sym]
@mikehaertl
mikehaertl / gist:6094165
Created Jul 27, 2013
Output of gem list
View gist:6094165
actionmailer (3.2.13)
actionpack (3.2.13)
activemodel (3.2.13)
activerecord (3.2.13)
activeresource (3.2.13)
activesupport (3.2.13)
arel (3.0.2)
atomic (1.1.10)
builder (3.2.2, 3.1.4, 3.0.0)
bundler (1.3.5)
You can’t perform that action at this time.