I hereby claim:
- I am elbaschid on github.
- I am elbaschid (https://keybase.io/elbaschid) on keybase.
- I have a public key whose fingerprint is C370 5CCB 418A D14A DD16 469D 474F 998F 42CE BD1E
To claim this, I am signing this object:
#! /usr/bin/env python | |
import re | |
import sys | |
import difflib | |
import requests | |
from purl import URL | |
URL_REGEX = re.compile( |
# -*- encoding: utf-8 -*- | |
from __future__ import print_function | |
from enum import Enum | |
class PrintableValue(object): | |
def __init__(self, value, printable_name): | |
self.value = value | |
self.printable_name = printable_name |
I hereby claim:
To claim this, I am signing this object:
# -*- coding: utf-8 -*- | |
from __future__ import print_function | |
import re | |
import feedparser | |
from collections import defaultdict | |
MOBIF_REGEX = re.compile(r'(?i)mobif\w+') |
# -*- coding: utf-8 -*- | |
#! /usr/bin/env python | |
import os | |
import sys | |
import click | |
DEFAULT_CONFIG_TEMPLATE = "default_app_config = '{module_path}.{config_module}.{app_name}AppConfig'" # noqa | |
[tox] | |
envlist = {py27,py26}-django{14,15,16}-oscar{05,06}-env{test,dev} | |
[testenv] | |
basepython = | |
py26: python2.6 | |
py27: python2.7 | |
deps = | |
-r{toxinidir}/requirements.txt |
# haiku/urls.py | |
urlpattnerns = [ | |
# all the private ones | |
] | |
public_urlpatterns = [ | |
url(....) | |
] |
# Delete all stopped containers | |
docker rm $(docker ps -a -q) | |
# Remove unused, dangling images | |
docker rmi $(docker images -q -f dangling=true) | |
# Remove all but X images with a specific name (old image cleanup), | |
# in this case, we leave the 2 newest images. | |
$(docker images | grep my-docker-image | tail -n+3 | awk '{ print $1":"$2; }') |
#!/usr/bin/env bash | |
set -e | |
. /opt/elasticbeanstalk/hooks/common.sh | |
# switch to current app directory | |
cd $EB_CONFIG_APP_CURRENT | |
# Dockerrun.aws.json can override settings in Dockerfile | |
echo "Reading settings from Dockerrun.aws.json" |
#!/usr/bin/env bash | |
set -ue | |
if ! which boot2docker > /dev/null | |
then | |
echo "Boot2docker doesn't seem to be installed" | |
exit 0 | |
fi | |
$(boot2docker shellinit) |