Skip to content

Instantly share code, notes, and snippets.

View ottaviano's full-sized avatar
🚀
make start

Dimitri Gritsajuk ottaviano

🚀
make start
View GitHub Profile
{% extends 'base.html.twig' %}
{% block body %}
<ul>
{% for key, post in posts %}
<li>#{{ key + 1 }} | {{ post.title }} ({{ post.date|date('d/m/y') }})</li>
{% endfor %}
</ul>
{% endblock %}
@ottaviano
ottaviano / .aliases
Last active March 22, 2021 05:18
Supertail - tail with colors
...
supertail() {
tail -f $@ | sed \
-e 's/\(.*\[info\].*\)/\o033[32m\1\o033[39m/' \
-e 's/\(.*INFO\:.*\)/\o033[32m\1\o033[39m/' \
-e 's/\(.*\[err\].*\)/\o033[31m\1\o033[39m/' \
-e 's/\(.*ERROR\:.*\)/\o033[31m\1\o033[39m/' \
-e 's/\(.*CRITICAL\:.*\)/\o033[31m\1\o033[39m/' \
-e 's/\(.*EMERGENCY\:.*\)/\o033[31m\1\o033[39m/' \