This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Proxy setting | |
ProxyRequests off | |
ProxyPreserveHost On | |
ProxyPass /rest http://dev2.webintensive.com/u/sanchi/EmailCampaign | |
ProxyPassReverse /rest http://dev2.webintensive.com/u/sanchi/EmailCampaign | |
ProxyPass / http://localhost:9000/ | |
ProxyPassReverse / http://localhost:9000/ | |
## Commands | |
gedit /etc/apache2/sites-available/default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://help.ubuntu.com/community/Java | |
http://askubuntu.com/questions/121654/how-to-set-default-java-version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo update-alternatives --list java |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
keytool -genkey -alias snapdeal -keyalg RSA -keystore $TOMCAT_HOME/bin/snapdeal.keystore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.voidness.httpproxy; | |
import java.io.IOException; | |
import java.io.OutputStreamWriter; | |
import java.net.URLDecoder; | |
import java.util.Enumeration; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Add SSH public key to Bitbucket | |
2. Clone SSH GIT repository to workspace | |
3. Add Bitbucket, SSH publish plugin to Jenkins | |
4. Add Public to Jenkins admin console | |
5. Add all the .ssh/ keys to /var/lib/jenkins/.ssh and chown with jenkins server user | |
6. Add SSH format GIT repo to the job |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://github.com/apache/spark/blob/master/examples/src/main/java/org/apache/spark/examples/sql/JavaSparkSQL.java | |
http://www.javaworld.com/article/2972863/big-data/open-source-java-projects-apache-spark.html?page=2 | |
http://blog.insightdatalabs.com/spark-cluster-step-by-step/ | |
http://koeninger.github.io/spark-cassandra-example/#33 | |
https://www.codementor.io/data-science/tutorial/installing-cassandra-spark-linux-debian-ubuntu-14 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<plugins> | |
<plugin> | |
<artifactId>maven-assembly-plugin</artifactId> | |
<configuration> | |
<archive> | |
<manifest> | |
<mainClass>fully.qualified.MainClass</mainClass> | |
</manifest> | |
</archive> | |
<descriptorRefs> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://academy.datastax.com/courses/ds220-data-modeling?page=1 | |
https://datastax.github.io/java-driver/manual/pooling/ | |
http://stackoverflow.com/questions/24949676/difference-between-partition-key-composite-key-and-clustering-key-in-cassandra | |
http://wiki.apache.org/cassandra/ArticlesAndPresentations | |
http://www.slideshare.net/jaykumarpatel/cassandra-data-modeling-best-practices | |
## Spark | |
https://gist.github.com/jacek-lewandowski/278bfc936ca990bee35a | |
https://github.com/datastax/spark-cassandra-connector/blob/master/doc/7_java_api.md | |
https://dzone.com/articles/sparkcassandra-stack-perform |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; #63 Group a sequence (implement group by) | |
;(group-by #(> % 5) [1 3 6 8]) | |
;=> {false [1 3], true [6 8]} | |
;(group-by #(mod % 2) [1 3 6 8]) | |
;=> {1 [1 3], 0 [6 8]} | |
(fn [f col] | |
(reduce #(update-in | |
%1 | |
[(f %2)] |
OlderNewer