Skip to content

Instantly share code, notes, and snippets.

View bhaireshm's full-sized avatar
🐕

Bhairesh M bhaireshm

🐕
View GitHub Profile
// app.js
const express = require('express');
const http = require('http');
const socketIO = require('socket.io');
const mongoose = require('mongoose');
const messageSchema = new mongoose.Schema({
user: String,
text: String,
timestamp: { type: Date, default: Date.now },
@bhaireshm
bhaireshm / migrate_codecommit_to_github.sh
Created October 28, 2024 18:13
This script facilitates the seamless migration of repositories from AWS CodeCommit to GitHub. It ensures that migrations are not duplicated, verifies the existence of GitHub repositories, and creates new ones if needed. The script logs all activities and maintains a status file to track which migrations have been completed successfully.
#!/bin/bash
# ------------------------------------------------------------------------------------ #
# AWS CodeCommit to GitHub Migration Script
# Author: bhaireshm
# Date: 2024-10-28
# Version: 1.0.0
# Description:
# This script facilitates the seamless migration of repositories from AWS CodeCommit to GitHub.