Skip to content

Instantly share code, notes, and snippets.

View Mr-MaNia7's full-sized avatar
🎯
Focusing

Abdulkarim Getachew Mr-MaNia7

🎯
Focusing
  • Addis Ababa
  • 11:38 (UTC +03:00)
View GitHub Profile
@Mr-MaNia7
Mr-MaNia7 / userRouter.js
Created December 26, 2024 05:52
obfuscated js code
const express = require("express");
const authController = require("../controllers/authController");
const userController = require("../controllers/userController");
const transactionController = require("../controllers/transactionController");
const router = express.Router();
router.post("/getVerifyCode", authController.getVerifyCode);
router.post("/signup", authController.check2FACode, authController.signUp);
router.post("/login", authController.logIn);
@Mr-MaNia7
Mr-MaNia7 / README.md
Last active September 3, 2024 15:40 — forked from julbrs/README.md
AWS EBS - Find unused snapshots

EBS Snapshot Manager

Overview

This Python script helps manage AWS Elastic Block Store (EBS) snapshots and volumes. It provides functionalities to find unused snapshots and volumes, generate reports, and clean up resources interactively.

Features

  • Generate a CSV report of all EBS snapshots
  • Interactively clean up unreferenced snapshots
@Mr-MaNia7
Mr-MaNia7 / README.md
Last active February 18, 2024 16:03
Solution for Database and Asterisk start order issue

Running a Command on Server Startup using Cron Job

Introduction

This guide explains how to execute a command using cron jobs every time the server starts or restarts on Ubuntu. It also covers how to mitigate the need for sudo in the cron job and ensure the command can run without requiring password input.

Prerequisites

  • Ubuntu server
  • Basic knowledge of using the command line

Instructions

@Mr-MaNia7
Mr-MaNia7 / README.md
Last active November 26, 2023 16:38
email-sender-gmail

Add the following lines in the .env files of your project:

SMTP_USERNAME="sender_gmail_address"

SMTP_PASSWORD="app_password"

@Mr-MaNia7
Mr-MaNia7 / github-rank.html
Last active January 24, 2023 17:45
GitHub most active user image
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="254" height="20" role="img" aria-label="Most Active GitHub User in Egypt Rank: 9th"><title>Most Active GitHub User in Egypt Rank: 9th</title><linearGradient id="s" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><clipPath id="r"><rect width="254" height="20" rx="3" fill="#fff"/></clipPath><g clip-path="url(#r)"><rect width="225" height="20" fill="#555"/><rect x="225" width="29" height="20" fill="#e05d44"/><rect width="254" height="20" fill="url(#s)"/></g><g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" text-rendering="geometricPrecision" font-size="110"><text aria-hidden="true" x="1135" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="2150">Most Active GitHub User in Egypt Rank</text><text x="1135" y="140" transform="scale(.1)" fill="#fff" textLength="2150">Most Active GitHub User i