(Create a symlink pytest for pytest)
pytest [options] [file_or_dir] [file_or_dir] ...
Help:
| # refactor of https://lukeplant.me.uk/blog/posts/double-checked-locking-with-django-orm/ | |
| # untested | |
| def double_checked_lock_iterator(queryset): | |
| for item_pk in queryset.values_list("pk", flat=True): | |
| with transaction.atomic(): | |
| try: | |
| yield queryset.select_for_update(skip_locked=True).get(id=item_pk) | |
| except queryset.model.DoesNotExist: | |
| pass |
| from django.conf import settings as django_settings | |
| class Settings(object): | |
| DEFAULTS = { | |
| # Define any default settings in here. | |
| } | |
| def __dir__(self): | |
| return dir(django_settings) |
| :: | |
| :: Aliases for windows command line | |
| :: | |
| :: Installation: | |
| :: | |
| :: - create a folder for your aliases (eg: ```c:\cmd-aliases```) | |
| :: - add that folder to your PATH variable | |
| :: - save this script as setalias.cmd on that folder | |
| :: - run "alias" to see usage | |
| :: |
| /** | |
| * chrome-remote-interface: JavaScript API, обеспечивающее простую абстракцию для команд и уведомлений | |
| * | |
| * chrome-launcher: позволяет нам запускать Chrome из Node.js кроссплаторменно | |
| */ | |
| const chromeLauncher = require('chrome-launcher'); | |
| const CDP = require('chrome-remote-interface'); | |
| const file = require('fs'); |
| —– BEGIN LICENSE —– | |
| TwitterInc | |
| 200 User License | |
| EA7E-890007 | |
| 1D77F72E 390CDD93 4DCBA022 FAF60790 | |
| 61AA12C0 A37081C5 D0316412 4584D136 | |
| 94D7F7D4 95BC8C1C 527DA828 560BB037 | |
| D1EDDD8C AE7B379F 50C9D69D B35179EF | |
| 2FE898C4 8E4277A8 555CE714 E1FB0E43 | |
| D5D52613 C3D12E98 BC49967F 7652EED2 |
| Version | Platform | Offset | Change |
|---------|----------|---------|----------|
| 3093 | Win x64 | 0xF0A8B | 85 -> 3B |
| 3094 | Win x64 | 0xF0A8B | 85 -> 3B |
| 3095 | Win x64 | 0xF0BDF | 85 -> 3B |
| 3100 | Win x64 | 0xE888D | F8 -> E0 |
| 3101 | Win x64 | 0xE7721 | F8 -> E0 |
| 3102 | Win x64 | 0xE849D | F8 -> E0 |
| * { | |
| font-size: 12pt; | |
| font-family: monospace; | |
| font-weight: normal; | |
| font-style: normal; | |
| text-decoration: none; | |
| color: black; | |
| cursor: default; | |
| } |