Skip to content

Instantly share code, notes, and snippets.

View arnvgh's full-sized avatar
🦀
(๑>◡<๑)

Arunava Ghosh arnvgh

🦀
(๑>◡<๑)
View GitHub Profile
@arnvgh
arnvgh / birthdaywish.py
Created September 17, 2022 08:28
Wishes Hppy Birthday to you
import time
from random import randint
for i in range(1, 100):
print(' ')
space = ' '
for i in range(1, 1000):
count = randint(1, 99)
@arnvgh
arnvgh / console-log.js
Created October 1, 2022 11:45
Console logs all texts of same classes of a website :)
// Use inspect element to get classes of a particular element (Dont remove that "." before className you noob 🤡 )
const className = document.querySelectorAll('.<CHANGE WITH THE CLASS NAME>');
for (i = 0; i < className.length; i++) {
console.log(className[i].innerText);
}
@arnvgh
arnvgh / countries.json
Created October 10, 2022 14:02
List of All Countries in JSON
{
"af": {
"name": "Afghanistan",
"official_name": "Islamic Republic of Afghanistan",
"topLevelDomain": [
".af"
],
"alpha2Code": "AF",
"alpha3Code": "AFG",
"cioc": "AFG",
// Simple script to download multiple whatssapp files at once
// Go the Chat-> Media -> Select any File -> paste the code in browser console -> Viola! Now Download all of them at once XD
document.querySelectorAll('[data-testid="checkbox-round-passive"]').forEach(s => s.click())
@arnvgh
arnvgh / banner.module.css
Created October 26, 2022 10:32
Code Snippets for My NextJs blog :P
/** By default, this is a mobile breakpoint **/
.container {
margin-bottom: 1rem;
}
.title {
letter-spacing: -0.025em;
font-weight: 800;
color: var(--text-black);
@arnvgh
arnvgh / discord_file_limit.js
Created November 19, 2022 14:48
a trick to get it to 25MB (discord 8mb limit :P), hint:
let wpRequire;
window.webpackChunkdiscord_app.push([[ Math.random() ], {}, (req) => { wpRequire = req; }]);
mod = Object.values(wpRequire.c).find(x => typeof x?.exports?.Z?.isDeveloper !== "undefined");
usermod = Object.values(wpRequire.c).find(x => x?.exports?.default?.getUsers)
nodes = Object.values(mod.exports.Z._dispatcher._actionHandlers._dependencyGraph.nodes)
try {
nodes.find(x => x.name == "ExperimentStore").actionHandler["OVERLAY_INITIALIZE"]({user: {flags: 1}})
} catch (e) {}
oldGetUser = usermod.exports.default.__proto__.getCurrentUser;
usermod.exports.default.__proto__.getCurrentUser = () => ({hasFlag: () => true})
document.addEventListener('keydown', function(event) {
if (event.key === 'YOUR_KEYBINDING'') {
// Get the element with the class
var element = document.getElementsByClassName("text-sm-bold-1Dtt0R mentionButton-3C5YMI")[0];
element.click();
}
});
@arnvgh
arnvgh / ag.sh
Last active February 4, 2023 09:10
# pacman -S --needed git base-devel
# git clone https://aur.archlinux.org/yay-bin.git
# cd yay-bin
# makepkg -si
sudo pacman -Sy wezterm
yay -Sy hyprland-bin polkit-kde-agent dunst grimblast rofi rofi-emoji \
wl-clipboard wf-recorder wlogout grimblast-git hyprpicker-git hyprpaper-git \
xdg-desktop-portal-hyprland-git ffmpegthumbnailer tumbler wtype colord \
---------------------------------------------------------------------------------------------------------------------
# Copyright Arunava Ghosh, 2023
# Star the gist, if it helped you, saved your time ⭐
---------------------------------------------------------------------------------------------------------------------
# DISCLAIMER: I'm not responsibe for any damage, due to this script, please go through the package names before using.
---------------------------------------------------------------------------------------------------------------------
# Open "adb shell" aand paste this..
---------------------------------------------------------------------------------------------------------------------

Keybase proof

I hereby claim:

  • I am arnvgh on github.
  • I am arnvgh (https://keybase.io/arnvgh) on keybase.
  • I have a public key ASA0njZEKvdt-gM2GQGtDnYZwYjMiazVlFsfdOSyB62UGAo

To claim this, I am signing this object: