This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
<<<CONFIG | |
packages: | |
- silex/silex | |
php-options: | |
- "-S" | |
- "localhost:8000" | |
CONFIG; | |
$app = new Silex\Application(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import sys | |
import os | |
import subprocess | |
import re | |
import getopt | |
class bcolors: | |
HEADER = '\033[95m' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# edit /etc/default/docker to add "DOCKER_OPTS="--bip=172.17.42.1/16 --dns=172.17.42.1" | |
# with 172.17.42.1 => ip of your docker0 interface you can retreive with the following command | |
DOCKER_IP=`sudo ifconfig docker0 | awk '/inet addr/ {split ($2,A,":"); print A[2]}'` | |
echo "Dockers $DOCKER_IP" | |
docker rm -f skydns skydock | |
NAMESERVER=`nslookup -query=ns google.com | awk '/Server:/{split($0,A,":"); print A[2]}' | tr -d ' ' | tr -d '\t'` | |
echo "NameServer $NAMESERVER" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#--------- | |
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: (.*) |
NewerOlder