Skip to content

Instantly share code, notes, and snippets.

@xozzslip
xozzslip / status.json
Created March 17, 2022 11:57
fdbcli status json
Using cluster file `/etc/foundationdb/fdb.cluster'.
The database is unavailable; type `status' for more information.
Welcome to the fdbcli. For help, type `help'.
fdb> status json
{
"client" : {
"cluster_file" : {
@xozzslip
xozzslip / models.py
Created October 2, 2016 16:02
Octoberweb test task
from datetime import date
from django.db import models
class EventQuerySet(models.QuerySet):
def current(self):
one_day_events = models.Q(date=date.today(), date_end=None)
several_day_events = models.Q(date__lte=date.today(), date_end__gte=date.today())
return self.filter(one_day_events | several_day_events)