Skip to content

Instantly share code, notes, and snippets.

View robints's full-sized avatar
🎯
Focusing

Robin robints

🎯
Focusing
View GitHub Profile
cd ~
sudo apt-get update
sudo apt-get install openjdk-7-jre-headless -y
### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below
# NEW WAY / EASY WAY
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.0.1.deb
sudo dpkg -i elasticsearch-1.0.1.deb

Intro

The plan is to create a pair of executables (ngrok and ngrokd) that are connected with a self-signed SSL cert. Since the client and server executables are paired, you won't be able to use any other ngrok to connect to this ngrokd, and vice versa.

DNS

Add two DNS records: one for the base domain and one for the wildcard domain. For example, if your base domain is domain.com, you'll need a record for that and for *.domain.com.

Different Operating Systems

ext {
versionCode = 2000
versionName = "2.0.0"
minSdkVersion = 15
compileSdkVersion = 23
targetSdkVersion = 23
buildToolsVersion = '23.0.3'
compiles = [supportAppCompat : "com.android.support:appcompat-v7:23.4.0",
import javax.imageio.ImageIO
import java.awt.image.BufferedImage
private int toGray(color) {
def a = (color & 0xFF000000)
def r = (color & 0x00FF0000) >> 16
def g = (color & 0x0000FF00) >> 8
def b = (color & 0x000000FF)
def c = (int)((2.0*r + 4.0*g + b) / 7.0) //
/*
* Copyright 2013 Chris Banes
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
apply plugin: 'checkstyle'
checkstyle {
configFile rootProject.file('checkstyle.xml')
showViolations true
}
android.libraryVariants.all { variant ->
def name = variant.buildType.name
ext {
versionCode = 2000
versionName = "2.0.0"
minSdkVersion = 15
compileSdkVersion = 23
targetSdkVersion = 23
buildToolsVersion = '23.0.3'
// Google
@robints
robints / setup.md
Created November 23, 2016 08:15 — forked from xrstf/setup.md
Nutch 2.3 + ElasticSearch 1.4 + HBase 0.94 Setup

Info

This guide sets up a non-clustered Nutch crawler, which stores its data via HBase. We will not learn how to setup Hadoop et al., but just the bare minimum to crawl and index websites on a single machine.

Terms

  • Nutch - the crawler (fetches and parses websites)
  • HBase - filesystem storage for Nutch (Hadoop component, basically)
apply plugin: 'com.android.library'
apply plugin: 'com.jfrog.artifactory'
apply plugin: 'maven-publish'
def packageName = "${groupId}"
def libraryVersion = "${version}"
def libraryName = "${artifactId}"
def artifactorySnapshotContextUrl = "${artifactorySnapshotContextUrl}"
def artifactoyReleaseContenxtUrl = "${artifactoyReleaseContenxtUrl}"
def artifactoryRepoKey = "${artifactoryRepoKey}"