Skip to content

Instantly share code, notes, and snippets.

View vimfn's full-sized avatar
🏴‍☠️
0x4B1D

vimfn

🏴‍☠️
0x4B1D
View GitHub Profile
@vimfn
vimfn / why.md
Last active March 9, 2024 10:02

Why is your profile private?

I made the decision to set my GitHub profile to private for personal reasons that I'd prefer not to delve into. It's important to me to maintain a respectful atmosphere and avoid any potential misunderstandings. Sometimes, dealing with unwanted attention can feel unsettling, and it's something I'd rather not have to manage.

If you still feel like you want to see how it looked, here is the web archive to save you one step: github.com/arnvgh (Snapshot taken on 09 March, 2024)

What now?

Not much has changed functionally. While you won't be able to view the GitHub heatmap or see all the contributions at once, everything else remains intact – the repositories, commits, information, and so forth are all there. You can still engage with my projects by starring them, creating pull requests, and opening issues.

@vimfn
vimfn / settings.json
Created January 21, 2024 09:02
VSCodium settings (2024)
{
"window.zoomLevel": 1,
"workbench.startupEditor": "none",
"window.menuBarVisibility": "hidden",
"workbench.colorTheme": "Monokai Pro (Filter Spectrum)",
"workbench.iconTheme": "Monokai Pro (Filter Spectrum) Icons",
"vscord.app.privacyMode.enable": true,
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},

Arch Install Guide For Dummies

  • connect to internet and just use archinstall or follow the rest of guide if you don't want to use it.
  • lsblk (list block devices)
  • partition disks using cfdisk
    • /boot/efi (>100M and < 1G)
    • SWAP (2x your system memory)
    • / (root) (rest of the space)
    • opt. seperate /home partition (not covered in this guide)
  • format to specific filetypes
@vimfn
vimfn / screensht
Created April 13, 2023 08:01
Screenshot go brrrr
#!/bin/bash
set -o pipefail
# Directory
_SCREENSHOT_DIR_=$HOME/Pictures/Screenshots
_ORIGINAL_DIR_=$_SCREENSHOT_DIR_/Original
_LOG_FILE_="$_SCREENSHOT_DIR_/.screensht.log"
# Color
_FG_COLOR_='#cdd6f4'
@vimfn
vimfn / 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..
---------------------------------------------------------------------------------------------------------------------
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();
}
});
@vimfn
vimfn / 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})
@vimfn
vimfn / 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);
// 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())