add
max_parellel_downloads=10
to
/etc/dnf/dnf.conf
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
#include <iostream> | |
using namespace std; | |
class BTreeNode | |
{ | |
int *keys; | |
int t; | |
BTreeNode **C; | |
int n; |
mkdir -p /var/mongodb/db/{1,2,3}
sudo mkdir -p /var/mongodb/pki/
openssl rand -base64 741 > /var/mongodb/pki/m103-keyfile
chmod 400 /var/mongodb/pki/m103-keyfile
storage:
dbPath: /var/mongodb/db/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
user nginx; | |
worker_processes 1; | |
error_log /var/log/nginx/error.log warn; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
include /etc/nginx/mime.types; | |
default_type application/octet-stream; |
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
FROM node:15.12.0-alpine3.10 as build-stage | |
WORKDIR /app | |
COPY . ./ | |
RUN yarn install && yarn run build | |
FROM nginx as production-stage | |
RUN mkdir /app | |
COPY - from=build-stage /app/dist /app | |
COPY nginx.conf /etc/nginx/nginx.conf |
Video : Go toolings
-
Formattor :
gofmt main.go
- to view diff use
-d
- to view diff use
-
to get all import inside a program :
goimports
-
to compile for windows :
GOOS=windows go build