Skip to content

Instantly share code, notes, and snippets.

Stefano esseti

Block or report user

Report or block esseti

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
esseti / base.html
Created May 28, 2019
Clair report json to html
View base.html
<!doctype html>
<html lang="en">
<!-- Required meta tags -->
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1, shrink-to-fit=no" name="viewport">
<!-- Bootstrap CSS -->
<link crossorigin="anonymous" href=""
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" rel="stylesheet">
esseti / checkbox.html
Created Mar 30, 2018
Beautiful widget for django multiple select
View checkbox.html
{% with %}
{% for group, options, index in widget.optgroups %}
{% for option in options %}
{% with widget=option %}
{% include widget.template_name%}
{% endwith %}
{% endfor %}
{% endfor %}
{% endwith %}
esseti /
Last active Feb 2, 2017
Barman Notification on Slack
#this should be run in a cron task every day or week.
RESULT="$(barman check all)"
RESULT2="$(barman list-backup all)"
PAYLOAD='payload={"channel": "<SPECIFY THE CHANNEL>","username": "barman","icon_emoji": ":robot_face:","color": "info","fields": [{"title": "Check","value": "'${RESULT}'","short": False},{"title": "list backup","value": "'${RESULT2}'","short": False}],}'
curl -X POST --data "$PAYLOAD"<YOUR URL>
View gist:b04b69b73213f12af0ecb92b9c22a01d
### Keybase proof
I hereby claim:
* I am esseti on github.
* I am esseti ( on keybase.
* I have a public key whose fingerprint is 5D6C E305 DE5A 324A CB4C BD4A 7533 CEB0 E3B9 6842
To claim this, I am signing this object:
document = chino.documents.detail(document_id)
print document.content.to_json() #print content, to_json() util function of the libraries
content = {
"physician_id": "testId",
"patient_birth_date": "1937-06-19",
"observation": "The patient was ok.",
"visit_date": "2015-02-19T16:39:47.807000"
document = chino.documents.create(schema_id, content)
document_id = document._id
structure = [{
"name": "physician_id", "type": "string", "indexed":True
"name": "patient_birth_date","type": "date", "indexed":True
"name": "observation","type": "string","indexed":True
"name": "visit_date","type": "datetime","indexed":True
repository = chino.repositories.create('description')
repository_id = repository._id
#step 1: install library
(sudo) pip install git+
#step 0 create chino wrapper
from chino.api import ChinoAPIClient
customer_id="<your custimer id>"
customer_key="<your cutomer key>"
url = ""
chino = ChinoAPIClient(customer_id=customer_id, customer_key=customer_key,url=url)
You can’t perform that action at this time.