Skip to content

Instantly share code, notes, and snippets.

View thealphadollar's full-sized avatar
Looking Forward To Hear Great Ideas

Shivam Kumar Jha thealphadollar

Looking Forward To Hear Great Ideas
View GitHub Profile
// create list of list with three strings each
strings = [
["p1", "p2", "p3"],
["p4", "p5", "p6"],
["p7", "p8", "p9"]
// function to return a random row of the input list
function getRow() {
thealphadollar / fb_accept_friends.js
Last active July 6, 2024 12:47
Script To Accept All Facebook Friend Requests
// If the script does not work, you may need to allow same site scripting
Facebook = {
config: {
actionDelay: 1000,
scrollDelay: 5000,
// set to -1 for no limit
maxRequestsToAccept: -1,
totalRequestsAccepted: 0,
// set string to be present in names to be accepted, leave empty to accept all
thealphadollar / AutoConnectLinkedIn.js
Last active June 25, 2024 13:41
JS script to send connection requests to your LinkedIn search results with customisation options, accept all received connection requests, and withdraw pending sent connection requests.
// If the script does not work, you may need to allow same site scripting
Linkedin = {
config: {
scrollDelay: 3000,
actionDelay: 5000,
nextPageDelay: 5000,
// set to -1 for no limit
maxRequests: -1,
totalRequestsSent: 0,
Bhagat Aaryan 17CS10001 28-12-1999
Vardhan Vivek Adepu 17CS10002 26-10-1999
Tiwari Akash 17CS10003 21-08-1999
Rakshith Aloori 17CS10004 14-08-1999
Choudhary Anshul 17CS10005 03-12-1998
Kaushal Ayush 17CS10006 04-11-1999
Kumar Ayush 17CS10007 31-08-1999
Agarwal Bedant 17CS10008 09-10-1998
Rahul Bhukya 17CS10009 22-10-2000
Bhanuteja Bolisetti 17CS10010 01-05-2000
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 50 columns, instead of 46. in line 1.
Bhagat Aaryan,17CS10001,7.96 - 7.96 - 7.26,5,CS31003,COMPILERS,3-0-0,3,D,5,CS31005,ALGORITHMS,-II,3-1-0,4,C,5,CS31007,COMPUTER,ORGANIZATION,&,ARCHITECTURE,3-1-0,4,C,5,CS39001,COMPUTER,ORGANIZATION,LABORATORY,0-0-6,4,B,5,CS39003,COMPILERS,LABORATORY,0-0-3,2,B,5,ET60019,C,5,MA20105,LINEAR,ALGEBRA,3-0-0,3,B
Rakshith Aloori,17CS10004,6.44 - 6.44 - 6.25,5,CS31003,COMPILERS,3-0-0,3,P,5,CS31005,ALGORITHMS,-II,3-1-0,4,C,5,CS31007,COMPUTER,ORGANIZATION,&,ARCHITECTURE,3-1-0,4,D,5,CS39001,COMPUTER,ORGANIZATION,LABORATORY,0-0-6,4,C,5,CS39003,COMPILERS,LABORATORY,0-0-3,2,C,5,ET60019,C,5,MA61027,P
Choudhary Anshul,17CS10005,8.77 - 8.77 - 8.83,5,CS31003,COMPILERS,3-0-0,3,A,5,CS31005,ALGORITHMS,-II,3-1-0,4,B,5,CS31007,COMPUTER,ORGANIZATION,&,ARCHITECTURE,3-1-0,4,B,5,CS39001,COMPUTER,ORGANIZATION,LABORATORY,0-0-6,4,EX,5,CS39003,COMPILERS,LABORATORY,0-0-3,2,A,5,CS60050,A,5,ET60007,A
Kaushal Ayush,17CS10006,9.45 - 9.45 - 9.43,5,CS31003,COMPILERS,3-0-0,3,EX,5,CS31005,ALGORITHMS,-II,3-1-0,4,B,5,CS31007,COMPUTER,ORGANIZATION,&,ARC
thealphadollar /
Last active March 26, 2019 15:21
A better test for testing inform_mailing_list function.
class KeyFileNotFound(IOError):
def __init__(self, key_file_path):
LOG.error("Error: secret key not found. Create it with:")
if not os.path.isdir(os.path.dirname(key_file_path)):
print('mkdir -p', os.path.dirname(key_file_path))
LOG.error('head -c 24 /dev/urandom >', key_file_path)
thealphadollar /
Created March 12, 2018 14:32
To show how the ABC concept will be used to create Nephos API
import abc
class Nephos():
superclass Nephos with all necessary definitions
__metaclass__ = abc.ABCMeta
# independent function
#!/usr/bin/env python2
requires python-pydrive
import multiprocessing
import os
from import GoogleDrive
from pydrive.auth import GoogleAuth