Skip to content

Instantly share code, notes, and snippets.

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

Quynh lexuanquynh

👋
coding ...
View GitHub Profile
@mrcunninghamz
mrcunninghamz / SelfSignedCert.md
Last active August 15, 2024 02:23
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 `
@ThabetAmer
ThabetAmer / docker-compose.yml
Last active May 28, 2024 00:01
Run SonarQube and SonarScanner in Docker-compose
#
# Based on https://hub.docker.com/_/sonarqube
#
version: "3.7"
services:
sonarqube:
container_name: sonarqube
@gjerokrsteski
gjerokrsteski / remove env file from git forever
Last active September 11, 2024 16:43
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
@jjeffery
jjeffery / golang-grpc-win.md
Last active October 9, 2023 08:41
Installing grpc development environment for Windows

Notes on installing GRPC development environment for Go on Windows

Prerequisites:

  1. Go development environment installed.
  2. $GOPATH/bin
  • I tend to use git bash on my command line, so even though these notes are for Windows, the command line examples have a Unix flavour.
  • The directory names suit my Windows development machine, on which I have a D drive that I use for most of my development work.
@hcn1519
hcn1519 / GradientLayer.md
Last active June 7, 2023 09:33
UITableViewCell with GradientLayer in swift

Create GradientLayer on your tableViewCell(collectionViewCell)

1. Create CAGradientLayer Instance on your tableViewCell

class MyCell: UITableViewCell {
    let gradientLayer = CAGradientLayer()
}
@knowbody
knowbody / RNfontWeights.js
Created July 14, 2016 13:42
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