Skip to content

Instantly share code, notes, and snippets.

View bhavaniravi's full-sized avatar
🎯
Focusing

Bhavani Ravi bhavaniravi

🎯
Focusing
View GitHub Profile
@bhavaniravi
bhavaniravi / gist:20fdea15201005a84b1eb675bae61cee
Created August 13, 2020 05:57
Linkedin accept invitation or unfollow
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
function clickButton(classname){
accept_buttons = document.getElementsByClassName(classname)
for(i=0; i<accept_buttons.length; i++){accept_buttons[i].click(); sleep(2000);}
}
@bhavaniravi
bhavaniravi / twitter-giveaway.py
Created August 31, 2021 15:48
Used this script to generate twitter giveaway based on replies
import tweepy
from dotenv import load_dotenv
import os
import logging
import time
load_dotenv()
CONSUMER_KEY = os.environ["CONSUMER_KEY"]
@bhavaniravi
bhavaniravi / untweeps.js
Created November 14, 2021 23:43
Untweeps Check All
function check(ele) {
ele.checked = true;
}
x = document.getElementsByName("id");
x.forEach(element => check(ele));
@bhavaniravi
bhavaniravi / unfollow-twitter-topics.js
Created June 21, 2022 13:12
Unfollow twitter topics
elements = document.getElementsByClassName("r-15ysp7h");
for (let index = 0; index < elements.length; index++) {elements[index].click()}
@bhavaniravi
bhavaniravi / airflow_local_setup.bash
Created January 17, 2023 14:31
Airflow Local setup
export AIRFLOW_HOME="$(pwd)/airflow-local"
# -p ignores if file already exists
mkdir -p "$(pwd)/airflow-local"
# Install Airflow using the constraints file
AIRFLOW_VERSION=2.4.3
PYTHON_VERSION="$(python --version | cut -d " " -f 2 | cut -d "." -f 1-2)"
CONSTRAINT_URL="https://raw.githubusercontent.com/apache/airflow/constraints-${AIRFLOW_VERSION}/constraints-${PYTHON_VERSION}.txt"