Skip to content

Instantly share code, notes, and snippets.

View 0xdeepmehta's full-sized avatar
🤿
Solana

0xDeep 0xdeepmehta

🤿
Solana
View GitHub Profile
@0xdeepmehta
0xdeepmehta / scroll_instagram.js
Last active June 29, 2020 04:12 — forked from LoranKloeze/scroll_instagram.js
Automatic scroll of Instagram page, stop scrolling by hand...
/*
Tired of scrolling to one of the last photos on the page on Instagram? Let your
browser do the scrolling for you!
31-05-2017
(c) 2017 - Loran Kloeze - [email protected]
29-05-2020
(c) 2020 - Deep Mehta - https://github.com/Imdeepmehta
Usage
- Go to https://www.instagram.com/instagram_handle/ (change instagram_handle in i.e. taylorswift)
@0xdeepmehta
0xdeepmehta / index.html
Last active August 2, 2020 07:05
It's dangerous for your healt
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>CodePen - Collapsible Tree</title>
<link rel="stylesheet" href="./style.css">
</head>
<body>
<!-- partial:index.partial.html -->
from requests_html import HTMLSession
from bs4 import BeautifulSoup
session = HTMLSession()
all_git_ignore = []
def _fetchAllModuleData():
r = session.get("https://github.com/github/gitignore/")
soup = BeautifulSoup(r.content,'lxml')
.app{
display: grid;
place-items: center;
background-color: #dadbda;
height: 100vh;
}
.app__body {
display: flex;
height: 90vh;
width: 90vw;

Custom User Model in Django

There are two modern ways to create user model in django

  • AbstractUserBase : Use this option if you want to start from scratch by creating your own, completely new User model. It's more complicated .
  • AbstractUser : Use this option if you are happy with the existing fields on the User model and just want to remove the username/certain field. In fact this is inherited from AbstractUserBase.

Steps Invlove:

  • Create a Custom user model and manager.
  • update settings.py
  • create new UserCreation and userChangeForm
const wa = require("@open-wa/wa-automate");
const { create, decryptMedia, ev } = wa;
const { default: PQueue } = require("p-queue");
const fetch = require("node-fetch");
const wakeBotOn = ["#help", "#menu", "#bot"];
const helpText =
process.env.HELP_TEXT ||
A curated learning path for community by community.
Let's feel the problem in order to understand the solution.
take a scenario for e.g, a boy wanna learn python programming language in order to find solutions to 21st century problems.
He googles "best way to learn python programming for beginners",
and now you can imageine what happens with a young josh minded boy, he got a buch of resoucrse for same thing
,a bunch, yeah a bunch of resources.
now he is thinking with which resource should i continue, this or that, oh now this one seams cool,
or should i go with teach lead. oh my god help.

India Money tech breakdown

server language ->

"php"["codeigniter"] (currently) "perl"["landing_page"] (old)

cdn ->

"cloudflare"

Frontend ->

@0xdeepmehta
0xdeepmehta / gist:2c2f548b19e29ed71e30492c1587770b
Created January 23, 2021 06:25
OTT_SERVICES_REQUIRED_FROM_AWS_PRICING.md
amazon s3 bucket -> 50TB/$1280 per month.
https://aws.amazon.com/s3/pricing/
amazon cloudfront -> 10TB/$1740 per month.
https://aws.amazon.com/cloudfront/pricing/
media_encoder(Elemental MediaConvert) ->
(>30 fps and <=60 fps)
sd -> $0.015/min (8hr = 480min => $7)
@0xdeepmehta
0xdeepmehta / python request module
Created February 4, 2021 06:30
Gist created by python code
Python is love but sometime he fuck me