Skip to content

Instantly share code, notes, and snippets.

View manish-kumar9a9's full-sized avatar
🎯
Focusing

Manish Kumar manish-kumar9a9

🎯
Focusing
  • iPragmatech
  • New Delhi
View GitHub Profile
@manish-kumar9a9
manish-kumar9a9 / terminal-git-branch-name.md
Last active January 29, 2021 06:39 — forked from joseluisq/terminal-git-branch-name.md
Add Git Branch Name to Terminal Prompt (Linux/Mac)

Add Git Branch Name to Terminal Prompt (Linux/Mac)

image

Open ~/.bash_profile in your favorite editor and add the following content to the bottom.

# Git branch in prompt.
@manish-kumar9a9
manish-kumar9a9 / install-ffmpeg-amazon-linux.sh
Last active August 22, 2018 07:06 — forked from prashantmaurice/install-ffmpeg-amazon-linux.sh
How to compile ffmpeg on Amazon Linux (EC2)
#!/bin/sh
# Based on gist.github.com/gboudreau/install-ffmpeg-amazon-linux.sh
# and https://trac.ffmpeg.org/wiki/CompilationGuide/Centos
if [ "`/usr/bin/whoami`" != "root" ]; then
echo "You need to execute this script as root."
exit 1
fi
cat > /etc/yum.repos.d/centos.repo<<EOF