Skip to content

Instantly share code, notes, and snippets.

View im-noob's full-sized avatar
🎯
I'm Iron man

Amritesh kumar im-noob

🎯
I'm Iron man
View GitHub Profile
@im-noob
im-noob / Delete Retweet.js
Created March 24, 2024 14:40
Delete Retweet.js
/* Step 1*/
myInterval = setInterval(function(){
window.scrollTo(0, document.body.scrollHeight);
},10000)
/* Step 2*/
@im-noob
im-noob / Tapo Camera TP Link Live Stream in Python in Open CV2 .py
Last active February 3, 2024 23:05
Tapo Camera TP Link Live Stream in Python in Open CV2
@im-noob
im-noob / TapoCameraTPLinkRecordingDownload.py
Created February 3, 2024 21:42
Tapo Camera TP Link Recording Download in python
from pytapo import Tapo
from pytapo.media_stream.downloader import Downloader
import asyncio
import os
#sudo apt install ffmpeg
#python3 -m pip install pytapo
#https://github.com/JurajNyiri/pytapo
@im-noob
im-noob / azure_blob_storage_dataframe.py
Created October 31, 2023 14:12 — forked from Dminor7/azure_blob_storage_dataframe.py
Upload DataFrame to Azure Blob Storage as CSV file and Download CSV file as dataframe. Azure Python v12.5.0
import os, uuid
from io import BytesIO
from datetime import datetime
from urllib.parse import urlparse
from azure.storage.blob import BlobServiceClient
import pandas as pd
def azure_upload_df(container=None, dataframe=None, filename=None):
"""
Upload DataFrame to Azure Blob Storage for given container
@im-noob
im-noob / airflow Docker Basic Command.md
Created October 15, 2023 15:31
Airflow Docker Basic Commands
    1. sudo docker compose up airflow-init
    2. sudo docker compose up
    3. sudo docker exec -it $(sudo docker compose ps -q airflow-webserver) bash
default_timezone = Asia/Kolkata
load_examples = False
default_ui_timezone = Asia/Kolkata
parsing_cleanup_interval = 30
@im-noob
im-noob / airflow.service
Created October 15, 2023 14:21
Airflow SystemCtl SystemMD Config for webserver and scheduler
# /lib/systemd/system/airflow-scheduler.service
[Unit]
Description=Airflow scheduler daemon
After=network.target postgresql.service mysql.service redis.service rabbitmq-server.service
Wants=postgresql.service mysql.service redis.service rabbitmq-server.service
[Service]
Environment="PATH=$PATH:/home/aarav/anaconda3/envs/airflow/bin"
User=aarav
@im-noob
im-noob / Domain Name Check in python.py
Created April 25, 2023 19:33
Domain Name Check in python
!pip install python-whois
import whois
final_list = set()
def check_domain(name):
try:
data = whois.whois(name)
@im-noob
im-noob / Amazon Best Seller Page filter.js
Last active March 15, 2023 18:55
Amazon Best Seller Page filter for temper monkey
// ==UserScript==
// @name Filter Amazon
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.amazon.in/gp/bestsellers/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=amazon.in
// @grant none
// ==/UserScript==
@im-noob
im-noob / millions Request with payload.py
Created December 2, 2022 17:46
millions or request with payload and headers with python request and httio
'''
Reuire More than 12 GB ram to process all the request..
!pip install nest-asyncio
'''
import asyncio
from aiohttp import ClientSession
import nest_asyncio
nest_asyncio.apply()
@im-noob
im-noob / Remove string data from nested list and also print index before printing.py
Created September 22, 2022 05:06
Remove string data from nested list and also print index before printing
# Remove string data from nested list and also print index before printing
lst=[
[1,2,3],
[11,12,'a','b','C','D', 4],
[21,'t',23],
[4,5,6,['raja','baja', 'saja', 4444]],
[7,87,9],
'demo',
12.5