Skip to content

Instantly share code, notes, and snippets.

View ajtazer's full-sized avatar
:bowtie:

Anuj Rawat ajtazer

:bowtie:
View GitHub Profile
@ajtazer
ajtazer / What's Actually Inside Claude's Cloud? I Cracked It Open and Listed Every Spec.md
Created June 14, 2026 11:51
A live teardown of the cloud box running Claude Code: CPU, RAM, root access, toolchain, and the allowlist firewall that blocks the open web.

I Tore Open Anthropic's "Claude Cloud" Sandbox — Here's Exactly What's Inside the Machine Running Your AI

4 Xeon cores, 15 gigs of RAM, root access, and a firewall that quietly says "no." I ran the commands so you don't have to.


Everyone's talking about Claude Code running "in the cloud" now. You fire off a task from your phone, close the app, and somewhere a machine spins up, clones your repo, and does the work. But nobody tells you what that machine actually is.

So I did the obvious thing. I asked it to profile itself — CPU, memory, disk, network, the firewall, the limits, all of it — and dumped every result. No marketing slides. Just lscpu, free -h, /proc, and a pile of curl probes against the egress firewall.

@ajtazer
ajtazer / DatasetOrderOptimization.md
Created December 7, 2025 12:39
AMAZON OA CODE SOLUTIONS | ALL TEST CASES PASSED

Amazon Robotics is optimizing the dataset shipment process.
You are given a binary string shipmentData consisting only of '0' and '1'.

Process Definition: Start with an empty finalSequence.

For each character c in shipmentData from left to right:

  1. Append c to finalSequence
  2. Reverse the entire finalSequence
@ajtazer
ajtazer / build_hangover_montage.py
Created October 4, 2025 13:38
`build_hangover_montage.py` creates a video montage from images and videos, synced to a chosen audio track. It processes images (portrait or landscape) by resizing, cropping, or adding a blurred background. Videos are either kept at their original length, sped up, or split into chunks. The final montage is adjusted to the audio's duration and sa…
import os
import random
import logging
from typing import List, Tuple, Optional
from pathlib import Path
import numpy as np
from PIL import Image, ImageFilter
# Try to enable HEIC support if pillow-heif is available
@ajtazer
ajtazer / InstaCurl.sh
Created June 3, 2025 10:18
Export your Instagram cookies in Netscape format using a browser extension like Cookie-Editor (choose Netscape format on export). Run the script and enter the full path to your cookie file and the Instagram username (without @) when prompted. The script fetches and downloads reels/videos from that user’s posts using your authenticated session.
#!/bin/bash
# Prompt for cookie file path (Netscape format)
read -p "Enter path to your cookies file (Netscape format): " COOKIE_FILE
if [[ ! -f "$COOKIE_FILE" ]]; then
echo "Cookie file not found! Exiting."
exit 1
fi
# Prompt for username (no @)
@ajtazer
ajtazer / yt-adhd.js
Created April 30, 2024 16:33
if anyone is like me and gets distracted from the lecture playlist often, paste this code in your browser console, and it will auto play the video 15 secs after you pausing it. Works great for my adhd.
async function checkAndResumeVideo() {
const videoElement = document.querySelector('video');
if (videoElement) {
if (videoElement.paused) {
await new Promise(resolve => setTimeout(resolve, 15000));//apne hisaab se time change karlo
videoElement.play();
@ajtazer
ajtazer / Cybersecurity AI Enabler Intern Interview
Created July 26, 2023 15:47
Cybersecurity AI Enabler Intern Interview for RediMind
Question: Tell us about a cybersecurity project or task you've worked on, highlighting any aspects that involved AI or ML.
Answer: I've worked on two cybersecurity projects:
RAT Testing: Testing various Remote Access Trojans (RATs) on different platforms and analyzing their code for features and vulnerabilities.
Emotion Detection using AI: Developing a machine learning model for emotion detection from facial expressions with over 90% accuracy.
Question: Describe a cybersecurity challenge you faced and how you addressed it. How did this experience contribute to your understanding of the field?
Answer: I participated in the IIT Roorkee CTF event and creatively gained root access to a Linux system. This taught me the importance of creativity, understanding system mechanics, and tools/techniques.
import hashlib
import time
# Get 100 input strings
inputs = []
print("Enter 100 input strings:")
for i in range(100):
inputs.append(input())
# Hash each input using MD5 and concatenate the results
#!/bin/bash
filename="flag_999.tar.gz"
while [[ -f $filename ]]
do
tar -xzf "$filename"
rm "$filename"
filename=$(ls | grep ".tar.gz" | tail -1)
done
@ajtazer
ajtazer / Microsoft_Login.html
Created January 7, 2023 18:21
Responsive Microsoft Login Page For Roundtable Recruitment task
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Microsoft Login</title>
</head>
<body>
<!-- css start -->
@ajtazer
ajtazer / G!tHub RDP
Last active May 16, 2022 16:19
2 accounts suspended, lmaodedxd.. hope this trick works again in future well
████████████████████████████████████
██▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓██
██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██
██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██
██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██
██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██
██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██
██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██
██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██
██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██