Skip to content

Instantly share code, notes, and snippets.

View mumy81's full-sized avatar

Muhammed Celik mumy81

View GitHub Profile
@mumy81
mumy81 / git_commands.md
Created February 11, 2025 06:13
Common git commands

Git diff

Fetch origin branch (with trach)

@mumy81
mumy81 / notes_soft_skills.md
Created December 22, 2020 13:04 — forked from raviwu/notes_soft_skills.md
[Notes] Soft Skills: The software developer's life manual

Page 47

This kind of mindset is crucial to managing your career, because when you start to think of yourself as a business, you start to make good business decisions.

Page 52

Every step you take without a clear direction is a wasted step. Don’t randomly walk through life without a purpose for your career.

Your big goal should be something not too specific, but clear enough that you can know if you’re steering toward it or not. Think about what you want to ultimately do with your career.

OpenSSL Playground

Certificates

Print Certificate ( crt file )

openssl x509 -in stackexchangecom.crt -text -noout

Print Certificate ( pem file )

openssl x509 -in cert.pem -text -noout

Print Certificate ( cer file )

openssl x509 -inform der -in foobar.cer -noout -text

Read part of Certificate
@mumy81
mumy81 / nginx.conf
Created April 20, 2020 06:33 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@mumy81
mumy81 / install-comodo-ssl-cert-for-nginx.rst
Created April 18, 2020 16:40 — forked from bradmontgomery/install-comodo-ssl-cert-for-nginx.rst
Steps to install a Comodo PositiveSSL certificate with Nginx.

Setting up a SSL Cert from Comodo

I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.

These are the steps I went through to set up an SSL cert.

Purchase the cert

@mumy81
mumy81 / self-signed-certificate-with-custom-ca.md
Created March 30, 2020 08:09 — forked from fntlnz/self-signed-certificate-with-custom-ca.md
Self Signed Certificate with Custom Root CA

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096
I have solved this regex problem for :
https://www.codewars.com/kata/514a024011ea4fb54200004b
Find domain name in URLs with subdomains or without subdomains :
Regex : /((\w*:)?(\/\/)?(www\.)?)?([\w-]+\.)?(\w{2,}[\w-]+)\./g
function domainName(url){
var re = /((\w*:)?(\/\/)?(www\.)?)?([\w-]+\.)?(\w{2,}[\w-]+)\./g;
var arr = re.exec(url);
@mumy81
mumy81 / docker_compose_cheatsheet.md
Last active December 25, 2019 17:53 — forked from jonlabelle/docker_compose_cheatsheet.md
Docker Compose Cheatsheet