Skip to content

Instantly share code, notes, and snippets.

View jkotra's full-sized avatar
🎯
Focusing

Jagadeesh Kotra jkotra

🎯
Focusing
View GitHub Profile
import vapoursynth as vs
core = vs.get_core()
core.std.LoadPlugin('/usr/lib/x86_64-linux-gnu/vapoursynth/ffms2.so')
video = core.ffms2.Source(source='/home/xx/Downloads/xx/xx.mp4')
video.set_output()
@jkotra
jkotra / tor.py
Last active June 22, 2017 13:18
tor with py
import urllib2
import os
import socks
import socket
import string
#SOCKS_PORT = 9050
print "Tor port:%d.Make sure tor is running!" % (SOCKS_PORT,)
print("\n")
#!/usr/bin/python
import os
from conf import *
#####################################
#Jagadeesh Kotra
#https://github.com/jagadeesh-kotra/x264zones
#Contact: Hello@Jagadeesh.me
#####################################
#!/usr/bin/python3.5
import argparse
import pickle
from simplecrypt import encrypt, decrypt
parser = argparse.ArgumentParser()
parser.add_argument("file", help="Input file to decrypt/encrypt", type=str)
args = parser.parse_args()
@jkotra
jkotra / SoccerScraper.py
Created July 24, 2017 10:21
SoccerScraper.py
import csv
from urllib.request import Request, urlopen # Python 3
from bs4 import BeautifulSoup
country = []
team = []
names1 = []
names2 = []
names3 = []
@jkotra
jkotra / javac-loop.py
Created November 26, 2017 17:36
javac loop
import os
import glob
import subprocess
files = []
def javac(dir):
subprocess.call("javac {0}".format(dir),shell=True)
os.remove(dir)

gorar

Extract rar/zip files in Go.

Install

go get -v https://github.com/jagadeesh-kotra/gorar/

gorar-r

Extract .rar/.zip Files recursively

Install

Works standalone,Takes no args.

Requires gorar

go get -v github.com/jagadeesh-kotra/gorar
require 'quikr'

data = Quikr.getdata("https://www.quikr.com/electronics-appliances/laptop+Laptops-Computers+India+z147f?sx=true")

title = Quikr.title(data)
price = Quikr.price(data)
link = Quikr.link(data)

for laptop in title
@jkotra
jkotra / bookmyshow_venue.py
Last active January 4, 2018 18:46
bookmyshow bot
import requests
import json
import datetime
import time
import argparse
import smtplib
parser = argparse.ArgumentParser()
parser.add_argument('--silent', help="No print.", action="store_true")