Skip to content

Instantly share code, notes, and snippets.


Muhammad Kamran MKRNaqeebi

View GitHub Profile
MKRNaqeebi / git-cheatsheet.markdown
Last active Sep 4, 2020
git cheat sheet for me daily to use daily instead of doing google daily for git command I want to manage this sheet and use for future
View git-cheatsheet.markdown

git command & cheatsheet

Git configuration:

 git config --global "Muhammad Kamran"
 git config --global "”

New git repository:

git init
MKRNaqeebi / Docker cheat sheet
Last active Apr 12, 2019
this is simple Docker cheat sheet. I face some problem I wrote docker command here after solving problem
View Docker cheat sheet
# tmux shortcuts & cheatsheet
start new:
start new with session name:
tmux new -s myname
SanderTheDragon /
Last active Sep 15, 2021
A shellscript to create a Postman .deb file, for simple installation on Debian-based Linux distro's. Also creates a .desktop file.
ls Postman*.tar.gz > /dev/null 2>&1
if [ $? -eq 0 ]; then
echo "Removing old Postman tarballs"
rm -f $(ls Postman*.tar.gz)
curlExists=$(command -v curl)
arunoda / gist:7790979
Last active Aug 24, 2021
Installing SSHPass
View gist:7790979

Installing SSHPASS

SSHPass is a tiny utility, which allows you to provide the ssh password without using the prompt. This will very helpful for scripting. SSHPass is not good to use in multi-user environment. If you use SSHPass on your development machine, it don't do anything evil.

Installing on Ubuntu

apt-get install sshpass

Installing on OS X

View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:


start new with session name:

tmux new -s myname
jessedearing / gist:2351836
Created Apr 10, 2012 — forked from twoism-dev/gist:1183437
Create self-signed SSL certificate for Nginx
View gist:2351836
echo "Generating an SSL private key to sign your certificate..."
openssl genrsa -des3 -out myssl.key 1024
echo "Generating a Certificate Signing Request..."
openssl req -new -key myssl.key -out myssl.csr
echo "Removing passphrase from key (for nginx)..."
cp myssl.key
openssl rsa -in -out myssl.key