Skip to content

Instantly share code, notes, and snippets.

View yolossn's full-sized avatar

S Santhosh Nagaraj yolossn

View GitHub Profile
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:
-- S.O.L.I.D --
Single Responsibility Principle.
Open / Close Principle.
Liksov Substitution Principle.
Interface Segrigation Principle.
Dependency Inversion Principle.
Single Responsibility Principle
-------------------------------
@yolossn
yolossn / swiggy_bills.py
Created March 10, 2020 08:20
Python script to download swiggy bills.
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)
@yolossn
yolossn / .bashrc
Last active August 19, 2018 18:22
.bashrc
#history with time
export HISTTIMEFORMAT="%d/%m/%y %T "
#git graph
alias graph='git log --all --decorate --oneline --graph'
@yolossn
yolossn / Emailverifier.py
Created April 28, 2018 12:09
Check if Email id exists
import re
import smtplib
import dns.resolver
def Verifier(eid):
verify=eid
fromAddress="[email protected]"
regex=r"[^@]+@[^@]+\.[^@]+"
match=re.match(regex,verify)
@yolossn
yolossn / Python Proxy
Created January 28, 2018 05:48
Proxy server using Python 2.7
#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'
@yolossn
yolossn / .vimrc
Last active May 30, 2019 10:14
my vim configuration
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