This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') | |
" let Vundle manage Vundle, required |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Copyright (c) <2009> <Fábio Domingues - fnds3000 in gmail.com> | |
#Copyright (c) <2009> <Fábio Domingues - fnds3000 in gmail.com> <MIT Licence> | |
import socket, thread, select | |
__version__ = '0.1.0 Draft 1' | |
BUFLEN = 8192 | |
VERSION = 'Python Proxy/'+__version__ | |
HTTPVER = 'HTTP/1.1' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import smtplib | |
import dns.resolver | |
def Verifier(eid): | |
verify=eid | |
fromAddress="[email protected]" | |
regex=r"[^@]+@[^@]+\.[^@]+" | |
match=re.match(regex,verify) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#history with time | |
export HISTTIMEFORMAT="%d/%m/%y %T " | |
#git graph | |
alias graph='git log --all --decorate --oneline --graph' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import datetime | |
import requests | |
def download_order(order_info,headers,download_path): | |
order_id = str(order_info['order_id']) | |
url = "https://www.swiggy.com/invoice/download/" | |
response = requests.get(url+order_id,headers = headers) | |
file_name = order_id+".pdf" | |
file_path = os.path.join(download_path,file_name) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- S.O.L.I.D -- | |
Single Responsibility Principle. | |
Open / Close Principle. | |
Liksov Substitution Principle. | |
Interface Segrigation Principle. | |
Dependency Inversion Principle. | |
Single Responsibility Principle | |
------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows: | |
> choco install apache-httpd | |
# source: https://chocolatey.org/packages/apache-httpd | |
Mac os: | |
As of macos bigsur ab is installed by default in macos | |
Ubuntu: |