Skip to content

Instantly share code, notes, and snippets.

Avatar
🇵🇰

Muhammad Kamran MKRNaqeebi

🇵🇰
View GitHub Profile
@MKRNaqeebi
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 user.name "Muhammad Kamran"
 git config --global user.email "mkrnaqeebi@gmail.com”

New git repository:

git init project.name
@MKRNaqeebi
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:
tmux
start new with session name:
tmux new -s myname
@SanderTheDragon
SanderTheDragon / postman-deb.sh
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.
View postman-deb.sh
#!/bin/sh
ls Postman*.tar.gz > /dev/null 2>&1
if [ $? -eq 0 ]; then
echo "Removing old Postman tarballs"
rm -f $(ls Postman*.tar.gz)
fi
curlExists=$(command -v curl)
@arunoda
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:

tmux

start new with session name:

tmux new -s myname
@jessedearing
jessedearing / gist:2351836
Created Apr 10, 2012 — forked from twoism-dev/gist:1183437
Create self-signed SSL certificate for Nginx
View gist:2351836
#!/bin/bash
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 myssl.key.org
openssl rsa -in myssl.key.org -out myssl.key