Skip to content

Instantly share code, notes, and snippets.

View MuhammadMinhaj's full-sized avatar
😎
Recursively ( Learn > Think > Implement > Share )

Muhammad Minhaj MuhammadMinhaj

😎
Recursively ( Learn > Think > Implement > Share )
View GitHub Profile

Semantic Commit Messages with Emojis

Commit format: <emoji_type> <commit_type>(<scope>): <subject>. <issue_reference>

Example

:sparkles: feat(Component): Add a new feature. Closes: #
^--------^ ^--^ ^-------^   ^---------------^  ^------^
|          |    |           |                  |
| | | | +--&gt; (Optional) Issue reference: if the commit closes or fixes an issue
const https = require('https');
const { urlToHttpOptions } = require('url');
const nodeFetch = (url, options = {}) =>
new Promise((resolve, reject) => {
const _url = new URL(url);
const parsedOptions = urlToHttpOptions(_url);
const _options = { ...parsedOptions, ...options };
const request = https.request(_options, (response) => {
@MuhammadMinhaj
MuhammadMinhaj / nginx-tuning.md
Created December 9, 2023 14:23 — forked from denji/nginx-tuning.md
NGINX tuning for best performance

Moved to git repository: https://github.com/denji/nginx-tuning

NGINX Tuning For Best Performance

For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.

Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.

You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.

A collection of remote job platforms
⚡ FlexJobs
⚡ Uplers / Email Uplers
⚡ Remote Workmate
⚡ We Work Remotely
⚡ FindAsync
⚡ Pangian
⚡ JustRemote
⚡ Remotive - Remote Jobs

Folder Structure

Motivations

  • Clear feature ownership
  • Module usage predictibility (refactoring, maintainence, you know what's shared, what's not, prevents accidental regressions, avoids huge directories of not-actually-reusable modules, etc)

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@MuhammadMinhaj
MuhammadMinhaj / mymarkdowntest.md
Last active March 30, 2021 15:55
Testing purpose

Live demo

Changes are automatically rendered as you type.

  • Implements GitHub Flavored Markdown
  • Renders actual, "native" React DOM elements
  • Allows you to escape or skip HTML (try toggling the checkboxes above)
  • If you escape or skip the HTML, no dangerouslySetInnerHTML is used! Yay!
import React from 'react'
import 'react-quill/dist/quill.snow.css';
import { Grid, FormControl, FormLabel } from '@material-ui/core'
import ReactQuill, { Quill, Mixin, Toolbar } from 'react-quill'
export default () => {
const quillModules = {
toolbar: [
[{ header: [1, 2, false] }],
['bold', 'italic', 'underline', 'strike', 'blockquote'],