Skip to content

Commit

Permalink
Arranged programs in folders
Browse files Browse the repository at this point in the history
  • Loading branch information
rakeshlinux committed May 13, 2018
1 parent fc64be4 commit 6125aa0
Show file tree
Hide file tree
Showing 32 changed files with 209 additions and 141 deletions.
35 changes: 35 additions & 0 deletions Email/EmailBomb.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#-------------------------------------------------------------------------------
# Name: Email Bomb
# Purpose: Program to send unlimited emails - This is for educational purpose only
# Author: rakesh kumar
# Created: 11-02-2018
# Copyright: rakesh kumar
# Licence: MIT
#-------------------------------------------------------------------------------
import time
import getpass
import smtplib
from email.mime.text import MIMEText
# Open a plain text file for reading. For this example, assume that
# the text file contains only ASCII characters.
textfile ="abcd.txt"
fp = open(textfile, 'r')
# Create a text/plain message
msg = MIMEText(fp.read())
fp.close()

me ='email@google.com'
target = 'target@gmail.com'

msg['Subject'] = 'The contents of %s' % textfile
msg['From'] = me
msg['To'] = target
password = getpass.getpass("Enter your email ID password : ")
for i in range (1,100000):
connection = smtplib.SMTP_SSL('smtp.google.com',465)
connection.ehlo()
#connection.starttls()
connection.login('email@google.com',password)
connection.sendmail(me,[target],msg.as_string())
connection.quit()
time.sleep(15)
50 changes: 50 additions & 0 deletions Email/emailsend.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
#-------------------------------------------------------------------------------
# Name: Bulk Email Sender using Excel file and
# Purpose: Program reads name and email Id from Excel file and send to all the members
#
# Author: rakesh kumar
#
# Created: 11-02-2018
# Copyright: rakesh kumar
# Licence: Private
#-------------------------------------------------------------------------------
import xlrd
import time
import smtplib
from email.mime.text import MIMEText

# Open a plain text file for reading. For this example, assume that
# the text file contains only ASCII characters.
textfile ="abcd.txt"
fp = open(textfile, 'r')
# Create a text/plain message
msg = MIMEText(fp.read())
fp.close()

me ='rakesh@binarynote.com'
you = 'support@binarynote.com'

msg['Subject'] = 'The contents of %s' % textfile
msg['From'] = me
msg['To'] = you

password = input("Enter your password")
book = xlrd.open_workbook("phone.xlsx")
sheet = book.sheet_by_index(0)
count = sheet.nrows
for rx in range(1,sheet.nrows):
rec_email = sheet.cell_value(rx,2)
rec_name = sheet.cell_value(rx,0)
msg['To'] = rec_email
connection = smtplib.SMTP_SSL('gator3189.hostgator.com',465)
connection.ehlo()
#connection.starttls()
connection.login('rakesh@binarynote.com',password)
connection.sendmail(me,[rec_email],msg.as_string())
connection.quit()
positionStr = "Total : "+str(rx).rjust(4) +" out of : "+ str(count-1).rjust(4) +" send"
print(positionStr, end='')
time.sleep(15)
print('\b' * len(positionStr), end='', flush=True)

print('\n\n Emails pushed...\n\n')
21 changes: 21 additions & 0 deletions Loops/NumberTree.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# purpose : write a program to print the following pattern
# 1
# 1 2
# 1 2 3
# 1 2 3 4
# 1 2 3 4 5
# 1 2 3 4 5 6
# author : rakesh kumar
# licence : MIT

n = int(input("Enter value of n : "))
for i in range(1,n+1):
if(i%2!=0):
for j in range(n+1,i,-1):
print(' ', end=" ")
else:
for j in range(n+1,1,-1):
print(' ', end=" ")
for k in range(1,i+1):
print(k, end=" ")
print()
21 changes: 21 additions & 0 deletions Loops/charTriangle.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# purpose : write a program to print the following pattern
# 1
# 1 2 1
# 1 2 3 2 1
# 1 2 3 4 3 2 1
# 1 2 3 4 5 4 3 2 1
# 1 2 3 4 5 6 5 4 3 2 1
#
# author : rakesh kumar
# licence : MIT



for i in range(1,10):
for j in range(10-i):
print(' ', end=" ")
for k in range(1,i+1):
print(chr(k+64), end=" ")
for l in range(i-1,0,-1):
print(chr(l+64),end=" ")
print()
1 change: 1 addition & 0 deletions for_1.py → Loops/for_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ def pyramid():
for j in range(1,i+1):
print(j,end=" ")
print()

