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 | |
read -p "Enter your app name: " APP | |
if [ q$APP == q ] ; then | |
echo "No app ... aborting" | |
exit 1 | |
fi | |
read -p "Enter database engine [mysql|pgsql] (mysql): " ENG | |
if [ q$ENG == q ] ; then | |
ENG=mysql |
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
FROM php:5.6-cli | |
RUN apt-get update \ | |
&& apt-get install -y \ | |
libfreetype6-dev \ | |
&& rm -rf /var/lib/apt/lists/* \ | |
&& docker-php-ext-install iconv \ | |
&& apt-get remove -y \ | |
libfreetype6-dev \ | |
&& apt-get install -y \ |
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
import logging | |
import threading | |
from typing import Any, Dict, Iterable, Optional, Union | |
from tornado.routing import Rule, Matcher | |
_global_tornado_hook = None | |
_global_hook_lock = threading.RLock() | |
class CustomRule: | |
def __init__(self, path_pattern: Union[str, Matcher], handler_class: Any, |