NOTE: REPLACE YOUR AWS ACCOUNT ID IN THE LAMBDA FUNCTION CODE.
AWS S3 Event triggering is a very popular project used by top companies in the Industry.
Here are some examples of top companies that use S3 event triggering:
Netflix: Netflix use S3 event triggering to automatically process video files uploaded to Amazon S3, enabling seamless content ingestion and processing.
Airbnb: This lodging and homestays aggregator use S3 event triggering to automatically process and analyze data stored in Amazon S3, such as guest reviews and booking information.
Expedia: They use S3 event triggering to automatically process and analyze data stored in Amazon S3, such as travel bookings, user profiles, and pricing information, to power their personalized travel recommendations and search features.
A comprehensive shell script that monitors and reports the health status of a Linux system. It provides real-time information about system resources including disk usage, memory usage, and running services.
- Disk Usage Monitoring: Displays disk space usage for all mounted filesystems
- Memory Usage Tracking: Shows RAM and swap memory consumption
- Service Status Check: Lists all running services on the system
- Formatted Output: Clean, easy-to-read output with section headers
- Linux/Unix-based operating system
- Bash shell
A shell script that lists all users (collaborators) associated with a GitHub repository using the GitHub API. The script requires a repository name and a GitHub Personal Access Token for authentication.
- Lists all collaborators of a GitHub repository
- Uses GitHub REST API v3
- Secure authentication using Personal Access Token
- Displays usernames of all users with access to the repository
- Supports both public and private repositories
- Linux/Unix-based operating system with Bash
curlcommand-line tooljq(JSON processor) - for parsing API responses- GitHub Personal Access Token with appropriate permissions
git clone https://github.com/Ankito45/Shell-Scripting-Projects.git
cd Shell-Scripting-Projects# On Ubuntu/Debian
sudo apt-get install curl jq
# On CentOS/RHEL
sudo yum install curl jq
# On macOS
brew install curl jqchmod 777 list_users.shGET https://api.github.com/repos/{owner}/{repo}/collaborators
Your GitHub token needs:
- Read access to the repository
- For private repos:
reposcope - For organization repos:
read:orgscope
- Check repository name format:
owner/repo - Verify token has access to the repository
- Ensure repository exists
- Token may be expired or invalid
- Generate a new Personal Access Token
- Check token permissions/scopes
- Install jq:
sudo apt-get install jq
- Repository might have no collaborators
- Token might lack necessary permissions
- Never commit your token to version control
- Store tokens in environment variables or secure vaults
- Use tokens with minimum required permissions
- Rotate tokens regularly
- Consider using
.gitignoreto exclude token files
# Set token as environment variable
export GITHUB_TOKEN="ghp_xxxxxxxxxxxxxxxxxxxx"Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.
