Skip to content

Instantly share code, notes, and snippets.

View guillain's full-sized avatar

Guillain guillain

View GitHub Profile
@guillain
guillain / gist:0b9554f851e64ae808af7a61a3111fcf
Created October 28, 2018 16:03 — forked from drorata/gist:146ce50807d16fd4a6aa
Minimal Working example of Elasticsearch scrolling using Python client
# Initialize the scroll
page = es.search(
index = 'yourIndex',
doc_type = 'yourType',
scroll = '2m',
search_type = 'scan',
size = 1000,
body = {
# Your query's body
})
@guillain
guillain / email_notify.py
Created August 5, 2017 22:36 — forked from jriguera/email_notify.py
Email from Python with Jinja2
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Fork from jriguera/email_notify.py
# Url: https://gist.github.com/jriguera/f3191528b7676bd60af5
# Thanks to Jriguera!!!
# Python 3 and compatibility with Python 2
from __future__ import unicode_literals, print_function