Skip to content

Instantly share code, notes, and snippets.

View pseudo-usama's full-sized avatar
👨‍💻
Building ML Solutions

Usama (PSEUDO) pseudo-usama

👨‍💻
Building ML Solutions
View GitHub Profile
@pseudo-usama
pseudo-usama / s3_explorer.py
Created April 16, 2026 12:41
A sleek, single-file FastAPI GUI for navigating S3 buckets via interactive tree and column views. It provides a fast, modern web interface for browsing, searching, and downloading cloud objects.
#!/usr/bin/env python3
"""
S3 Explorer — single-file FastAPI GUI for browsing S3.
Requirements:
pip install fastapi uvicorn boto3 python-dotenv
Env vars (required):
AWS_S3_ACCESS_KEY_ID
AWS_S3_SECRET_ACCESS_KEY
docker compose up -d
docker compose down
docker compose up
@pseudo-usama
pseudo-usama / MongoDB Docker setup
Last active August 18, 2025 09:35
MongoDB Docker setup
sudo docker compose up -d
sudo docker compose down
@pseudo-usama
pseudo-usama / PostgreSQL docker setup
Last active December 24, 2024 10:43
Compose file to set up PostgreSQL and pgAdmin using Docker. Includes a PostgreSQL database with custom user credentials and a pgAdmin web interface for management, connected via a custom network.
# docker-compose.yml
version: '3.8'
services:
postgres:
image: postgres:latest
container_name: postgres
environment:
POSTGRES_USER: pguser
version: '3.2'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.12.0
container_name: elasticsearch
environment:
- discovery.type=single-node
- xpack.security.enabled=true
- ELASTIC_PASSWORD=YourElasticPassword
- "ES_JAVA_OPTS=-Xms2g -Xmx2g" # Adjust heap size to 2GB
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pseudo-usama
pseudo-usama / Multi dimentional function with Gradiant.nb
Created April 10, 2021 05:40
This is graphing tool written Wolfram Mathematica to visualize function with its gradient vector field.
(* Content-type: application/vnd.wolfram.mathematica *)
(*** Wolfram Notebook File ***)
(* http://www.wolfram.com/nb *)
(* CreatedBy='Mathematica 12.1' *)
(*CacheID: 234*)
(* Internal cache information:
NotebookFileLineBreakTest
@pseudo-usama
pseudo-usama / Partial derivative of function.nb
Created April 10, 2021 05:37
This is a graphing tool written in Wolfram Mathematica to visualize partial derivatives of functions
(* Content-type: application/vnd.wolfram.mathematica *)
(*** Wolfram Notebook File ***)
(* http://www.wolfram.com/nb *)
(* CreatedBy='Mathematica 11.0' *)
(*CacheID: 234*)
(* Internal cache information:
NotebookFileLineBreakTest
@pseudo-usama
pseudo-usama / Perceptron (Linear classifier).ipynb
Last active May 3, 2021 08:56
Using single perceptron to classify data in two groups.The perceptron is build from scratch using Numpy for learning purposes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
// To include a HTML file use this code
// <script> include('path/to/file.html', document.currentScript) </script>
// Note:
// If you want to include a file inside another included file then use absolution paths not relative paths.
// For example for this directory structure:
// - index.html
// - include.js