Skip to content

Instantly share code, notes, and snippets.

Using the AWS Management Console

  1. Navigate to the S3 console.
  2. Select the bucket containing your file.
  3. Locate the specific file (object) in the bucket.
  4. Click the Actions dropdown or directly select the file and choose Edit object permissions.
  5. Update the permissions:
    • Add or remove Public access (via the Everyone group).
    • Allow or revoke read or write permissions as needed.
  6. Save the changes.
#!/bin/bash
BUCKET_NAME="your-bucket-name"
FILE_NAME="myfile"
if [ "$#" -ne 1 ]; then
echo "Usage: $0 [on|off]"
exit 1
fi

Aitra: Intelligent Code Intelligence Platform

The Enterprise Challenge

  • 40% of developer time spent on code review and unit testing
  • Inconsistent code quality
  • High onboarding and knowledge transfer costs
  • Security and compliance risks

Aitra's Solution: Intelligent, Secure, Context-Aware Automation

Code Quality Analysis: C++ File Utility Vulnerability and Performance Report

Executive Summary

The provided C++ application demonstrates multiple critical code quality issues, security vulnerabilities, and memory management problems. While the code appears functional, it contains significant risks that would render it unsuitable for production environments.

Detailed Code Quality Assessment

1. Memory Management Vulnerabilities

Critical Issues:

  • Unmanaged Raw Pointers

AWS Lambda API Setup Guide

This guide explains how to set up an AWS Lambda function with API Gateway integration using the AWS CLI.

Prerequisites

  • AWS CLI installed and configured
  • Java 11
  • Gradle
  • AWS Account with appropriate permissions
import subprocess
import json
import os
import time
from pathlib import Path
def run_command(command, shell=True):
"""Execute a shell command and return the output"""
try:
result = subprocess.run(command, shell=shell, check=True, capture_output=True, text=True)

Hello World AWS Lambda Function with Gradle

This guide walks you through creating a simple Hello World AWS Lambda function using Java and Gradle, ready for deployment using our automated deployment script.

Project Setup

  1. Create a new directory for your project:
mkdir hello-world-lambda
cd hello-world-lambda

JavaScript Take-Home Assignment

URL Shortener Service

Create a simple URL shortener service using Node.js and Express. The service should:

  1. Accept a long URL and return a shortened version
  2. Redirect users from the shortened URL to the original URL
  3. Keep track of how many times each shortened URL has been accessed
  4. Include basic error handling and input validation

Learning Dashboard 📚

Learning Dashboard for managing course content and assignments.

Features 🌟

  • Auth0 authentication
  • Lecture recordings library
  • Assignment submissions (GitHub/Video links)
  • Teacher grading interface
  • Student leaderboard

Code Quality Analysis Report

✅ Grade: B

✓ PASS

Overall Score: 85%