Skip to content

Instantly share code, notes, and snippets.

View MKRNaqeebi's full-sized avatar
🇵🇰

Muhammad Kamran MKRNaqeebi

🇵🇰
View GitHub Profile
@jessedearing
jessedearing / gist:2351836
Created April 10, 2012 14:44 — forked from twoism-dev/gist:1183437
Create self-signed SSL certificate for Nginx
#!/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
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active April 18, 2024 10:01
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@arunoda
arunoda / gist:7790979
Last active February 16, 2024 14:05
Installing SSHPass

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

@SanderTheDragon
SanderTheDragon / postman-deb.sh
Last active April 3, 2024 05:30
A shellscript to create a Postman .deb file, for simple installation on Debian-based Linux distro's. Also creates a .desktop file.
#!/bin/sh
# SPDX-FileCopyrightText: 2017-2022 SanderTheDragon <sanderthedragon@zoho.com>
#
# SPDX-License-Identifier: MIT
curlExists=$(command -v curl)
echo "Testing Postman version"
@MKRNaqeebi
MKRNaqeebi / Docker cheat sheet
Last active April 12, 2019 16:57
this is simple Docker cheat sheet. I face some problem I wrote docker command here after solving problem
# tmux shortcuts & cheatsheet
start new:
tmux
start new with session name:
tmux new -s myname
@MKRNaqeebi
MKRNaqeebi / git-cheatsheet.markdown
Last active September 4, 2020 11:43
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

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