Skip to content

Instantly share code, notes, and snippets.

View jcrtr's full-sized avatar
🎆
Focusing

John Carter jcrtr

🎆
Focusing
View GitHub Profile
vless://[email protected]:443?type=tcp&encryption=none&security=reality&pbk=KHZQsCYFOZwjmONn39np08QV0F4YQwMZs2cAtU_CqUg&fp=random&sni=sun6-22.userapi.com&sid=12&spx=%2F&flow=xtls-rprx-vision#ru1fw5ya
vless://[email protected]:443?type=tcp&encryption=none&security=reality&pbk=KHZQsCYFOZwjmONn39np08QV0F4YQwMZs2cAtU_CqUg&fp=random&sni=pptest.userapi.com&sid=12&spx=%2F&flow=xtls-rprx-vision#ru1fw5ya
vless://[email protected]:443?type=tcp&encryption=none&security=reality&pbk=KHZQsCYFOZwjmONn39np08QV0F4YQwMZs2cAtU_CqUg&fp=random&sni=sun9-101.userapi.com&sid=12&spx=%2F&flow=xtls-rprx-vision#ru1fw5ya
vless://[email protected]:443?type=tcp&encryption=none&security=reality&pbk=KHZQsCYFOZwjmONn39np08QV0F4YQwMZs2cAtU_CqUg&fp=random&sni=travel.yandex.ru&sid=12&spx=%2F&flow=xtls-rprx-vision#ru1fw5ya
vless://[email protected]:443?type=tcp&encryption=none&security=rea
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
## Enabling Plugins (zsh-autosuggestions & zsh-syntax-highlighting)
- Download zsh-autosuggestions by
`git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions`
- Download zsh-syntax-highlighting by
`git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting`
@jcrtr
jcrtr / fields.py
Created February 10, 2022 06:12
Convert image to WEBP format when saving to ImageField
import io
from PIL import Image
from django.core.files.base import ContentFile
from django.db import models
from django.db.models.fields.files import ImageFieldFile
class WEBPFieldFile(ImageFieldFile):
@jcrtr
jcrtr / admin.py
Last active February 10, 2022 06:13
UserCustomModels Django
from accounts.models import UserModel
import logging
class MyAuthBackend(object):
def authenticate(self, email, password):
try:
user = UserModel.objects.get(email=email)
if user.check_password(password):
return user