Skip to content

Instantly share code, notes, and snippets.

View suhailroushan13's full-sized avatar
💻
suhailroushan.com

Suhail Roushan suhailroushan13

💻
suhailroushan.com
View GitHub Profile
@suhailroushan13
suhailroushan13 / GitHub.txt
Last active March 11, 2025 15:49
GitHub Setup
Git and GitHub Setup
To Install Git In Ubuntu
1. sudo apt update && sudo apt install git -y
2. git --version
To Install Git In MacOS
1.brew install git
@suhailroushan13
suhailroushan13 / script.sh
Created February 23, 2025 21:37
2 times npm
sudo chown -R $USER:$USER ~/.npm
sudo chown -R $USER:$USER node_modules package-lock.json
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
npm config delete proxy
npm config delete https-proxy
export PATH=$PATH:$(npm bin -g)
@suhailroushan13
suhailroushan13 / script.sh
Created February 10, 2025 10:22
Suhail DevOps
Steps for Deployment WebApp / Websites
1.Make sure you have webapp or website is working good at local
2.make a GitHub repo and push the code to GitHub without node_modules
3.Changes in GitHub Repo
- Add Description
- Add URL
- Add Keywords
- Add README.md
sudo apt install -y git
sudo apt install -y net-tools
sudo timedatectl set-timezone Asia/Kolkata
sudo apt-get install -y nginx
sudo apt install -y snapd
sudo snap install core
sudo apt-get install -y python3-certbot-nginx
sudo snap install --classic certbot
sudo ln -s /snap/bin/certbot /usr/bin/
sudo apt install -y python3-pip
@suhailroushan13
suhailroushan13 / app.js
Created February 9, 2025 20:20
Basic app.js
import express from "express";
import fs from "fs";
import path from "path";
import { fileURLToPath } from "url";
import config from "config";
import cors from "cors";
// Database connection
import "./utils/dbConnect.js";
npm init -y
npm install express socket.io
import express from "express";
import { createServer } from "http";
import { Server } from "socket.io";
const app = express();
@suhailroushan13
suhailroushan13 / script.sh
Created January 31, 2025 22:47
Cloud New Script 2025
#!/bin/bash
# Ensure the script runs with root privileges
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root. Use sudo!"
exit 1
fi
# Get the default user (who ran sudo)
DEFAULT_USER=$SUDO_USER
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>To-Do List</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Posts with Axios and Bootstrap</title>
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Axios -->
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
@suhailroushan13
suhailroushan13 / index.html
Created January 20, 2025 23:13
Wexa AI Template
<!DOCTYPE html>
<html data-wf-domain="www.wexa.ai" data-wf-page="65f99f0a2457ec47591bb4c2" data-wf-site="65dec7222c3d359a25065704"
lang="en" data-wf-locale="en">
<head>
<meta charset="utf-8" />
<title>Wexa.ai | AI Automation for Productivity</title>
<meta
content="Wexa.ai is an advanced AI automation platform designed to enhance enterprise productivity by automating routine tasks and processes. With a suite of powerful tools, including Wexa Coworkers, Tables, and Connectors, Wexa enables businesses to streamline operations, save time, and reduce costs. Ideal for companies of all sizes, Wexa simplifies complex workflows, integrates seamlessly with various systems, and adapts to your unique business needs"
name="description" />