Need to get IP ranges for whitelisting AWS? Here is a handy service.
https://ip-ranges.amazonaws.com/ip-ranges.json
I wanted a place where I can post technical articles only. This is the place to find out my tips and tricks for being a Java web applications developer. I hope it helps you.
Saturday, April 30, 2016
Thursday, April 21, 2016
Installing Amazon Web Service Plugin for ElasticSearch
https://www.elastic.co/guide/en/elasticsearch/plugins/current/cloud-aws.html
The Amazon Web Service (AWS) Cloud plugin uses the AWS API for unicast discovery, and adds support for using S3 as a repository for Snapshot/Restore.
Installationedit
This plugin can be installed using the plugin manager:
sudo bin/plugin install cloud-aws
Trying https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/repository-s3/2.3.1/repository-s3-2.3.1.zip ...
ERROR: failed to download out of all possible locations..., use --verbose to get detailed information
# bin/plugin install cloud-aws
-> Installing cloud-aws...
Trying https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/cloud-aws/2.3.1/cloud-aws-2.3.1.zip ...
Downloading .............................................................................................................................................................................................................................................................................................................................................DONE
Verifying https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/cloud-aws/2.3.1/cloud-aws-2.3.1.zip checksums if available ...
Downloading .DONE
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: plugin requires additional permissions @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
* java.lang.RuntimePermission getClassLoader
See http://docs.oracle.com/javase/8/docs/technotes/guides/security/permissions.html
for descriptions of what these permissions allow and the associated risks.
Continue with installation? [y/N]y
Installed cloud-aws into /usr/share/elasticsearch/plugins/cloud-aws
# service elasticsearch restart
[....] Stopping Elasticsearch Server:
Tuesday, April 19, 2016
Spring Boot CORS Not Working?
For the life of me I could not get the CORS Configuration for Spring Boot to write the needed headers to the response. I wrote my own filter that could read the CORS Config and used it in WebMVC Configuration to solve it.
Saturday, April 16, 2016
Monday, April 11, 2016
Rsync Without Git
Just add an explicit exclude for .git:
rsync -a --exclude='.git/' --include='*.c' --include='*.sh' --include='*/' --exclude='*' ~/c/ ~/Dropbox/Public/c
Another option is to create
~/.cvsignore
containing the following line along with any other directories you'd like to exclude:.git/
Subscribe to:
Posts (Atom)