Skip to content

Instantly share code, notes, and snippets.

Ilya Baryshev coagulant

  • Mybook
  • Moscow
Block or report user

Report or block coagulant

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
View pip-compile-novine.log
(tmp-ae8673fe153e8e4f) ➜ tmp-ae8673fe153e8e4f /Users/prophet/.envs/tmp-ae8673fe153e8e4f/bin/pip-compile -r -v
Using indexes:
https://pypi.python.org/simple
ROUND 1
Current constraints:
celery
librabbitmq
Finding the best candidates:
View pip-compile-vine.log
(tmp-ae8673fe153e8e4f) ➜ tmp-ae8673fe153e8e4f /Users/prophet/.envs/tmp-ae8673fe153e8e4f/bin/pip-compile -r -v
Using indexes:
https://pypi.python.org/simple
ROUND 1
Current constraints:
celery
librabbitmq
Finding the best candidates:
View slugify-variants.py
"""Django 1.8.X"""
def slugify(value):
"""
Converts to ASCII. Converts spaces to hyphens. Removes characters that
aren't alphanumerics, underscores, or hyphens. Converts to lowercase.
Also strips leading and trailing whitespace.
"""
value = force_text(value)
value = unicodedata.normalize('NFKD', value).encode('ascii', 'ignore').decode('ascii')
value = re.sub('[^\w\s-]', '', value).strip().lower()
View thawte SSL CA - G2
-----BEGIN CERTIFICATE-----
MIIEsjCCA5qgAwIBAgIQFofWiG3iMAaFIz2/Eb9llzANBgkqhkiG9w0BAQsFADCBqTELMAkGA1UE
BhMCVVMxFTATBgNVBAoTDHRoYXd0ZSwgSW5jLjEoMCYGA1UECxMfQ2VydGlmaWNhdGlvbiBTZXJ2
aWNlcyBEaXZpc2lvbjE4MDYGA1UECxMvKGMpIDIwMDYgdGhhd3RlLCBJbmMuIC0gRm9yIGF1dGhv
cml6ZWQgdXNlIG9ubHkxHzAdBgNVBAMTFnRoYXd0ZSBQcmltYXJ5IFJvb3QgQ0EwHhcNMTMxMDMx
MDAwMDAwWhcNMjMxMDMwMjM1OTU5WjBBMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMdGhhd3RlLCBJ
bmMuMRswGQYDVQQDExJ0aGF3dGUgU1NMIENBIC0gRzIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAw
ggEKAoIBAQCy/Ab7BJPS6lkgO0SFl1I55xDweuCwlEDaRvgMKLu5zmA4P9LYEUIbka1J7o/H3mze
N2/9iyA8bed009zVJIhBgInuNr7E1b6NUxOq5KW4kwq+7NrNPNQyVu/QTqC4l7s5UB5uZcP9ss7g
WalICcb+vq78PjuBIJeLj0bfYGQHdbsbhjifR3s0zqHRl6122J+3Jtt5gDZI8sU3+NkyrnykU4HH
View gist:369f808a94821eec0323
_______________________________________________________________________________________ ReporterTest.test_reporter _______________________________________________________________________________________
self = <tests.test_api.ReporterTest testMethod=test_reporter>
def test_reporter(self):
sh.coverage('run', 'runtests.py')
> assert self.cover.get_coverage() == [{
'source': '# coding: utf-8\n\n\ndef hello():\n print(\'world\')\n\n\nclass Foo(object):\n """ Bar """\n\n\ndef baz():\n print(\'this is not tested\')',
'name': 'project.py',
'coverage': [None, None, None, 1, 1, None, None, 1, None, None, None, 1, 0]}, {
View ticket-23718-bisect.log
git bisect start
# bad: [d92b08536d873c0966e8192e64d8e8bd9de79ebe] [1.7.x] Bump version number for 1.7 release.
git bisect bad d92b08536d873c0966e8192e64d8e8bd9de79ebe
# good: [7c08f4c6351f7e53a01ff800d8a61f19ca961b29] Bump everything for 1.3.
git bisect good 7c08f4c6351f7e53a01ff800d8a61f19ca961b29
# bad: [63c52dcbcdd47cb1a47662846dfe4e1812d2444c] Fixed #20008 -- Removed trailing slash in Wikipedia link
git bisect bad 63c52dcbcdd47cb1a47662846dfe4e1812d2444c
# bad: [f29234167ad0193f35360023c65212c39cf87d1b] Merge pull request #104 from samuraisam/17138-html5-remove-summary
git bisect bad f29234167ad0193f35360023c65212c39cf87d1b
# good: [a82488bf4b57c1bc917f8ed79eac7a99d5e26bff] Fixed #16966 -- Stopped CachedStaticFilesStorage from choking on querystrings and path fragments.
View ticket-23718-bisect.log
(tmp-b091c70f6774b4f9)➜ django git:(master) ✗ git bisect start
(tmp-b091c70f6774b4f9)➜ django git:(master) ✗ git bisect good 1.3
(tmp-b091c70f6774b4f9)➜ django git:(master) ✗ git bisect bad 1.4
Bisecting: 844 revisions left to test after this (roughly 10 steps)
[b1c3174cfaf2e850da86c7649f64bf62f60046dc] Removed unused code from admindocs app now that it supports reversing URLs.
(tmp-b091c70f6774b4f9)➜ django git:(b1c3174) ✗ git bisect run python /Users/prophet/work/forks/test_mirror/testmirror/manage.py test testapp
running python /Users/prophet/work/forks/test_mirror/testmirror/manage.py test testapp
Creating test database for alias 'default'...
.
----------------------------------------------------------------------
View keybase.md

Keybase proof

I hereby claim:

  • I am coagulant on github.
  • I am coagulant (https://keybase.io/coagulant) on keybase.
  • I have a public key whose fingerprint is FB49 D279 F794 0918 4D53 9783 1931 001D 2484 7EC7

To claim this, I am signing this object:

@coagulant
coagulant / redmine_plugins
Created Apr 25, 2014
List of cool Redmine plugins in use in Futurecolors
View redmine_plugins
Due Date Reminder plugin
Issue Hot Buttons Plugin plugin
Parent Ticket Fields plugin
Redmine Select2 plugin
Redmine Auto Watch plugin
@coagulant
coagulant / FakeQuerySet.py
Last active Dec 21, 2015 — forked from zmcghee/FakeQuerySet.py
items should not be mutable kwarg
View FakeQuerySet.py
from django.db.models.query import EmptyQuerySet
class FakeQuerySet(EmptyQuerySet):
"""Turn a list into a Django QuerySet... kind of."""
def __init__(self, model=None, query=None, using=None, items=None):
super(FakeQuerySet, self).__init__(model, query, using)
self._result_cache = items or []
def count(self):
return len(self)
You can’t perform that action at this time.