Skip to content

Instantly share code, notes, and snippets.

View sh1mu7's full-sized avatar
🎯
Focusing

Mahmudul Hasan sh1mu7

🎯
Focusing
  • Techtsy LTD
  • Dhaka, Bangladesh
  • LinkedIn in/sh1mu7
View GitHub Profile
@sh1mu7
sh1mu7 / Fish Terminal.md
Last active February 24, 2024 19:49
Fish Terminal

Installing Fish Shell on Ubuntu

Author: sh1mu7

This guide provides step-by-step instructions for installing the Fish shell on Ubuntu.

Installation

Step 1: Downloading Fish

You can install Fish using the following command:

@sh1mu7
sh1mu7 / Postgres Configuration
Last active September 17, 2023 18:24
Postgres Configuration
######################## Installing Postgress ########################
sudo apt update
sudo apt install python3-venv python3-dev libpq-dev postgresql postgresql-contrib nginx curl
###################### Creating SuperUser ############################
CREATE ROLE user_name SUPERUSER LOGIN PASSWORD 'password';
or
@sh1mu7
sh1mu7 / Docker.yml
Created September 7, 2023 20:56
Docket basic configuration
# docker-compose ym
version: '3'
services:
# Django application
web:
build:
context: .
dockerfile: Dockerfile
ports:
@sh1mu7
sh1mu7 / folder_creation.md
Last active January 15, 2025 10:35
A bash snippet for creating nested folder as per my requirements

Admin


mkdir -p api/admin && \
touch api/urls.py \
api/admin/__init__.py api/admin/urls.py \
api/admin/views.py api/admin/serializers.py
from django.db import models
from django.conf import settings
from coreapp.base import BaseModel
from delivery import constants
class RiderDocuments(BaseModel):
title = models.CharField(max_length=100)
documents = models.ForeignKey('coreapp.Document', on_delete=models.CASCADE)
@sh1mu7
sh1mu7 / django_deploy.sh
Last active January 15, 2025 10:21
Django App Deployment Automation
#!/bin/bash
# Author: sh1mu7
# Date: 2024-02-06
# Description: Django deployment automation.
# Prompt for service name
# shellcheck disable=SC2162
read -p "Enter service name: " NAME
# Prompt for domain name
@sh1mu7
sh1mu7 / combined_deploy.sh
Last active May 28, 2025 20:34
Django and React Deployment Script
#!/bin/bash
# Author: sh1mu7
# Date: 2024-02-06
# Description: Django deployment automation.
# Prompt for service name
# shellcheck disable=SC2162
#!/bin/bash
#!/bin/bash
echo "=== Deployment Automation Script ==="