Skip to content

Instantly share code, notes, and snippets.

View 0xDeeep's full-sized avatar
🤿
Solana

0xDeep 0xDeeep

🤿
Solana
View GitHub Profile
@0xDeeep
0xDeeep / mesreable doubt
Created February 4, 2021 07:09
Gist made using python code
Is python love me ! :)
@0xDeeep
0xDeeep / discord_multiBot.md
Created February 21, 2021 09:36
Discord Bot

import os import discord import re import random from discord.ext.commands import Bot from requests_html import HTMLSession

TOKEN = os.getenv("TOKEN")

@0xDeeep
0xDeeep / ReminderBot.md
Created February 21, 2021 09:37
DiscordreminderBot
#!/usr/bin/env python
"""
Name: Notifier
Description: A discord bot to handle schedules.
"""
import os
import discord
import asyncio
import sys
import requests
<div class="mt-20 bg-gray-900 w-full p-8 py-20 flex justify-center">
<div>
<h1 class="text-white font-bold text-2xl mb-4 text-center">Search Your 😈 Fantasy?</h1>
<span class="relative">
<input type="text" class="py-2 px-4 rounded-full bg-gray-100 text-lg text-gray-600 font-semibold focus:outline-none hover:bg-gray-200 focus:ring-4 focus:ring-white focus:ring-opacity-25 pr-36" placeholder="How to 🔪 tomato..." />
<span id="badge" class="bg-pink-600 absolute right-3 top-1/2 transform -translate-y-1/2 px-6 py-2 rounded-full font-semibold text-gray-200 cursor-pointer hover:bg-pink-500 uppercase text-sm">🔍 Search</span>
</span>
</div>
</div>
@0xDeeep
0xDeeep / README.md
Created May 7, 2021 10:13
how to use locust (STRESS TESTING)

Get strated

Installtion

pip install locust

simple script

from locust import HttpUser, between, task
import uwsgi
from uwsgidecorators import timer
from django.utils import autoreload
@timer(3)
def change_code_gracefull_reload(sig):
if autoreload.code_changed():
uwsgi.reload()

-- create a table "libraryBooks" CREATE TABLE libraryBooks ( accessionNumber INTEGER PRIMARY KEY, title TEXT NOT NULL, author TEXT NOT NULL, department TEXT NOT NULL, purchaseDate date NOT NULL, price INTEGER NOT NULL );

@swagger_auto_schema(method='get', manual_parameters=[auth_token])
@api_view(['GET'])
def v3_client_details(request):
try:
response_json = {}
status_code = status.HTTP_200_OK
user_id = get_user_instance_and_type(request)
print("user instance user id:", type(user_id))
# get the client id from Authorization token

xrandr --output HDMI-A-0 --mode 1280x1024 --right-of eDP