Skip to content

Instantly share code, notes, and snippets.

Marcel marcelcaraciolo

View GitHub Profile
nielsonsantana /
Last active Aug 21, 2018
Docker Shortcut to singin on docker container by name
DOCKER_PS_LINE=`docker ps | awk '{print $1,$2,$NF}' | grep -m 1 $1`
CONTAINER_NAME=`echo $DOCKER_PS_LINE | awk '{print $2}'`
CONTAINER_ID=`echo $DOCKER_PS_LINE | awk '{print $1}'`
if [ -n "$CONTAINER_ID" ]; then
echo "Logged in: $CONTAINER_NAME"
docker exec -it $CONTAINER_ID bash
echo "No container found for query: '$1'"
# coding=UTF-8
from __future__ import division
import re
# This is a naive text summarization algorithm
# Created by Shlomi Babluki
# April, 2013
class SummaryTool(object):
You can’t perform that action at this time.