Skip to content

Instantly share code, notes, and snippets.

View bgopikrishna's full-sized avatar

Gopi Krishna bgopikrishna

View GitHub Profile
@bgopikrishna
bgopikrishna / docker-help.md
Created April 22, 2020 10:26 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@bgopikrishna
bgopikrishna / myscript.sh
Created March 22, 2020 10:52 — forked from bradtraversy/myscript.sh
Basic Shell Scripting
#! /bin/bash
# ECHO COMMAND
# echo Hello World!
# VARIABLES
# Uppercase by convention
# Letters, numbers, underscores
NAME="Bob"
# echo "My name is $NAME"
@bgopikrishna
bgopikrishna / bash_profile.md
Created May 25, 2019 16:46 — forked from ankurk91/bash_profile.md
:octocat: Git branch name in Linux/Mac Terminal

Mac OS : Show your git branch name on your 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)/'
}
export PS1="\u@\h \[\033[32m\]\w\[\033[33m\]\$(parse_git_branch)\[\033[00m\] $ "
@bgopikrishna
bgopikrishna / quoraTopicsUnfollow.js
Created January 1, 2019 05:06
A script to unfollow all topics in Quora at a time
//Wait for the topics to load
//Then execute the script
//Get all following Topics
const topicsFollowing = document.querySelectorAll('.ObjectCard-footer a')
function unFollowAll() {
topicsFollowing.forEach(topic => {
//clicking unFollow button
topic.click()
@bgopikrishna
bgopikrishna / elementaryos-juno-setup.sh
Created December 28, 2018 14:01
My Elementary OS Juno setup
#updating system
sudo apt update -y && sudo apt upgrade -y
#Install Multimedia Codecs and Enable DVD Playback
sudo apt install ubuntu-restricted-extras -y
sudo apt install libavcodec-extra -y
sudo apt install libdvd-pkg -y
@bgopikrishna
bgopikrishna / git_newrepo
Created September 14, 2018 15:09 — forked from c0ldlimit/git_newrepo
Git: Push a new or existing repo to Github
# Create a new repository on the command line
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/c0ldlimit/vimcolors.git
git push -u origin master
# Push an existing repository from the command line