pyramid()
43 changes: 43 additions & 0 deletions Loops/rhombus.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# purpose : write a program to print the following pattern
# 1
# 1 2 1
# 1 2 3 2 1
# 1 2 3 4 3 2 1
# 1 2 3 4 5 4 3 2 1
# 1 2 3 4 5 6 5 4 3 2 1
# 1 2 3 4 5 6 7 6 5 4 3 2 1
# 1 2 3 4 5 6 7 8 7 6 5 4 3 2 1
# 1 2 3 4 5 6 7 8 9 8 7 6 5 4 3 2 1
# 1 2 3 4 5 6 7 8 9 10 9 8 7 6 5 4 3 2 1
# 1 2 3 4 5 6 7 8 9 8 7 6 5 4 3 2 1
# 1 2 3 4 5 6 7 8 7 6 5 4 3 2 1
# 1 2 3 4 5 6 7 6 5 4 3 2 1
# 1 2 3 4 5 6 5 4 3 2 1
# 1 2 3 4 5 4 3 2 1
# 1 2 3 4 3 2 1
# 1 2 3 2 1
# 1 2 1
# 1
#
# author : rakesh kumar
# licence : MIT



for i in range(1,10):
for j in range(10-i):
print(' ', end=" ")
for k in range(1,i+1):
print(k, end=" ")
for l in range(i-1,0,-1):
print(l,end=" ")
print()

for i in range(10,0,-1):
for j in range(10-i):
print(' ', end=" ")
for k in range(1,i+1):
print(k, end=" ")
for l in range(i-1,0,-1):
print(l,end=" ")
print()
File renamed without changes.
File renamed without changes.
21 changes: 21 additions & 0 deletions Loops/triangle.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# purpose : write a program to print the following pattern
# 1
# 1 2 1
# 1 2 3 2 1
# 1 2 3 4 3 2 1
# 1 2 3 4 5 4 3 2 1
# 1 2 3 4 5 6 5 4 3 2 1
#
# author : rakesh kumar
# licence : MIT



for i in range(1,10):
for j in range(10-i):
print(' ', end=" ")
for k in range(1,i+1):
print(k, end=" ")
for l in range(i-1,0,-1):
print(l,end=" ")
print()
File renamed without changes.
File renamed without changes.
Binary file not shown.
10 changes: 0 additions & 10 deletions abcd.html

This file was deleted.

38 changes: 0 additions & 38 deletions emailsend.py

This file was deleted.

47 changes: 0 additions & 47 deletions file.cpp

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file removed get-pip.py
Empty file.
14 changes: 0 additions & 14 deletions index.html

This file was deleted.

20 changes: 0 additions & 20 deletions mergesort.py

This file was deleted.

2 changes: 0 additions & 2 deletions new.py

This file was deleted.

Binary file modified phone.xlsx
Binary file not shown.
17 changes: 16 additions & 1 deletion twilio/sms.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
import zerosms
import getpass
import xlrd
import time
def sendsms():
zerosms.sms(phno=9871816901,passwd='F6569G',message='Hello Jm Sharma ji, This sms is coming to you using python',receivernum=9871816901)
#
# your_number = getpass.getpass("Enter your phone No. ")
# your_password = getpass.getpass("Enter your password")
your_number = '9871816901'
your_password = 'mypassword'

book = xlrd.open_workbook("phone.xlsx")
sheet = book.sheet_by_index(0)
for rx in range(1,sheet.nrows):
rec_phone = str(int(sheet.cell_value(rx,1)))
rec_name = sheet.cell_value(rx,0)
msg ="Hello " + rec_name + " This is python generated sms and I love this script to send automated message to all my friend in my list"
zerosms.sms(phno=your_number,passwd=your_password,message=msg,receivernum=rec_phone)
time.sleep(10)

sendsms()
File renamed without changes.
10 changes: 1 addition & 9 deletions webscraper/youtubeDownloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,4 @@
import shutil
ydl_opts = {}
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
<<<<<<< HEAD
ydl.download(['https://www.youtube.com/watch?v=FbWnuO7GGBQ'])
=======
<<<<<<< HEAD
ydl.download(['https://www.youtube.com/playlist?list=PLgPJX9sVy92yWUMgLpWrXtegKxrWLRnRv'])
=======
ydl.download(['https://www.youtube.com/watch?v=ZyAGWMMYHgM'])
>>>>>>> f806fed540b011d946e25ef33fd93886bf5e56fe
>>>>>>> f0a13a7b26b5b15218f7ee7dca94a161e0835538
ydl.download(['http://103.67.198.6/uploaded-videos/The.Raid.2.2014.1080p.BluRay.x264-YTS.AG.MP4'])

0 comments on commit 6125aa0

Please sign in to comment.