Skip to content

Instantly share code, notes, and snippets.

View MayankFawkes's full-sized avatar
🎓
Open to work on github projects

Mayank Gupta MayankFawkes

🎓
Open to work on github projects
View GitHub Profile
@MayankFawkes
MayankFawkes / wheel.sh
Created December 12, 2020 05:54
Thanks to ->> nicknorton.net | ubuntu increase mouse scroll speed | 20.04 18.04
#!/bin/bash
# Version 0.1 Tuesday, 07 May 2013
# Comments and complaints http://www.nicknorton.net
# GUI for mouse wheel speed using imwheel in Gnome
# imwheel needs to be installed for this script to work
# sudo apt-get install imwheel
# Pretty much hard wired to only use a mouse with
# left, right and wheel in the middle.
# If you have a mouse with complications or special needs,
# use the command xev to find what your wheel does.
@MayankFawkes
MayankFawkes / License.py
Last active December 17, 2020 19:11
A simple script may help you create/generate license for your software.
'''
#A simple key gen algorithm (shhh it's a joke algorithm)
#here are some example
KEY = Generator().Key(value=1000)
print(KEY)
#This will return the key's value
@MayankFawkes
MayankFawkes / table.py
Last active March 12, 2024 15:15
Generate data table in program
'''
A simple table generator
+--------------------------+-----------------+---------+
| NAME | CLASS | NERD |
+--------------------------+-----------------+---------+
| Mayank Gupta | 12th science | Yes |
| Pradhumn Singh Parmar | 12th science | - |
| Prakhar Dwivedi | - | - |
+--------------------------+-----------------+---------+
@MayankFawkes
MayankFawkes / series.py
Created February 8, 2021 12:52
Find next number in series.
'''
Predict The next number from the series
ser = series([0,2,4])
numbers = ser.series(next=5)
for number in numbers:
print(number)
>>> 6
>>> 8
@MayankFawkes
MayankFawkes / shows.py
Last active April 5, 2021 04:44
Indian shows script watch before anyone. working in ubuntu
import requests, re
from subprocess import run
class Shows:
showl_list = {
"Shaurya Aur Anokhi Ki Kahani":"https://saathnibhanasaathiya2.com/shaurya-aur-anokhi-ki-kahani-grs/",
"Ghum Hai Kisi Ke Pyar Mein":"https://saathnibhanasaathiya2.com/ghum-hai-kisi-ke-pyar-mein/",
"Imlie":"https://saathnibhanasaathiya2.com/imlie-rthj/",
"Anupama": "https://saathnibhanasaathiya2.com/anupama/",
}
@MayankFawkes
MayankFawkes / sudoku.py
Created April 18, 2021 12:55
A simple sudoku solver.
'''
A simple sudoku solver
'''
from typing import List
from typing import Tuple
from typing import Union
class sudoku:
def __init__(self, puzzel:List[List[int]]):
self.puzzel = puzzel
@MayankFawkes
MayankFawkes / main.py
Last active July 27, 2022 20:11
Stremio 1337x addon python single file, https://1337x.mayankfawkes.repl.co
#!/usr/bin/env python3
from flask import Flask, Response, jsonify, url_for, abort
import requests, re, unicodedata
from bs4 import BeautifulSoup, element
import concurrent.futures, sys
from functools import lru_cache
import gunicorn.app.wsgiapp
MAX_CONCURRENT_WORKERS = 10
@MayankFawkes
MayankFawkes / permissions.py
Last active September 19, 2021 03:03
Permission based on bits
from typing import (
Any,
TypeVar,
ClassVar,
Dict,
Type,
Optional
)
FV = TypeVar('FV', bound='Flag')
sudo apt-get remove docker docker-engine docker.io containerd runc
sudo apt-get update
sudo apt-get -y install apt-transport-https ca-certificates curl gnupg lsb-release
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get -y install docker-ce docker-ce-cli containerd.io
sudo curl -L "https://github.com/docker/compose/releases/download/v2.23.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
@MayankFawkes
MayankFawkes / Mscript.js
Last active November 7, 2021 09:25
A Simple clone of jQuery.
(function() {
var document = window.document;
var version = "0.1.0";
var arr = [];
var isFunction = function isFunction( obj ) {
return typeof obj === "function" && typeof obj.nodeType !== "number" &&
typeof obj.item !== "function";
};
var isWindow = function isWindow( obj ) {