- A Docker Dev Environment in 24 Hours!
- Building a Development Environment With Docker
- Discourse in a Docker Container
You may also like to try the tools section.
#! /bin/bash | |
sudo apt-get install -y vim less net-tools inetutils-ping curl git httpie tmux \ | |
telnet nmap socat dnsutils netcat tree htop \ | |
unzip sudo software-properties-common | |
##sudo apt-get install software-properties-common | |
sudo add-apt-repository ppa:webupd8team/java -y && \ | |
sudo apt-get update && \ |
#!/usr/bin/env python | |
import bigml | |
from bigml.api import BigML | |
# You need to define BIGML_USERNAME and BIGML_API_KEY in your environment, or | |
# add them here: | |
#api = BigML(username, api_key, dev_mode=True) | |
api = BigML(dev_mode=True) |
FROM ubuntu | |
MAINTAINER killa samkiller@me.com | |
# Java 7 | |
RUN echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list | |
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886 | |
RUN apt-get update | |
RUN echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections | |
RUN apt-get install oracle-java7-installer -y | |
You may also like to try the tools section.
FROM ubuntu:trusty | |
MAINTAINER Sam B. samklr@me.com | |
RUN apt-get update && apt-get install -y logrotate python python-dev wget curl nano | |
RUN (wget -q -O - http://www.aerospike.com/artifacts/aerospike-server-community/3.3.26/aerospike-server-community-3.3.26-debian7.tgz | tar xzf - -C /) \ | |
&& cd /aerospike-server-community-3.3.26-debian7 \ | |
&& ./asinstall \ | |
&& rm -Rf /aerospike-server-community-3.3.26-debian7 |
#!/bin/bash | |
###updates | |
sudo apt-get install software-properties-common | |
sudo add-apt-repository ppa:lubuntu-dev/lubuntu-daily | |
sudo add-apt-repository ppa:gilir/q-project | |
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get install lxqt-metapackage lxqt-panel vnc4server | |
val data= sc.textFile("/home/samklr/data/") | |
val gts = data.map(_.split(",")) | |
.map (lin => lin(2) + "// " + " wisdm.atitracker{user=" + lin(0) + "} " + lin(3) +"\n" + | |
lin(2) + "// " + " wisdm.atitracker{user=" + lin(0) + "} " + lin(4) +"\n"+ | |
lin(2) + "// " + " wisdm.atitracker{user=" + lin(0) + "} " + lin(5) +"\n" | |
) | |
gts.take(15).foreach(println) |
data = [{"articles": [[2010, 6], [2011, 10], [2012, 11], [2013, 23], [2006, 1]], | |
"total": 51, "name": "The Journal of neuroscience"}, | |
{"articles": [[2008, 1], [2010, 3], [2011, 4], [2012, 17], [2013, 10]], | |
"total": 35, "name": "Nature neuroscience"}] | |
function truncate(str, maxLength, suffix) { | |
if(str.length > maxLength) { | |
str = str.substring(0, maxLength + 1); | |
str = str.substring(0, Math.min(str.length, str.lastIndexOf(" "))); | |
str = str + suffix; |
import java.io.PrintWriter | |
import cascading.stats.CascadingStats | |
import com.twitter.scalding._ | |
/** | |
* Writes all custom counters into a tsv file args("counters-file") if this property is set. | |
* | |
* Output format: | |
* counter_name value |
import java.io.ByteArrayOutputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.Properties; | |
import org.apache.avro.io.BinaryDecoder; | |
import org.apache.avro.io.BinaryEncoder; | |
import org.apache.avro.io.DecoderFactory; |