Skip to content

Instantly share code, notes, and snippets.

View standaniels's full-sized avatar

Stan Daniëls standaniels

View GitHub Profile
@jakebathman
jakebathman / logslaravel.sh
Created August 19, 2018 00:06
Tail Laravel logs and filter out the stack traces
tail -f -n 450 storage/logs/laravel*.log \
| grep -i -E \
"^\[\d{4}\-\d{2}\-\d{2} \d{2}:\d{2}:\d{2}\]|Next [\w\W]+?\:" \
--color
@standaniels
standaniels / ide-helper.php
Last active June 21, 2017 08:30
Laravel IDE Helper config for Bootform's magic methods
<?php
return array(
'magic' => array(
'BootForm' => array(
'setToken' => 'AdamWathan\Form\FormBuilder::setToken',
'open' => 'AdamWathan\Form\FormBuilder::open',
'close' => 'AdamWathan\Form\FormBuilder::close',
'text' => 'AdamWathan\BootForms\BasicFormBuilder::text',
'date' => 'AdamWathan\BootForms\BasicFormBuilder::date',
'dateTimeLocal' => 'AdamWathan\BootForms\BasicFormBuilder::dateTimeLocal',
@russweas
russweas / mixins.styl
Last active December 21, 2018 06:26
Stylus BEM mixins
// Mixins.styl
has($name)
/&__{$name}
{block}
variant($name)
/&--{$name}
{block}