Skip to content

Instantly share code, notes, and snippets.

View AnmolTomer's full-sized avatar
💻
Learning

Anmol Tomer AnmolTomer

💻
Learning
View GitHub Profile
@AnmolTomer
AnmolTomer / simplify.md
Last active August 19, 2026 20:21
Skills
name simplify
description Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality. Focuses on recently modified code unless instructed otherwise.

Simplify

Goal

Review the complete body of work and simplify it. Remove dead code, simplify code that can now be simpler, reuse code that makes sense to share, and find leftovers from previous attempts.

@AnmolTomer
AnmolTomer / detect-litellm-compromise.sh
Created March 25, 2026 09:41
detection script that checks all of the following in one pass: installed litellm versions (pip, poetry, uv), the malicious `.pth` file in site-packages and uv cache, TeamPCP persistence artifacts, network IOCs in logs, Kubernetes lateral movement pods, and unpinned litellm in your local dependency files.
#!/usr/bin/env bash
# detect-litellm-compromise.sh
# Checks whether your system was affected by the LiteLLM supply chain attack (March 24, 2026).
# Run this on any machine where Python packages may have been installed during the exposure window.
#
# Usage: bash detect-litellm-compromise.sh
# No arguments, no dependencies beyond Python 3 and standard unix tools.
set -euo pipefail
@AnmolTomer
AnmolTomer / delete_videos.js
Created January 10, 2026 07:35
Youtube Watch Later Playlist Management Scripts
function removeVideos() {
const videos = document.querySelectorAll('ytd-playlist-video-renderer');
let index = 0;
function processVideo() {
if (index >= videos.length) {
console.log("Finished processing all videos.");
return;
}
@AnmolTomer
AnmolTomer / privacy_policy.txt
Created July 6, 2025 01:41
Policy Doc for NPTEL Quiz Hide Extension
Privacy Policy for NPTEL Quiz Answer Hider
This extension does not collect, store, or transmit any personal data.
Data Usage:
- The extension only stores your preference for showing/hiding quiz answers locally in your browser
- No data is sent to external servers
- No tracking or analytics are performed
- No personal information is accessed
@AnmolTomer
AnmolTomer / check_fc_25_status.py
Last active December 4, 2024 12:25
Checks on EA Server page if FC25 is down or not
from bs4 import BeautifulSoup
import requests
import pprint
url = 'https://help.ea.com/en/help/faq/are-ea-servers-down/'
def check_server_status():
url = "https://help.ea.com/en/help/faq/are-ea-servers-down/"
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36'
@AnmolTomer
AnmolTomer / .gitignore
Last active July 4, 2025 10:58
bits/stdc++.h file for mac - Tested on Sonoma 14.6.1 -> 2024-08-14
# Log file
*.log
# BlueJ files
*.ctxt
# Mobile Tools for Java (J2ME)
.mtj.tmp/
import random
import sys
from optparse import OptionParser
import Util
from Connection import Connection
class SSHBruteForce():
def __init__(self):
@AnmolTomer
AnmolTomer / CentOS7.md
Last active February 9, 2021 21:57
CentOS 7 - 2009 Setup Oracle VirtualBox
@AnmolTomer
AnmolTomer / WINDOWS_10.md
Last active September 6, 2021 23:12
WINDOWS 10 PS SNIPPETS
  1. GET DETAILS OF APPLICATION WITH PID RUNNING ON A SPECIFIC PORT

Replace 5500 with the port that you want to get info on.

  • Get-Process -Id (Get-NetTCPConnection -LocalPort 5500).OwningProcess Reference
  1. KILL TASK WITH SPECIFIC PID - WINDOWS 10
  • taskkill /F /PID 7644
  1. SHORTEN THE SYSTEM PATH VARIABLE IF YOU REACH 2047 LIMIT
@AnmolTomer
AnmolTomer / New_VM_Machine.md
Last active February 3, 2021 13:29
VMWare New Machine Tweaks

1. Enable Clipboard Copy in VMWare Workstation

When you create a new VM, in my case I store my new VMs in Documents\Virtual Machines directory, so for e.g. if I create the VM named wot_lab then for that you have a file with extension wot_lab.vmx created as well. You can open <vm_name>.vmx file with notepad and to enable clipboard copy paste between host and guest you need to paste these two params:

isolation.tools.copy.disable = "FALSE"
isolation.tools.paste.disable = "FALSE"