Skip to content

Instantly share code, notes, and snippets.

View duyquang6's full-sized avatar
🐣

Ligt Nguyen duyquang6

🐣
View GitHub Profile
@duyquang6
duyquang6 / quotes.csv
Created December 5, 2021 00:22 — forked from JakubPetriska/quotes.csv
Motivational quotes
Author Quote
Thomas Edison Genius is one percent inspiration and ninety-nine percent perspiration.
Yogi Berra You can observe a lot just by watching.
Abraham Lincoln A house divided against itself cannot stand.
Johann Wolfgang von Goethe Difficulties increase the nearer we get to the goal.
Byron Pulsifer Fate is in your hands and no one elses
Lao Tzu Be the chief but never the lord.
Carl Sandburg Nothing happens unless first we dream.
Aristotle Well begun is half done.
Yogi Berra Life is a learning experience, only if you learn.
@duyquang6
duyquang6 / self-signed-certificate-with-custom-ca.md
Created September 25, 2021 22:04 — 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
@duyquang6
duyquang6 / multilock.go
Created September 10, 2020 16:58 — forked from kzhui125/multilock.go
golang key baed locking
package xsync
import (
"sync"
)
type mutexItem struct {
mu sync.Mutex
counter int64
}
// Package multilock provide A simple method to lock base on a holder
package multilock
import (
"errors"
"sync"
)
type refCounter struct {
counter int