Skip to content

Instantly share code, notes, and snippets.

@fornarat
fornarat / docker-installer.sh
Created January 31, 2018 17:20
cmd docker installer
#!/bin/bash
# cmd docker installer
apt-get update
apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
#!/bin/bash
# Free O'Reilly books and convenient script to download'em all.
# For other formats, change the extension accordingly (.epub and .mobi)
# /*
# $.each($('a[href]'), function(i, e){console.log(e["href"])});
# */
# programming
-------------
https://thehackernews.com/ -->https://isc.sans.edu/
58bb5cc7766fa31b75ddd471 ---->58d1715b766fa31b75340b05
2017-03-05T00:33:11.966000Z ---->2017-03-21T18:30:51.040000Z
http://thehackernews.com/2015/10/iphone-lockscreen-hack.html ---->https://isc.sans.edu/newssummary.html#1022879
-------------
https://trustwave.com/Resources/SpiderLabs-Blog/ -->http://bleepingcomputer.com/
58c836d9766fa31b7510334b ---->58c88b42766fa31b75117a02
2017-03-14T18:30:49.229000Z ---->2017-03-15T00:30:58.121000Z
https://trustwave.com/Resources/SpiderLabs-Blog/Microsoft-Patch-Tuesday,-March-2017/?page=1&year=0&month=0 ---->https://www.bleepingcomputer.com/news/microsoft/microsofts-march-2017-patch-tuesday-contains-17-security-updates/
This file has been truncated, but you can view the full file.
/**
the first results were out of reach on the console
format: clusterId, published, link
then: after each cluster, the intersection of the BOWs for all the cleaned_text in these docs
**/
....
180
181
182
############################
### docker manual deploy
## refs
# https://nakkaya.com/2009/04/15/using-netcat-for-file-transfers/
# http://stackoverflow.com/questions/23935141/how-to-copy-docker-images-from-one-host-to-another-without-via-repository
############################
# docker save -o <save image to path> <image name>
docker save -o ferret-image hyperiongray/ferret:$docker_ferret_version
# on the remote server ubuntu@ip-172-31-3-92:
function installDocker {
sudo apt-get -y --no-install-recommends install curl apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://apt.dockerproject.org/gpg | sudo apt-key add -
sudo add-apt-repository "deb https://apt.dockerproject.org/repo/ ubuntu-$(lsb_release -cs) main"
sudo apt-get update
sudo apt-get -y install docker-engine
sudo docker run hello-world
sudo usermod -aG docker $USER
# log out/in manually!
package com.blah.akka;
import akka.NotUsed;
import akka.actor.ActorSystem;
import akka.http.javadsl.Http;
import akka.http.javadsl.model.HttpRequest;
import akka.http.javadsl.model.HttpResponse;
import akka.japi.Pair;
import akka.stream.ActorMaterializer;
import akka.stream.javadsl.*;
package org.deeplearning4j.examples.convolution;
import org.canova.api.records.reader.RecordReader;
import org.canova.api.records.reader.impl.CSVRecordReader;
import org.canova.api.split.FileSplit;
import org.deeplearning4j.datasets.canova.RecordReaderDataSetIterator;
import org.deeplearning4j.datasets.iterator.impl.MnistDataSetIterator;
import org.deeplearning4j.eval.Evaluation;
import org.deeplearning4j.nn.api.OptimizationAlgorithm;
import org.deeplearning4j.nn.conf.MultiLayerConfiguration;
package org.deeplearning4j.examples.convolution;
import org.canova.api.records.reader.RecordReader;
import org.canova.api.records.reader.impl.CSVRecordReader;
import org.canova.api.split.FileSplit;
import org.deeplearning4j.datasets.canova.RecordReaderDataSetIterator;
import org.deeplearning4j.datasets.iterator.impl.MnistDataSetIterator;
import org.deeplearning4j.eval.Evaluation;
import org.deeplearning4j.nn.api.OptimizationAlgorithm;
import org.deeplearning4j.nn.conf.MultiLayerConfiguration;
package org.sparkexample; /** * sample program to read images belonging to a sample Class e.g. Male/Female . Then writing the images to Vector format into a text file. These text files will be used by Apache Spark for Linear SVM analysis */
import javax.imageio.ImageIO;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.awt.image.Raster;
import java.io.*;
import java.nio.file.*;
import java.nio.file.attribute.BasicFileAttributes;
import java.util.ArrayList;