Skip to content

Instantly share code, notes, and snippets.

View Kavan72's full-sized avatar
🦊

Hidan Kavan72

🦊
  • DeftBOX Solutions
  • Ahmedabad, Gujarat, India
View GitHub Profile
@Kavan72
Kavan72 / endpoints.txt
Last active September 15, 2024 16:15
Valorant endpoints
[PlayerFeedback_CheckForSurvey] POST
[PlayerFeedback_SendAnswers] POST
[PatchNotes_GetPatchNotes] GET
[AggStats_Fetch] GET
[AccountXP_GetPlayer] GET https://pd.ap.a.pvp.net/account-xp/v1/players/{user_id}
[Config_FetchConfig] GET https://shared.ap.a.pvp.net/v1/config/ap
@HeshamMeneisi
HeshamMeneisi / docker-compose
Last active September 13, 2023 21:47
Mount S3 as Docker Volume (docker-compose)
# Tip: You can just define all environment variables used here in a
# .env file in the same directory so as not to expose secrets
# docker-compose will load it automatically
services:
s3fs:
privileged: true
image: efrecon/s3fs:1.86
restart: always
environment:
- AWS_S3_BUCKET=${AWS_S3_BUCKET}
@eshaan7
eshaan7 / drf-simplejwt_custom_admin_view.py
Last active November 24, 2022 11:25
Custom admin view for simplejwt that allows bulk deletion, blacklisting and token creation. Issue on GitHub: https://github.com/SimpleJWT/django-rest-framework-simplejwt/issues/258
from django.contrib import admin
from rest_framework_simplejwt.token_blacklist.admin import OutstandingTokenAdmin
from rest_framework_simplejwt.token_blacklist.models import OutstandingToken
from rest_framework_simplejwt.tokens import SlidingToken, RefreshToken
class CustomOutstandingTokenAdmin(OutstandingTokenAdmin):
"""
Custom admin view for OutstandingToken model\n
allows bulk deletion, blacklisting and sliding token creation
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active September 21, 2024 08:06
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname