ca.pem
- the root CA certificate
ca.pem
- the CA private key
csr.pem
- certificate signing request
cert.pem
- client certificate
pkey.pem
- client private key
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://benjiv.com/building-a-go-version-manager/ | |
https://architecturenotes.co/things-you-should-know-about-databases/ | |
https://docs.microsoft.com/en-us/azure/architecture/microservices/design/patterns | |
https://www.toptal.com/javascript/comprehensive-guide-javascript-design-patterns | |
https://dev.to/mauriciolinhares/gof-design-patterns-that-still-make-sense-in-go-27k5 | |
https://quii.gitbook.io/learn-go-with-tests/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @param {number[][]} matrix | |
* @return {void} Do not return anything, modify matrix in-place instead. | |
*/ | |
var rotate = function(matrix) { | |
const n = matrix.length; | |
for (let i = 0; i < Math.floor(n / 2); i++) { | |
for (let j = i; j < n - i - 1; j++) { | |
let positions = [ | |
[j, n - 1 - i], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.robbdimitrov.utils; | |
import java.util.regex.Pattern; | |
public class Platform { | |
public static boolean isIOS(String systemName) { | |
Pattern pattern = Pattern.compile("^(ios|iphone)", Pattern.CASE_INSENSITIVE); | |
return pattern.matcher(systemName).find(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def convert(graph, start, end, path=None): | |
if path is None: | |
path = [] | |
if start == end: | |
return 1 | |
for child in graph: | |
if child[0] == start and child[0] not in path: | |
result = convert(graph, child[1], end, path + [child[0]]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const handleDragStart = (e) => { | |
e.preventDefault(); | |
if (e.target.className.includes('draggable')) { | |
setSelected(e.target); | |
} | |
}; | |
const handleDragEnd = (e) => { | |
e.preventDefault(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getPages(maxPages, currentPage) { | |
let pages = []; | |
for (let i = 1; i <= maxPages; i++) { | |
if (i === 1 || i === maxPages || | |
(currentPage < 4 && i <= 4) || | |
(i >= currentPage - 1 && i <= currentPage + 1) || | |
(maxPages - currentPage < 3 && maxPages - i <= 3)) { | |
pages.push(i); | |
} else if (pages[pages.length - 1] !== '...') { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.robbdimitrov.crypto; | |
import java.io.ByteArrayOutputStream; | |
import java.io.IOException; | |
import java.security.NoSuchAlgorithmException; | |
import java.security.SecureRandom; | |
import java.util.Arrays; | |
import java.util.Base64; | |
import javax.crypto.Cipher; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Identifier | Tag: Name | Service | Type | Region | Tags | |
---|---|---|---|---|---|---|
dopt-bab8c6c2 | - | EC2 | DHCPOptions | us-west-2 | 0 | |
igw-2dc86254 | - | EC2 | InternetGateway | us-west-2 | 0 | |
acl-e578a19e | - | EC2 | NetworkAcl | us-west-2 | 0 | |
rtb-1057756b | - | EC2 | RouteTable | us-west-2 | 0 | |
sg-6504684f | - | EC2 | SecurityGroup | us-west-2 | 0 | |
subnet-1842ef45 | - | EC2 | Subnet | us-west-2 | 0 | |
subnet-974fb3dd | - | EC2 | Subnet | us-west-2 | 0 | |
subnet-fdc71585 | - | EC2 | Subnet | us-west-2 | 0 | |
subnet-239db808 | - | EC2 | Subnet | us-west-2 | 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package api | |
import ( | |
"google.golang.org/grpc" | |
) | |
// Connector holds a pool of grpc connections | |
type Connector struct { | |
connections []*grpc.ClientConn | |
} |
NewerOlder