Skip to content

Instantly share code, notes, and snippets.

Shrikrishna Holla shrikrishnaholla

Block or report user

Report or block shrikrishnaholla

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
@shrikrishnaholla
shrikrishnaholla / spacy.dockerfile
Created Sep 25, 2018
Sample dockerfile for a project that uses spacy
View spacy.dockerfile
FROM python:3
RUN apt-get update
RUN pip3 install \
spacy \
...
RUN python3 -m spacy download en
View build-essential.log
# apt-cache policy build-essential
build-essential:
Installed: 11.7
Candidate: 11.7
Version table:
*** 11.7 0
500 http://httpredir.debian.org/debian/ jessie/main amd64 Packages
100 /var/lib/dpkg/status
View docker-cleanup.sh
#!/bin/sh
# Cleanup docker files: untagged containers and images.
#
# Use `docker-cleanup -n` for a dry run to see what would be deleted.
untagged_containers() {
# Print containers using untagged images: $1 is used with awk's print: 0=line, 1=column 1.
# NOTE: "[0-9a-f]{12}" does not work with GNU Awk 3.1.7 (RHEL6).
# Ref: https://github.com/blueyed/dotfiles/commit/a14f0b4b#commitcomment-6736470
docker ps -a | tail -n +2 | awk '$2 ~ "^[0-9a-f]+$" {print $'$1'}'
@shrikrishnaholla
shrikrishnaholla / diaspora.log
Last active Jan 16, 2016
Diaspora 'open' not found error log
View diaspora.log
Starting Diaspora in development mode on port 3000 with job processing inside the request cycle.
I, [2016-01-16T18:20:50.956175 #1] INFO -- : [diaspora:__default__] send_command: monitor
I, [2016-01-16T18:20:50.958635 #1] INFO -- : [diaspora:__default__] schedule :monitor (reason: monitor by user)
I, [2016-01-16T18:20:50.959911 #1] INFO -- : [diaspora:__default__] => monitor (reason: monitor by user)
I, [2016-01-16T18:20:50.960871 #1] INFO -- : [diaspora:__default__] starting async with 0.2s chain monitor []
I, [2016-01-16T18:20:50.961956 #1] INFO -- : [Eye] <= loading: ["/home/diaspora/diaspora/config/eye.rb"]
I, [2016-01-16T18:20:50.984686 #1] INFO -- : [Eye] <= command: load /home/diaspora/diaspora/config/eye.rb (0.155409642s)
I, [2016-01-16T18:20:50.987036 #1] INFO -- : [diaspora:web] schedule :monitor (reason: monitor by user)
I, [2016-01-16T18:20:50.988071 #1] INFO -- : [diaspora:web] => monitor (reason: monitor by user)
@shrikrishnaholla
shrikrishnaholla / Dockerfile
Last active Jan 3, 2016
Dockerfile to set up octopress. Once you spin up the container, you need to continue from http://octopress.org/docs/deploying/. You can either attach to the container, or ssh into it
View Dockerfile
FROM ubuntu
MAINTAINER shrikrishna <shrikrishna.holla@gmail.com>
# update OS
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
RUN apt-get update
RUN apt-get upgrade -y
# Install depndencies
RUN apt-get install -y ruby1.9.1-dev build-essential git openssh-server vim
View ssh.log
OpenSSH_5.9p1 Debian-5ubuntu1.1, OpenSSL 1.0.1 14 Mar 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to 172.17.0.2 [172.17.0.2] port 22.
debug1: Connection established.
debug3: Incorrect RSA1 identifier
debug3: Could not load "/home/ubuntu/.ssh/id_rsa" as a RSA1 public key
debug1: identity file /home/ubuntu/.ssh/id_rsa type 1
debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048
You can’t perform that action at this time.