Skip to content

Instantly share code, notes, and snippets.

$ cd /tmp
$ python3 -m venv venvtest
$ cd venvtest
$ source bin/activate
$ pip install ipython==7.13.0
...
Successfully installed appnope-0.1.0 backcall-0.1.0 decorator-4.4.2 ipython-7.13.0 ipython-genutils-0.2.0 jedi-0.17.0 parso-0.7.0 pexpect-4.8.0 pickleshare-0.7.5 prompt-toolkit-3.0.5 ptyprocess-0.6.0 pygments-2.6.1 six-1.14.0 traitlets-4.3.3 wcwidth-0.1.9
$ pip install Django==2.2.12
...
Successfully installed Django-2.2.12 pytz-2020.1 sqlparse-0.3.1

Keybase proof

I hereby claim:

  • I am trbs on github.
  • I am trbs (https://keybase.io/trbs) on keybase.
  • I have a public key ASBsn-QakdzI5PBqIolpqdeSmxWG1rBtBZeGzu8hv7nFhAo

To claim this, I am signing this object:

$ ./restic prune
counting files in repo
building new index for repo
unable to list pack 76e13aed: Load at -2048 failed: seek /tmp/restic-repo/data/76/76e13aed783ce5554bff0f1d4aa91ec1e431161cd249beb3a9efc59bd27e0c6a: invalid argument
[0:02] 100.00% 2363 / 2363 files
repository contains 2362 packs (1810898 blobs) with 10.189 GiB bytes
processed 1810899 blobs: 1 duplicate blobs, 359B duplicate
load all snapshots
find data that is still in use for 75 snapshots
[5:16] 100.00% 75 / 75 snapshots
using parent snapshot ec6a4a9c
scan [/tmp/testtree]
snapshot dc0c30df saved
# sawtooth(-core) as a more monolytic project
$ pip install sawtooth (alt: pip install sawtooth-core)
sawtooth (potentially add/lose .core here)
sawtooth.cli (alt: sawtooth.core.cli)
sawtooth.gossip (alt: sawtooth.core.gossip)
sawtooth.ledger (alt: sawtooth.core.ledger)
sawtooth.journal (alt: sawtooth.core.journal)
sawtooth.validator
diff --git a/runtests.py b/runtests.py
index 08c33ea..2e55864 100755
--- a/runtests.py
+++ b/runtests.py
@@ -27,9 +27,13 @@ def get_runner(settings_module):
'''
os.environ['DJANGO_SETTINGS_MODULE'] = settings_module
+ import django
from django.test.utils import get_runner
from raven import Client
client = Client('fill_in_your_dsn_here')
from cdecimal import Decimal
def test():
1 / 0
try:
@trbs
trbs / gist:1bccb30f6aed34894c17
Created August 12, 2014 11:37
Patch-2 IntegrityError, foreign key issue when receiving messages #1146
diff --git a/src/sentry/manager.py b/src/sentry/manager.py
index 4fb9ca7..0079c87 100644
--- a/src/sentry/manager.py
+++ b/src/sentry/manager.py
@@ -326,7 +326,6 @@ class GroupManager(BaseManager, ChartMixin):
return self.save_data(project, data)
- @transaction.commit_on_success
def save_data(self, project, data, raw=False):
@trbs
trbs / gist:658cbbc7f569a5bcb01b
Created August 12, 2014 11:31
Patch-1 IntegrityError, foreign key issue when receiving messages #1146
diff --git a/src/sentry/manager.py b/src/sentry/manager.py
index 4fb9ca7..34d0998 100644
--- a/src/sentry/manager.py
+++ b/src/sentry/manager.py
@@ -453,13 +453,13 @@ class GroupManager(BaseManager, ChartMixin):
is_sample=is_sample
)
- if getattr(settings, 'SENTRY_INDEX_SEARCH', settings.SENTRY_USE_SEARCH):
- index_event.delay(event)