Skip to content

Commit f8a739d

Browse files
Merge pull request HarshCasper#5 from HarshCasper/master
getting changes
2 parents e4483b5 + 5e9465a commit f8a739d

File tree

16 files changed

+278
-12
lines changed

16 files changed

+278
-12
lines changed

.github/issues_labeler.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
BASH:
2+
- "(Bash|bash|BASH)"
3+
Golang:
4+
- "(Go|GO|Golang|GOLANG)"
5+
JavaScript:
6+
- "(JavaScript|JAVASCRIPT|Javascript|javascript|JS|js)"
7+
Python:
8+
- "(Python|PYTHON|python)"
9+
enhancement:
10+
- "(enhancement)"
11+
CH20:
12+
- "(CH20)"
13+
Easy:
14+
- "(Easy|easy)"
15+
Medium:
16+
- "(Medium|medium)"
17+
Hard:
18+
- "(Hard|hard)"
19+
bug:
20+
- "(bug|Bug|BUG)"
21+
Up-For-Grab:
22+
- "(up for grab)"
23+
Urgent:
24+
- "(urgent|URGENT|Urgent)"
25+
documentation:
26+
- "(documentation)"
27+
No-Code:
28+
- "(No Code)"

.github/workflows/greetings.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Greetings
2+
3+
on: [pull_request, issues]
4+
5+
jobs:
6+
greeting:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/first-interaction@v1
10+
with:
11+
repo-token: ${{ secrets.GITHUB_TOKEN }}
12+
issue-message: 'Hi thanks for creating your first issue at Rotten Scripts, hope you followed the guidelines.'
13+
pr-message: 'Congratulations!! for making your first PR at Rotten Scripts, our mentors will review it soon.'

.github/workflows/issues_labeler.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: "Issue Labeler"
2+
on:
3+
issues:
4+
types: [opened, edited]
5+
6+
jobs:
7+
triage:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: github/[email protected]
11+
with:
12+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
13+
configuration-path: .github/issues_labeler.yml
14+
enable-versioned-regex: 0

