Skip to content

Instantly share code, notes, and snippets.

View mishra-ankit's full-sized avatar
🤔
pondering the pointlessness of statuses on a code hosting website

Ankit Mishra mishra-ankit

🤔
pondering the pointlessness of statuses on a code hosting website
View GitHub Profile
@mishra-ankit
mishra-ankit / readme.md
Created March 31, 2023 13:41
podcastnotes.org remove paywall/subscription wall bookmarklet
javascript:(function(){document.querySelector(".paywall-overlay").remove();document.querySelectorAll('[style="color: transparent; text-shadow: rgba(0, 0, 0, 0.9) 0px 0px 5px;"]').forEach(t => t.style = "");})();
  • Click on the bookmarklet when the the page shows the hidden content, you should be abel to see the whole document now

Or a bookmarklet version -

javascript:(function(){document.querySelector(".paywall-overlay").remove();
document.querySelectorAll('[style="color: transparent; text-shadow: rgba(0, 0, 0, 0.9) 0px 0px 5px;"]').forEach(t => t.style = "");})();
@mishra-ankit
mishra-ankit / readme.md
Created September 28, 2022 13:50
Find JavaScript variables that are leaking into the global scope
@mishra-ankit
mishra-ankit / gist:c8cd1c3d02ec1ae9377b4a85e7edb5d9
Created September 17, 2022 16:15
Instagram Scrapy spider (posts scraper) with API from https://webscraping.ai
# -*- coding: utf-8 -*-
import scrapy
from urllib.parse import urlencode
import json
from datetime import datetime
API = 'api-key'
user_accounts = ['nike']
import logging
@mishra-ankit
mishra-ankit / script.js
Last active September 5, 2022 12:18
Modi Extract speech and Youtube
// https://www.narendramodi.in/hi/text-of-prime-minister-narendra-modi-s-address-at-launch-of-development-projects-in-mangalore-564173
articleBody = document.querySelector(".articleBody");
youtubeURL = articleBody.querySelector("iframe").src;
nodes = Array.from(articleBody.getElementsByTagName("p"))
texts = [];
nodes.forEach(p => {
p.style.color = "red"
const text = p.innerText.trim()
@mishra-ankit
mishra-ankit / __YoutubeMp3DownloadAndSplit.md
Created September 4, 2022 13:34 — forked from Ashwinning/__YoutubeMp3DownloadAndSplit.md
Python Youtube MP3 Splitter #gistblog #python

Python Youtube MP3 Splitter

A Python program that splits mp3 files from YouTube albums into individual songs.

Dependencies

  • Python 2.7+
  • ffmpeg

Getting Started

@mishra-ankit
mishra-ankit / curse_words.txt
Last active August 24, 2022 05:06
List of curse words
2 girls 1 cup
2g1c
4r5e
5h1t
5hit
a$$
a$$hole
a2m
a54
a55
@mishra-ankit
mishra-ankit / mongo-db-export.js
Created March 17, 2022 14:18
Export MongoDB as JSON and BSON (all collections)
const execSync = require('child_process').execSync;
// read first argument
var outputFolder = process.argv[2];
if (!outputFolder) {
console.log('Please specify output folder');
process.exit(1);
}
@mishra-ankit
mishra-ankit / index.html
Created March 10, 2022 07:25
MediaPipe - Pose
<body>
<style>
.square-box {
width: 33%;
height: 0;
padding-top: 33%;
position: absolute;
right: 20px;
top: 20px;
}