Skip to content

Instantly share code, notes, and snippets.

View gimntut's full-sized avatar

Гимаев Наиль gimntut

View GitHub Profile
@gimntut
gimntut / markdown.css
Last active August 29, 2015 14:28 — forked from imjasonh/markdown.css
Render Markdown as unrendered Markdown (see http://jsbin.com/huwosomawo)
* {
font-size: 12pt;
font-family: monospace;
font-weight: normal;
font-style: normal;
text-decoration: none;
color: black;
cursor: default;
}
@gimntut
gimntut / Sublime Text 3 Crack.md
Last active September 14, 2017 02:57 — forked from MehmetKursat/Sublime Text 3 Crack Tutorial.md
Sublime Text 3 Crack Tutorial

Win x64

| 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 |
@gimntut
gimntut / gist:884f079de8abeffe279fde3e64171b73
Last active May 7, 2018 05:50
sublime text 3 - license
—– 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
@gimntut
gimntut / headless-chrome-pdf-async.js
Created March 3, 2018 19:19 — forked from monochromer/headless-chrome-pdf-async.js
Print pdf with headless chrome
/**
* 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');
@gimntut
gimntut / alias.cmd
Created February 27, 2019 04:15 — forked from benjamine/alias.cmd
Aliases for windows command line
::
:: 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
::
@gimntut
gimntut / conf.py
Created July 22, 2020 19:03 — forked from SmileyChris/conf.py
Django application specific settings configuration
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)
@gimntut
gimntut / pytest.md
Created November 8, 2020 15:40 — forked from SuzanaK/pytest.md
pytest cheat sheet

Usage

(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