brew install stunnel
brew install socat
Your stunnel
config file in client (/etc/stunnel/stunnel.conf
, /usr/local/etc/stunnel/stunnel.conf
) :
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
package com.githib.gist.reza_sameei.comparingiterator; | |
import java.util.*; | |
public class ComparingIterator<L, R> implements Iterator<ComparingIterator.Pair<L,R>>{ | |
public static interface Comparator<L, R> { | |
public int compare(L l, R r); | |
} |
To remove a submodule you need to:
$ ssh -A vm
$ git config --global url."[email protected]:".insteadOf "https://github.com/"
$ cat ~/.gitconfig
[url "[email protected]:"]
insteadOf = https://github.com/
$ go get github.com/private/repo && echo Success!
Success!
# A Self-Documenting Makefile: http://marmelab.com/blog/2016/02/29/auto-documented-makefile.html | |
OS = $(shell uname) | |
# Build variables | |
BUILD_DIR ?= build | |
VERSION ?= $(shell git describe --tags --exact-match 2>/dev/null || git symbolic-ref -q --short HEAD) | |
COMMIT_HASH ?= $(shell git rev-parse --short HEAD 2>/dev/null) | |
BUILD_DATE ?= $(shell date +%FT%T%z) | |
LDFLAGS += -X worker.version=${VERSION} -X worker.commitHash=${COMMIT_HASH} -X worker.buildDate=${BUILD_DATE} |
$SPARK_HOME/sbin/start-master.sh --host $HOST | |
# OR | |
$SPARK_HOME/bin/spark-class org.apache.spark.deploy.master.Master --port 7077 --webui-port 8080 --host $HOST | |
# in $SPARK_HOME/conf/spark-env.sh | |
JAVA_HOME=/path/to/jdk8 | |
$SPARK_HOME/sbin/start-history-server.sh |
# http://2min2code.com/articles/log4j_intro/rolling_file_on_size_prop | |
# Appender | |
log4j.appender.APPENDER_NAME=APPENDER_CLASS | |
log4j.appender.APPENDER_NAME.PROP_KEY=PROP_VAL | |
# Console Appender | |
log4j.appender.console=org.apache.log4j.ConsoleAppender | |
log4j.appender.console.layout=org.apache.log4j.PatternLayout |