Skip to content

Instantly share code, notes, and snippets.

View Pragith's full-sized avatar
🎯
Focusing

Pragith Pragith

🎯
Focusing
View GitHub Profile
#EXTM3U
#EXTINF:-1 tvg-id="552002" tvg-name="##### USA NEWS #####" group-title="Filtered Channels",##### USA NEWS #####
http://line.dino.ws:80/play/live.php?mac=00:1A:79:12:4D:08&stream=552002&extension=ts&play_token=Qc8ZdEDtT2
#EXTINF:-1 tvg-id="469294" tvg-name="USA - AL JAZEERA AMERICA HD" group-title="Filtered Channels",USA - AL JAZEERA AMERICA HD
http://line.dino.ws:80/play/live.php?mac=00:1A:79:12:4D:08&stream=469294&extension=ts&play_token=x0hE3IkQgq
#EXTINF:-1 tvg-id="469293" tvg-name="USA - AL JAZEERA ENGLISH" group-title="Filtered Channels",USA - AL JAZEERA ENGLISH
http://line.dino.ws:80/play/live.php?mac=00:1A:79:12:4D:08&stream=469293&extension=ts&play_token=ziinO3wYlr
#EXTINF:-1 tvg-id="551775" tvg-name="USA - NEWSMAX TV HD" group-title="Filtered Channels",USA - NEWSMAX TV HD
http://line.dino.ws:80/play/live.php?mac=00:1A:79:12:4D:08&stream=551775&extension=ts&play_token=5Q9ElINxdZ
#EXTINF:-1 tvg-id="469341" tvg-name="USA - THE BLAZE HD" group-title="Filtered Channels",USA - THE BLAZE HD
@Pragith
Pragith / .zshrc
Created February 28, 2022 05:43
Pragith's Oh My ZSH RC file
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/Users/Pragith.Prakash/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
@Pragith
Pragith / cic_auto.py
Created February 25, 2022 07:23
Citizenship Application Tracker - Selenium Automation (Headless / GUI)
import os, time, datetime
from termcolor import colored
from selenium import webdriver
from selenium.webdriver.firefox.options import Options
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import Select
from selenium.webdriver.common.by import By
URL = 'https://services3.cic.gc.ca/ecas/authenticate.do'
@Pragith
Pragith / wordle_hack.py
Created January 26, 2022 20:53
Wordle Hack - Get all possible answers for today's Wordle round
#%%
'''
Instructions:
1. Configure the game variables - greyLetters, orangeLetters and greenLetters
2. Run the script and you'll get all possible answers to the current Wordle round.
Example output:
Possible Wordle answers are:
> month
> mount
field_name,field_display_value,field_actual_value,field_type
bank_name,HDFC Bank,hdfc,dropdown
bank_name,ICICI Bank,icici,dropdown
bank_name,Federal Bank,federal,dropdown
bank_account_types,Savings Account,savings,radio
bank_account_types,Checking Account,checking,radio
city,Bangalore,bengaluru,dropdown
city,Chennai,chennai,dropdown
We can't make this file beautiful and searchable because it's too large.
timestamp,user_id,event,flyer_id,merchant_id
2018-10-01T13:54:59-04:00,9ea672779feb1e088caa593b61ec51440c1d8694e1bf3dfe95554f7c9698c47e,shopping_list_open,,
2018-10-01T13:34:04-04:00,01ca5536abc5e0992c8e12ab57e93f567cb6608c6ebc1f403891b78a5fe75459,shopping_list_open,,
2018-10-01T13:56:36-04:00,1c1231e7a41a1bee17dd8e8111ebaef941525995f330199844fd9a0293edf9aa,flyer_open,2016315,2268
2018-10-01T13:36:16-04:00,b38f97880ccb69e8f89201eedbccc149a9ea914ca86111340a9b1d9de1788a01,shopping_list_open,,
2018-10-01T13:56:10-04:00,b38f97880ccb69e8f89201eedbccc149a9ea914ca86111340a9b1d9de1788a01,shopping_list_open,,
2018-10-01T13:36:40-04:00,9ea672779feb1e088caa593b61ec51440c1d8694e1bf3dfe95554f7c9698c47e,shopping_list_open,,
2018-10-01T13:34:36-04:00,7c3e5dadd6c0d71702e9c26a9470720db160f6addb88eabde3aa1cdf4b0e4bdd,flyer_open,1993325,2188
2018-10-01T13:31:01-04:00,9ea672779feb1e088caa593b61ec51440c1d8694e1bf3dfe95554f7c9698c47e,flyer_open,2002542,3383
2018-10-01T13:39:00-04:00,4997a2ca5d6f3a8e2181847a9734a864ea097fe3684dcbae
@Pragith
Pragith / gist:fde7d5a71018dc92d048fda3dce88320
Created October 27, 2019 00:30
Own NPM and any other tool in Unix
sudo chown -R $(whoami) ~/.npm
@Pragith
Pragith / lynda_to_csv.py
Last active September 28, 2019 00:16
Generates a CSV of list of Lynda videos
from bs4 import BeautifulSoup as bs
import argparse, requests, pandas as pd
# Get report related arguments from the command line
parser = argparse.ArgumentParser()
parser.add_argument("-url","--url", help="Enter Lynda course URL", type=str)
parser.add_argument("-o","--output_file", help="Enter the output filename", type=str)
args = vars(parser.parse_args())
def duration_to_seconds(T):
@Pragith
Pragith / download.py
Created September 25, 2019 12:53
Download file in Python with progress bar
def download_file(url, output_location):
print('URL:',url)
# Streaming, so we can iterate over the response.
r = requests.get(url, stream=True)
# Total size in bytes.
total_size = int(r.headers.get('content-length', 0));
block_size = 1024
wrote = 0
with open(output_location, 'wb') as f:
@Pragith
Pragith / gist:868d822b5b0fe83f0d836cffbe2f0f13
Created July 12, 2019 18:42
Make it rain like Matrix on Mac
alias matrix='echo -e "\033[0;32m1"; while $t; do for i in `seq 1 30`;do r="$[($RANDOM % 2)]";h="$[($RANDOM % 4)]";if [ $h -eq 1 ]; then v="\033[0;32m0 $r";else v="1 $r";fi;v2="$v2 $v";done;echo -e $v2;v2="";done;