Skip to content

Instantly share code, notes, and snippets.

Marcel marcelcaraciolo

Block or report user

Report or block marcelcaraciolo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@nielsonsantana
nielsonsantana / dockerenter.sh
Last active Apr 15, 2019
Docker Shortcut to singin on docker container by name
View dockerenter.sh
#!/bin/bash
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
else
echo "No container found for query: '$1'"
View summary_tool.py
# 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.