Skip to content

Instantly share code, notes, and snippets.

View bgopikrishna's full-sized avatar

Gopi Krishna bgopikrishna

View GitHub Profile
@bradtraversy
bradtraversy / docker-help.md
Last active September 15, 2026 00:09
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@bradtraversy
bradtraversy / myscript.sh
Last active September 24, 2026 21:44
Basic Shell Scripting
#! /bin/bash
# ECHO COMMAND
# echo Hello World!
# VARIABLES
# Uppercase by convention
# Letters, numbers, underscores
NAME="Bob"
# echo "My name is $NAME"
@nicolasdao
nicolasdao / open_source_licenses.md
Last active August 19, 2026 16:10
What you need to know to choose an open source license.
@ankurk91
ankurk91 / bash_profile.md
Last active September 27, 2026 03:28
Show git branch name in Linux/Mac Bash Terminal

Mac OS : Show your git branch name on your bash terminal

⚠️ Does not work in zsh terminal

Add these lines in your ~/.bash_profile file

# Show current git branch name
parse_git_branch() {
     git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
@gokulkrishh
gokulkrishh / media-query.css
Last active August 27, 2026 05:07
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
/* CSS */