Skip to content

Instantly share code, notes, and snippets.

https://open.spotify.com/user/spotify/playlist/37i9dQZEVXcNJU19SG7l6x?si=gBCX0iqHQNSJLhWtVNMBIA

Keybase proof

I hereby claim:

  • I am pitsevich on github.
  • I am glebp (https://keybase.io/glebp) on keybase.
  • I have a public key ASBPZCnUJg2XE8kRS2sA9KEPL_n1KcoORfOhYDQf-np9Swo

To claim this, I am signing this object:

sudo echo "deb http://www.rabbitmq.com/debian/ testing main" | tee /etc/apt/sources.list.d/rabbitmq.list > /dev/null
cd /tmp
wget -O rabbitmq-signing-key-public.asc http://www.rabbitmq.com/rabbitmq-signing-key-public.asc
sudo apt-key add rabbitmq-signing-key-public.asc
sudo apt-get update
@property
def _dict(self):
from django.db.models.query_utils import DeferredAttribute
exclude = [f.name for f in self._meta.fields if
isinstance(self.__class__.__dict__.get(f.attname),
DeferredAttribute)]
return model_to_dict(self, fields=[field.name for field in
self._meta.fields], exclude=exclude)
#!/usr/bin/env python
# _*_ coding: UTF-8 _*_
"""Split a PDF file or rearrange its pages into a new PDF file.
This is a module for reading a PDF file, splitting it into single
pages and reassembling selected single pages or page ranges into
a new PDF document stored into a new file.
This module can be considered a sample tool for the excellent