Skip to content

Instantly share code, notes, and snippets.

View whalehulk's full-sized avatar
😍
What A Time To Be Alive

Whale Hulk whalehulk

😍
What A Time To Be Alive
View GitHub Profile
@whalehulk
whalehulk / torrent-search.json
Last active August 15, 2018 14:30
torrent-cloud-search
{
"audiobookbay": {
"name": "AudioBookBay",
"type": "screen-scraper",
"list": {
"url": "http://audiobookbay.to/page/{page}?s={query}",
"items": "#content > div",
"item": {
"name":"div.postTitle > h2 > a@title",
"url":"div.postTitle > h2 > a@href",
import cloudconvert
print('############################################')
print('#Hello This Is A CLOUDCONVERT DEMO SCRIPT#')
print('############################################')
print('Hey Enter The Website U Want TO Convert To PDF :)')
url=input()
print('Sending Ur Details To Our WebServer')
api = cloudconvert.Api('ur3u0ciBIKCKtRfHdkgPzHagqt1FeFMRiIBwDOLdkoUr6HR_7KTGG09GJaM1zp-V91ZDvxtpBb9A_aoLKagLBw')
VERSION BUILD=11.5.499.3066
TAB T=1
TAB CLOSEALLOTHERS
SET !PLAYBACKDELAY 0.2
URL GOTO=http://m.way2sms.com
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:loginForm ATTR=ONKEYPRESS:if<SP>(event.keyCode<SP>==<SP>13)<LF><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP>validate('usr');&&MAXLENGTH:10&&PLACEHOLDER:10<SP>Digit<SP>Valid<SP>Mobile<SP>Number&&NAME:username&&AUTOCOMPLETE:off CONTENT=7016396408
SET !ENCRYPTION NO
TAG POS=1 TYPE=INPUT:PASSWORD FORM=NAME:loginForm ATTR=ONKEYPRESS:if<SP>(event.keyCode<SP>==<SP>13)<LF><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP><SP>validate('pwd');&&TYPE:password&&PLACEHOLDER:******&&NAME:password&&AUTOCOMPLETE:off CONTENT=root
TAG POS=1 TYPE=INPUT:BUTTON FORM=NAME:loginForm ATTR=ONCLICK:return<SP>validate('btn')&&ID:loginBTN&&CLASS:button<SP>br2up&&TYPE:button&&VALUE:Login
TAG POS=1 TYPE=A ATTR=T
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
username = 'email'
password = 'password'
browser = webdriver.Chrome()
browser.get(("https://www.udemy.com/join/login-popup/?displayType=ajax&display_type=popup&showSkipButton=1&returnUrlAfterLogin=https%3A%2F%2Fwww.udemy.com%2F&next=https%3A%2F%2Fwww.udemy.com%2F&locale=en_US"))
login = browser.find_element_by_id('id_email')
@whalehulk
whalehulk / multiplication table printer in c
Created July 27, 2017 17:05
multiplication table printer in c
#include<stdio.h>
#include<stdlib.h>
#define colmax 10
#define rowmax 12
int main()
{
int i,j,sum=1;//initializing variables
for(i=1;i<=rowmax;i++)//this iterates rows from 1 to 12
{
@whalehulk
whalehulk / matrix transpose program in c
Created July 29, 2017 09:37
prints transpose of a matrix in c
#include<stdio.h>
#include<conio.h>
#include<math.h>
//void mtrix_print(int a[3][3]);
int main()
{
int i,j,a[3][3],k,l,b[3][3];
printf("ENTER 3X3 MATRIX : \nI WILL TRANSPOSE IT : \n");
/*making the complete array filled with zeros to make it look symmetric*/
@whalehulk
whalehulk / asimplewebsiteblocker.py
Created August 6, 2017 17:48
a simple website blocker for everyone for concentrating on work :).
import time
from datetime import datetime as dt
localhost="127.0.0.1"
website_list=["www.facebook.com","facebook.com"]
start=input("Hey Enter Starting of ur working hours !")
end=input("Hey Enter Ending Time of ur working hours ?")
host_temp=r"C:\Windows\System32\drivers\etc\hosts"
while True:
if dt(dt.now().year,dt.now().month,dt.now().day,int(start)) < dt.now() < dt(dt.now().year,dt.now().month,dt.now().day,int(end)):
#!/bin/bash
echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" > /etc/apt/sources.list.d/mongodb-org-3.4.list
echo "deb http://repo.pritunl.com/stable/apt xenial main" > /etc/apt/sources.list.d/pritunl.list
apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv 0C49F3730359A14518585931BC711F9BA15703C6
apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv 7568D9BB55FF9E5287D586017AE645C0CF8E292A
apt-get --assume-yes update
apt-get --assume-yes upgrade
apt-get --assume-yes install pritunl mongodb-org
systemctl start pritunl mongod
systemctl enable pritunl mongod
#!/bin/bash
echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" > /etc/apt/sources.list.d/mongodb-org-3.4.list
echo "deb http://repo.pritunl.com/stable/apt xenial main" > /etc/apt/sources.list.d/pritunl.list
apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv 0C49F3730359A14518585931BC711F9BA15703C6
apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv 7568D9BB55FF9E5287D586017AE645C0CF8E292A
apt-get --assume-yes update
apt-get --assume-yes upgrade
apt-get --assume-yes install pritunl mongodb-org
systemctl start pritunl mongod
systemctl enable pritunl mongod
#!/bin/bash
echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" > /etc/apt/sources.list.d/mongodb-org-3.4.list
echo "deb http://repo.pritunl.com/stable/apt xenial main" > /etc/apt/sources.list.d/pritunl.list
apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv 0C49F3730359A14518585931BC711F9BA15703C6
apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv 7568D9BB55FF9E5287D586017AE645C0CF8E292A
apt-get --assume-yes update
apt-get --assume-yes upgrade
apt-get --assume-yes install pritunl mongodb-org
systemctl start pritunl mongod
systemctl enable pritunl mongod