Skip to content

Instantly share code, notes, and snippets.

View manurtinez's full-sized avatar
🐢
Existing

Manu Martinez manurtinez

🐢
Existing
View GitHub Profile
@manurtinez
manurtinez / .zshrc
Created March 8, 2023 22:36
Config manjaro zsh
# Use powerline
USE_POWERLINE="true"
# Source manjaro-zsh-configuration
if [[ -e /usr/share/zsh/manjaro-zsh-config ]]; then
source /usr/share/zsh/manjaro-zsh-config
fi
# Use manjaro zsh prompt
if [[ -e /usr/share/zsh/manjaro-zsh-prompt ]]; then
source /usr/share/zsh/manjaro-zsh-prompt
fi
@manurtinez
manurtinez / intentos_de_aggregation.java
Created September 1, 2021 21:56
Estos sn mis intentos (fallidos) de hacer aggregations en spring data para elastic search
// SearchRequest searchRequest = new SearchRequest("purchase");
// List<BucketOrder> bucketOrderList = new ArrayList<>();
// bucketOrderList.add(BucketOrder.aggregation("_count", true));
// SearchSourceBuilder searchSourceBuilder = new SearchSourceBuilder().size(0);
// searchSourceBuilder
// .aggregation(AggregationBuilders.terms("purchase").field("deliveryMethod").order(bucketOrderList));
// searchRequest.source(searchSourceBuilder);
// SearchResponse res1 = client.search(searchRequest, RequestOptions.DEFAULT);
// Terms terms = res1.getAggregations().get("purchase");
// System.out.println(terms);

Keybase proof

I hereby claim:

  • I am manurtinez on github.
  • I am manurtinez (https://keybase.io/manurtinez) on keybase.
  • I have a public key ASBgC09mSHCBJvex4nLQ9g421Upp5lO3M4Hgyt9MCxwj1Ao

To claim this, I am signing this object: