Skip to content

Instantly share code, notes, and snippets.

View contactsunny's full-sized avatar

Sunny Srinidhi contactsunny

View GitHub Profile
@contactsunny
contactsunny / DataStructureImplementations.md
Last active April 23, 2020 14:23
A list of all data structure implementations I've written.
@contactsunny
contactsunny / dockerfile
Last active September 1, 2016 01:40
Dockerfile from Ubuntu 16.04 with OpenSSH
FROM ubuntu:16.04
MAINTAINER Sunny Srinidhi <sunny.3mysore@gmail.com>
RUN apt-get update
RUN apt-get install -y openssh-server
RUN cp /etc/ssh/sshd_config /etc/ssh/sshd_config.original
RUN chmod a-w /etc/ssh/sshd_config.original
RUN mkdir /var/run/sshd
RUN echo "root:secret" | chpasswd
RUN sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/' /etc/ssh/sshd_config
// Intent call to select image from gallery
Intent intent = new Intent();
intent.setType("image/*");
intent.setAction(Intent.ACTION_GET_CONTENT);
startActivityForResult(
Intent.createChooser(intent, "Select Picture"),
SELECT_PICTURE);
/***************************************************************/