Skip to content

Instantly share code, notes, and snippets.

View imtipu's full-sized avatar
👨‍🏭
Always at work...

Borhan Tipu imtipu

👨‍🏭
Always at work...
View GitHub Profile
@imtipu
imtipu / open_with_pycharm.bat
Created October 11, 2021 23:28
Open With PyCharm Context Menu
@echo off
SET PyCharmPath=C:\Users\YOUR_USER_NAME\AppData\Local\JetBrains\Toolbox\apps\PyCharm-P\ch-0\212.5284.44\bin\pycharm64.exe
echo Adding file entries
@reg add "HKEY_CLASSES_ROOT\*\shell\PyCharm" /t REG_SZ /v "" /d "Open in PyCharm" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\PyCharm" /t REG_EXPAND_SZ /v "Icon" /d "%PyCharmPath%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\PyCharm\command" /t REG_SZ /v "" /d "%PyCharmPath% \"%%1\"" /f
echo Adding within a folder entries
import hmac
import hashlib
import base64
from django.views.decorators.csrf import csrf_exempt
from django.conf import settings
from rest_framework.response import Response
from rest_framework.decorators import api_view
from rest_framework import status