Skip to content

Instantly share code, notes, and snippets.

Avatar
😎
Trying to invent useful tools

Muhammad Umair mumairofficial

😎
Trying to invent useful tools
  • Lahore, Pakistain
View GitHub Profile
View named_colors.csv
Specification Keyword RGB hex value
CSS Level 1 black #000000
CSS Level 1 silver #c0c0c0
CSS Level 1 gray #808080
CSS Level 1 white #ffffff
CSS Level 1 maroon #800000
CSS Level 1 red #ff0000
CSS Level 1 purple #800080
CSS Level 1 fuchsia #ff00ff
CSS Level 1 green #008000
View data.json
[
[
"2023-03-24T14:00:00Z",
"mel1",
0.00000780582
],
[
"2023-03-24T16:00:00Z",
"mel1",
0.548530874
@mumairofficial
mumairofficial / Java8DateTimeExamples.java
Created March 18, 2020 13:04 — forked from mscharhag/Java8DateTimeExamples.java
Examples for using the Java 8 Date and Time API (JSR 310)
View Java8DateTimeExamples.java
import java.time.*;
import java.time.format.DateTimeFormatter;
import java.time.format.FormatStyle;
import java.time.temporal.ChronoUnit;
import java.time.temporal.TemporalAdjusters;
import java.util.*;
import static java.time.temporal.TemporalAdjusters.*;
public class Java8DateTimeExamples {
View what-i-use.md

What I Use

WIP: Personal blog & portfolio; will migrate this list once done!

Hardware

  • Dell 27" Monitor: P2719H
  • Dell Precision 7520
    • 2.90 GHz
    • 1TB SSD
    • 32GB Memory
  • Logitech MX Master 2 Mouse
@mumairofficial
mumairofficial / sublime-settings.json
Last active July 14, 2022 22:33
sublime text 3 settings
View sublime-settings.json
{
"auto_complete": true,
"auto_complete_commit_on_tab": true,
"auto_complete_with_fields": true,
"bold_folder_labels": true,
"color_scheme": "Packages/Agila Theme/Agila Classic Oceanic Next.tmTheme",
"default_encoding": "UTF-8",
"draw_minimap_border": true,
"draw_white_space": "all",
"folder_exclude_patterns":
@mumairofficial
mumairofficial / jwtRS256.sh
Created October 19, 2019 01:52 — forked from ygotthilf/jwtRS256.sh
How to generate JWT RS256 key
View jwtRS256.sh
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key
# Don't add passphrase
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub
cat jwtRS256.key
cat jwtRS256.key.pub
@mumairofficial
mumairofficial / README.md
Created September 19, 2019 11:28 — forked from anhldbk/README.md
TLS client & server in NodeJS
View README.md

1. Overview

This is an example of using module tls in NodeJS to create a client securely connecting to a TLS server.

It is a modified version from documentation about TLS, in which:

  • The server is a simple echo one. Clients connect to it, get the same thing back if they send anything to the server.
  • The server is a TLS-based server.
  • Clients somehow get the server's public key and use it to work securely with the server

2. Preparation

View .gitconfig
[user]
name = mumair
email = mumairofficial@gmail.com
[aliash]
gcmsg = commit -m
[alias]
# Git Commit, Add all and Push — in one step.
cap = "!f() { git commit -m \"$@\"; }; f" # git push; <- can add this as well | git add .;
View linux-node-via-nvm.md
@mumairofficial
mumairofficial / cloudSettings
Created February 28, 2019 06:45
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2019-02-28T06:45:28.692Z","extensionVersion":"v3.2.5"}