Skip to content

Instantly share code, notes, and snippets.

Avatar

Paweł Krawczyk kravietz

View GitHub Profile
@kravietz
kravietz / preload.py
Last active Jun 26, 2019
Resource hints (dns-prefetch, preload, prerender etc) middleware for Django. Includes automated resource discovery.
View preload.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
from urllib.parse import urlparse
import codecs
from django.conf import settings
from django.utils.html_parser import HTMLParser
__author__ = 'Paweł Krawczyk'
@kravietz
kravietz / sitemap-split.py
Created Feb 19, 2015
XML sitemap split into 50k chunks
View sitemap-split.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
from __future__ import print_function
from gzip import GzipFile
import gzip
import sys
__author__ = 'Paweł Krawczyk'
@kravietz
kravietz / keybase.md
Created Sep 18, 2014
Keybase verification
View keybase.md

Keybase proof

I hereby claim:

  • I am kravietz on github.
  • I am kravietz (https://keybase.io/kravietz) on keybase.
  • I have a public key whose fingerprint is 2F69 FF2E 1912 182D A607 7E31 4FF8 8B09 C1E6 4B10

To claim this, I am signing this object:

View gist:ca8083869942db55f727
Verifying myself: My Bitcoin username is +kravietz. https://onename.io/kravietz