Skip to content

Instantly share code, notes, and snippets.

View suptejas's full-sized avatar
🔨
Building Dimension

Tejas Ravishankar suptejas

🔨
Building Dimension
View GitHub Profile
@suptejas
suptejas / downloader.py
Created December 25, 2020 15:42
Python Download File With Progress Bar Using Requests
from colorama import Fore
import requests
import sys
# import cursor # Use this if you want to hide or show cursor for a better terminal experience
def download(url: str, download_extension: str, file_path: str, show_progress_bar=True):
'''
Downloads A File from a URL And Saves It To A location
@suptejas
suptejas / Microsoft.Powershell_profile.ps1
Last active June 5, 2021 10:14
Git Alias Powershell Profile
# ⭐ If you find this useful!
# Paste the following configuration into your powershell profile
# Find it at: %USERPROFILE%\Documents\WindowsPowerShell Microsoft.PowerShell_profile.ps1 (Create the file if it doesn't exist)
# Push to origin master
# Usage: gpu
function git_push {
git push -u origin master
}
import sys
args = sys.argv