Skip to content

Instantly share code, notes, and snippets.

View lexuanquynh's full-sized avatar
👋
coding ...

Quynh lexuanquynh

👋
coding ...
View GitHub Profile
@lexuanquynh
lexuanquynh / README.md
Created April 21, 2023 00:13 — forked from hofmannsven/README.md
Git Cheatsheet
@lexuanquynh
lexuanquynh / SelfSignedCert.md
Created November 7, 2022 02:32 — forked from mrcunninghamz/SelfSignedCert.md
Creating a self signed certificate in a pfx format on a mac.

Create Self Signed Certificate using OpenSSL on a Mac

Introduction

Every now and then I need to create a self signed certificate in azure for something. In my particular case its Azure B2C. I am using a mac so its not simply just running something like

New-SelfSignedCertificate `
    -KeyExportPolicy Exportable `
    -Subject "CN=yourappname.yourtenant.onmicrosoft.com" `
 -KeyAlgorithm RSA `
@lexuanquynh
lexuanquynh / remove env file from git forever
Created March 18, 2022 04:40 — forked from gjerokrsteski/remove env file from git forever
remove env file from git history forever
echo '.env' >> .gitignore
git rm -r --cached .env
git add .gitignore
git commit -m 'untracking .env'
git push origin master
@lexuanquynh
lexuanquynh / RNfontWeights.js
Created November 24, 2017 09:36 — forked from knowbody/RNfontWeights.js
React Native Font Weight Cheatsheet iOS
{ fontWeight: '100' }, // Thin
{ fontWeight: '200' }, // Ultra Light
{ fontWeight: '300' }, // Light
{ fontWeight: '400' }, // Regular
{ fontWeight: '500' }, // Medium
{ fontWeight: '600' }, // Semibold
{ fontWeight: '700' }, // Bold
{ fontWeight: '800' }, // Heavy
{ fontWeight: '900' }, // Black
@lexuanquynh
lexuanquynh / Makefile
Created August 8, 2017 09:59 — forked from xuhdev/Makefile
Makefile template for shared library
# Makefile template for shared library
CC = gcc # C compiler
CFLAGS = -fPIC -Wall -Wextra -O2 -g # C flags
LDFLAGS = -shared # linking flags
RM = rm -f # rm command
TARGET_LIB = libtarget.so # target lib
SRCS = main.c src1.c src2.c # source files
OBJS = $(SRCS:.c=.o)