Skip to content

Instantly share code, notes, and snippets.

...
RUN echo 'deb http://download.owncloud.org/download/repositories/9.1/Debian_8.0/ /' > /etc/apt/sources.list.d/owncloud.list
...
...
RUN echo 'deb http://download.owncloud.org/download/repositories/9.0/Debian_8.0/ /' > /etc/apt/sources.list.d/owncloud.list
...
FROM debian:8
MAINTAINER Alex Kuiper <alex@nightwhistler.net>
RUN apt-get update
RUN apt-get install -y apt-utils apt-transport-https
RUN echo 'deb http://download.owncloud.org/download/repositories/8.2/Debian_8.0/ /' > /etc/apt/sources.list.d/owncloud.list
RUN apt-get update
## Install base packages
<VirtualHost *:80>
Alias /owncloud "/var/www/owncloud/"
<Directory /var/www/owncloud/>
Options +FollowSymlinks
AllowOverride All
<IfModule mod_dav.c>
Dav off
</IfModule>
#!/bin/bash
source /etc/apache2/envvars
exec apache2 -D FOREGROUND
FROM debian:8
MAINTAINER Alex Kuiper <alex@nightwhistler.net>
RUN echo 'deb http://download.opensuse.org/repositories/isv:/ownCloud:/community:/8.0/Debian_8.0/ /' > /etc/apt/sources.list.d/isv:ownCloud:community:8.0.list
RUN apt-get update
RUN apt-get install -y apt-utils
## Install base packages
RUN apt-get -yq install \
public class CSSLinkHandler extends TagNodeHandler {
private static final Logger LOG = LoggerFactory.getLogger("CSSLinkHandler");
public void handleTagNode(TagNode node, SpannableStringBuilder builder, int start, int end, SpanStack spanStack) {
String type = node.getAttributeByName("type");
String href = node.getAttributeByName("href");
LOG.debug("Found link tag: type=" + type + " and href=" + href );
if ( type == null || ! type.equals("text/css") ) {
public class MyExpansionListener implements ExpansionListener {
private TextView textView;
public MyExpansionListener( TextView textView ) {
this.textView = textView;
}
public void expandText( String fullText, int start, int end ) {
String before = textView.getText().substring(0, start);
private Context context;
private TextExpansionListener listener;
public ExpandHandler(Context context, TextExpansionListener listener){
this.context = context;
this.listener = listener;
}
public void handleTagNode(TagNode node, final SpannableStringBuilder builder,
public interface TextExpansionListener {
void expandText( String fullText, int start, int end );
}