Skip to content

Instantly share code, notes, and snippets.

View geniusmonir's full-sized avatar
🏠
Working on Artificial Intelligence

Md. Moniruzzaman geniusmonir

🏠
Working on Artificial Intelligence
View GitHub Profile
@geniusmonir
geniusmonir / post-checkout
Created December 26, 2024 15:41
File to auto pull Latest Update from github when branch switch
#!/bin/bash
branch=$(git symbolic-ref --short HEAD)
# Function to check if the branch has unpushed commits
has_unpushed_commits() {
# Fetch remote branches to check if our branch is ahead
if git ls-remote --exit-code origin "$branch" > /dev/null 2>&1; then
git fetch origin
local local_commit_count=$(git rev-list --count HEAD)
@geniusmonir
geniusmonir / prevent_checkout.sh
Created December 26, 2024 15:34
Prevent Branch Checkout if file modified or not pushed
#!/bin/bash
# Get the current branch name
branch=$(git symbolic-ref --short HEAD)
# Function to check if there are uncommitted changes
has_uncommitted_changes() {
# Check if there are modified, added, or deleted files in the working directory
git diff --quiet || return 0 # If there are changes, return 0 (true)
git diff --cached --quiet || return 0 # Check staged changes
@geniusmonir
geniusmonir / meta-tags.md
Created December 17, 2020 13:52 — forked from lancejpollard/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">
@geniusmonir
geniusmonir / History\-101462c9\1SWa.json
Last active September 16, 2022 17:48
Visual Studio Code Settings Sync Gist
{
"name": "ordine-pos",
"version": "1.0.0",
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"eject": "expo eject"