This file contains hidden or 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
# author: Pascal Mouret | |
# purpose: Django Management Command to export image_filer as folder-structure | |
from django.core.management.base import BaseCommand | |
from django.conf import settings | |
from image_filer.models import Folder | |
import os | |
import shutil | |
class Command(BaseCommand): |
This file contains hidden or 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
def logLogin(magnet: LogLoginMagnet): Route => Route = magnet() | |
sealed trait LogLoginMagnet { | |
def apply(): Route => Route | |
} | |
object LogLoginMagnet { | |
implicit def withImplicits(token: Token, channel: String)(implicit serviceLayers: ServiceLayers, networkId: NetworkId): LogLoginMagnet = | |
new LogLoginMagnet { | |
def apply(): Route = { |
This file contains hidden or 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
# Two scripts to start / kill docker with container | |
# start script: | |
#!/bin/bash | |
docker-machine start default; | |
eval "$(docker-machine env default)"; | |
docker start $1; | |
docker ps; | |
# kill script: |