Skip to content

Instantly share code, notes, and snippets.

View mathroc's full-sized avatar

Mathieu Rochette mathroc

View GitHub Profile
@imjasonh
imjasonh / markdown.css
Last active May 24, 2024 22:56
Render Markdown as unrendered Markdown (see http://jsbin.com/huwosomawo)
* {
font-size: 12pt;
font-family: monospace;
font-weight: normal;
font-style: normal;
text-decoration: none;
color: black;
cursor: default;
}
@mathroc
mathroc / docker-reverse-proxy.sh
Last active August 29, 2015 14:12
Reverse proxy for docker container
docker run -d --restart=always -v /var/run/docker.sock:/tmp/docker.sock:ro --name reverseproxy -p 80:80 jwilder/nginx-proxy
docker run -d --restart=always -v /var/run/docker.sock:/tmp/docker.sock:ro --name virtual_hosts -e VIRTUAL_HOST=dev.127.0.0.1.xip.io texthtml/docker-vhosts
# set VIRTUAL_HOST env var in others containers to make them discoverable
@jderusse
jderusse / .multitailrc
Created September 16, 2014 12:54
Multitail template for Symfony2 logs
#---------
scheme:php:/var/log/apache/
colorscheme:php
cs_re:white,red:PHP (Stack trace:|Fatal error:).*
mcsre_s:,,bold:PHP Fatal error: (.*)
cs_re:white,red:PHP [ 0-9]+\.
cs_re:white,yellow:PHP Warning: .*
mcsre_s:,,bold:PHP Warning: (.*)
cs_re:yellow:PHP Notice: .*
mcsre_s:,,bold:PHP Notice: (.*)