Skip to content

Instantly share code, notes, and snippets.

View rafaelgontijo's full-sized avatar

Rafael Gontijo Winter rafaelgontijo

View GitHub Profile
@rafaelgontijo
rafaelgontijo / models.py
Last active August 21, 2019 21:26 — forked from carruda1980/card
from django.db import models
from utils.models import DatedAbstractModel
class Card(DatedAbstractModel):
title = models.CharField(max_length=100)
deletedon = models.BooleanField(default=False)
class Meta:
verbose_name = 'Card'
@rafaelgontijo
rafaelgontijo / elasticsearch.md
Last active May 24, 2019 14:16 — forked from dominicsayers/elasticsearch.md
Configuring ElasticSearch to use less memory

What I actually did

/etc/security/limits.conf

elasticsearch hard memlock 100000

/etc/default/elasticsearch