This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import re | |
def find_between( s, first, last ): | |
try: | |
start = s.index( first ) + len( first ) | |
end = s.index( last, start ) | |
return s[start:end] | |
except ValueError: | |
return "" | |
fr = open(sys.argv[1],'r') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#directions to use- place this python file in a folder containing wallpapers and run the python code. Thats it. and importantly #run the code as non-sudo user! | |
#/usr/bin/env python | |
import os | |
from subprocess import call | |
import glob | |
import time | |
wall_change_time = 10 | |
def set_wallpaper(image_file_with_path): | |
filepath = os.path.abspath(image_file_with_path) | |
call(['gsettings', 'set', 'org.gnome.desktop.background', 'picture-uri', 'file://%s' % (filepath)]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
make a python file and name it whatever you want. make a text file named trackers.txt and paste all the list of exhaustive trackers in that text file. now copy the tracker url's you have obtained from the torrent file to the clipboard and run this python script. now paste the exhaustive list into your torrent downloading software along with updated url's you have obtained from the torrent file. Any new url's will be automatically updated in tracker.txt file. this script uses boyer moore horspool string searching algorithm | |
If it helped you i would love to hear from you. i would also be grateful if you post it in any of your groups and somebody uses it. mail me or message me: chaitanyaradon89@gmail.com, kcradon11@facebook.com | |
''' | |
import pyperclip | |
def BoyerMooreHorspool(pattern, text): | |
m = len(pattern) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Tested in ubuntu 14.04 LTS | |
Usage: If you dont want the proxy you can comment out the lines 18,19,20 | |
line_writer first argument is the file path which you need to put, then script will update password in that file | |
i would love to hear from you, hope this script helps you- Email:chaitanyaradon89@gmail.com | |
''' | |
from bs4 import BeautifulSoup | |
import fileinput | |
import sys | |
import urllib2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'''This script will help you create strong passwords which is required these days when used to fill sign-up forms''' | |
import hashlib | |
import pyperclip | |
import sys | |
def find_pass(secret_string): | |
s = hashlib.md5(secret_string).hexdigest()[0:10] | |
for i, c in enumerate(s): | |
if not c.isdigit(): | |
break | |
final_string=s[:i] + s[i:].capitalize() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Select_Search | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description To Search for a word in your favourite word search engines. | |
// @author You | |
// @match https://quizlet.com/* | |
// @grant GM_setClipboard | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Dictionary.com Copy Sentences | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match http://www.dictionary.com/* | |
// @grant GM_setClipboard | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Enter "mnemonic" on pressing enter | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://quizlet.com/* | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyperclip,re | |
final = re.sub(r'^mnemonic.*\n?', '', pyperclip.paste().encode('ascii','replace'), flags=re.MULTILINE) | |
pyperclip.copy(final) | |
print "No of words: %d" % len(final.split('\n')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Use this python file to copy the command of wall output to clipboard. The sender needs to login into remote system and send the output he intends the receiver to receive | |
in the wall command. The receiver needs to run this script, please input the credentials of the same server in which the sender has logged in, whenever the script receives the output it gets copied into clipboard of the PC of the receiver. Would this shit really work?. | |
''' | |
from paramiko import SSHClient, AutoAddPolicy | |
import pyperclip | |
ssh = SSHClient() | |
ssh.set_missing_host_key_policy(AutoAddPolicy()) | |
ssh.connect('IP_Adress', username='username', password='password', key_filename='path_to_key') | |
outdata, errdata = '', '' |
OlderNewer