I hereby claim:
- I am lgueye on github.
- I am lgueye (https://keybase.io/lgueye) on keybase.
- I have a public key whose fingerprint is EDAF 0D41 1CB0 9B76 E7C0 41DE 1D0B 44B6 4D2A 21A5
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
resource "digitalocean_droplet" "consul_server_01_droplet" { | |
image = "${var.droplet_image}" | |
name = "${var.consul_server_role}-01" | |
region = "${var.primary_datacenter_name}" | |
size = "${var.droplet_size}" | |
private_networking = true | |
ssh_keys = ["${var.ssh_fingerprint}"] | |
tags = ["${digitalocean_tag.target_env.name}","${digitalocean_tag.consul_server_role.name}"] | |
} | |
resource "ansible_host" "consul_server_01_droplet" { |
public Map<Integer, List<Map<String, Integer>>> getChange(int id) { | |
Map<Integer, List<Map<String, Integer>>> collecter = Maps.newHashMap(); | |
for (int foo = 0; foo <= 100; foo++) | |
for (int bar = 0; bar <= 14; bar++) | |
for (int qix = 0; qix <= 9; qix++) | |
for (int baz = 0; baz <= 4; baz++) { | |
if (foo + bar * 7 + qix * 11 + baz * 21 == id) { | |
if (collecter.get(id) == null) { |
# delete index (will print an error if 'my_index' doesn't exist, you can safely ignore it) | |
curl -XDELETE 'http://localhost:9200/my_index' | |
# create index with its settings | |
curl -XPOST 'http://localhost:9200/my_index' -d '{ | |
"index.analysis.analyzer.default.type":"custom", | |
"index.analysis.analyzer.default.tokenizer":"standard", | |
"index.analysis.analyzer.default.filter.0":"lowercase", | |
"index.analysis.analyzer.default.filter.1":"asciifolding" | |
}' |
/** | |
* @author [email protected] | |
*/ | |
@Component | |
public class HibernateListenersConfigurer { | |
@Autowired | |
private EntityManagerFactory entityManagerFactory; | |
@Autowired |