Go/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
## What is GoLang?
2+
Go is a procedural programming language. It was developed in 2007 by Robert Griesemer, Rob Pike, and Ken Thompson at Google but launched in 2009 as an open-source programming language. Go is a statically typed, compiled programming language. Go is syntactically similar to C, but with memory safety, garbage collection, structural typing, and CSP-style concurrency. Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
3+
4+
![GoLang](https://www.vertica.com/wp-content/uploads/2019/07/Golang.png)
5+
6+
## GoLang scripts in this project:
7+
8+
| S. No | Name of Script | Script Link | Author |
9+
--- | --- | --- | ---
10+
1 | GIF Creator | https://github.com/HarshCasper/Rotten-Scripts/tree/master/Go/GIF_Creator | [WABLE SANKET](https://github.com/Sanketwable)
11+
2 | GitHub Repo Issues | https://github.com/HarshCasper/Rotten-Scripts/tree/master/Go/Github_Repo_Issues | [WABLE SANKET](https://github.com/Sanketwable)
12+
3 | GitHub Username Checker | https://github.com/HarshCasper/Rotten-Scripts/tree/master/Go/Github_UserName_Checker | [WABLE SANKET](https://github.com/Sanketwable)

JavaScript/README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<h1 align="left">Javascript <img align="center" src="https://upload.wikimedia.org/wikipedia/commons/6/6a/JavaScript-logo.png" alt="Javascript_Logo" height="35" width="35" /></h1>
2+
3+
JavaScript was created by Brendan Eich in 1995 during his time at Netscape Communications.
4+
JavaScript (abbreviated as JS), is a interpreted, high-level programming language that conforms to the ECMAScript specification.
5+
Alongside HTML and CSS, it is one of the core technologies of the World Wide Web.
6+
It enables interactive web pages and thus is an essential part of web applications.
7+
8+
<b>Did you know:</b> JavaScript was created in 10 days only and when released, it used to cover a very small portion of a proper programming language.
9+
10+
<hr>
11+
12+
### Contents:
13+
14+
| S. No | Name of Script | Author |
15+
--- | --- | ---
16+
1 | [Automate Tinder](https://github.com/HarshCasper/Rotten-Scripts/tree/master/JavaScript/Automate_Tinder) | [Harsh Barshan Mishra](https://github.com/HarshCasper)
17+
2 | [Brute Force Admin](https://github.com/HarshCasper/Rotten-Scripts/tree/master/JavaScript/Brute_Force_Admin) | [Mohit Bhat](https://github.com/mbcse)
18+
3 | [Cryptoprice](https://github.com/HarshCasper/Rotten-Scripts/tree/master/JavaScript/Cryptoprice) | [Mohit Bhat](https://github.com/mbcse)
19+
4 | [Download_All_Repos](https://github.com/HarshCasper/Rotten-Scripts/tree/master/JavaScript/Download_All_Repos) | [Mohit Bhat](https://github.com/mbcse)
20+
5 | [Edit_Webpage](https://github.com/HarshCasper/Rotten-Scripts/tree/master/JavaScript/Edit_Webpage) | [Harsh Barshan Mishra](https://github.com/HarshCasper)
21+
6 | [Extract_Comments](https://github.com/HarshCasper/Rotten-Scripts/tree/master/JavaScript/Extract_Comments) | [Mohit Bhat](https://github.com/mbcse)
22+
7 | [Follow Instagram](https://github.com/HarshCasper/Rotten-Scripts/tree/master/JavaScript/Follow_Instagram) | [Harsh Barshan Mishra](https://github.com/HarshCasper)
23+
8 | [Github Graph Populator](https://github.com/HarshCasper/Rotten-Scripts/tree/master/JavaScript/GitHub_Graph_Populator) | -
24+
9 | [Instagram Like](https://github.com/HarshCasper/Rotten-Scripts/tree/master/JavaScript/Instagram_Like) | [Harsh Barshan Mishra](https://github.com/HarshCasper)
25+
10 | [RSA Key Pair Generator](https://github.com/HarshCasper/Rotten-Scripts/tree/master/JavaScript/RSA_Key_Pair_Generator) | [Mohit Bhat](https://github.com/mbcse)
26+
11 | [Send emails](https://github.com/HarshCasper/Rotten-Scripts/tree/master/JavaScript/Send_Emails) | [Namya LG](https://github.com/Namyalg)
27+
12 | [Who don't follow you](https://github.com/HarshCasper/Rotten-Scripts/tree/master/JavaScript/Who_Don't_Follow_You) | [Harsh Barshan Mishra](https://github.com/HarshCasper)

Open_Source_Events/CH20/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# CONTRIBUTOR's HACK 2020 (CH20)
2+
3+
## About CH20
4+
5+
Contributor's Hack 2020 is a global program that helps students grow with **OPEN SOURCE**. This initiative by **HakinCodes** will run for about one and a half months and will offer you the best platform to improve your skills and abilities by contributing to a vast variety of OPEN SOURCE Projects. It also provides you with an opportunity to interact with experienced mentors and the organizing team.
6+
7+
8+
<p align="center">
9+
<a href="https://hakincodes.tech/">
10+
<img src="https://user-images.githubusercontent.com/54139847/87952512-882a5600-cac7-11ea-939d-8304a641d8a9.png" alt="Logo">
11+
</a>

Open_Source_Events/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ List of Open Source Events in which we have participated.
44

55
- PClub Summer of Code (PSoC)
66
- STUDENT CODE-IN (SCI)
7+
- Contributor's Hack 2020 (CH20)

Python/Html-to-Markdown/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Python Script to convert HTML file to markdown(.md) format
2+
3+
## About Script
4+
This script is used to convert your html document(without css) to markdown format.
5+
6+
## To run the script:
7+
1. Install an additional module using command-line by following command:
8+
* pip install html2markdown
9+
2. Run the script using following command:
10+
* python html_to_markdown.py input_file.html output_file.md
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import html2markdown
2+
import sys
3+
4+
input_html = sys.argv[1]
5+
output_md = sys.argv[2]
6+
7+
html_file = open(input_html,'r')
8+
9+
md_file = open(output_md,'w')
10+
11+
for data in html_file:
12+
13+
md_file.write(html2markdown.convert(data))
14+
md_file.write("\n")
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# vscode
2+
.vscode
3+
4+
# file generated
5+
video.mp4
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Linkedin Video Downloader
2+
This script uses Python requests library to grab the url of the linkedin post provided to get the video url. After getting the url of the video, the file gets saved as video file. A progress bar is displayed showing the current speed, time escaped & time left. The progress bar is implemented using tqdm.
3+
4+
5+
# How to use?
6+
- Install the dependicies required for this script (tqdm & requests):
7+
8+
```pip install requirements.txt```
9+
10+
- Use this format to download the video:
11+
12+
```python app.py <link of post>```
13+
14+
15+
# Working Demo
16+
17+
![](preview.gif)
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
from tqdm import tqdm
2+
import requests
3+
import html
4+
import sys
5+
6+
def download(url):
7+
source = requests.get(url).text
8+
source_cleaned = html.unescape(source).split()
9+
for item in source_cleaned:
10+
if "dms.licdn.com" in item:
11+
download_link = item.split(',')[0].split('"src":')[1][1:-1]
12+
r = requests.get(download_link, stream = True)
13+
total_size_in_bytes= int(r.headers.get('content-length', 0))
14+
block_size = 1024 #1 Kibibyte
15+
progress_bar = tqdm(total=total_size_in_bytes, unit='iB', unit_scale=True)
16+
with open('test.mp4', 'wb') as file:
17+
for data in r.iter_content(block_size):
18+
progress_bar.update(len(data))
19+
file.write(data)
20+
progress_bar.close()
21+
if total_size_in_bytes != 0 and progress_bar.n != total_size_in_bytes:
22+
print("ERROR, something went wrong")
23+
24+
if __name__ == "__main__":
25+
download(sys.argv[1])
168 KB
Loading
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
tqdm==4.48.2
2+
requests==2.24.0

0 commit comments

Comments
 (0)