Skip to content

Instantly share code, notes, and snippets.

View minhnguyenvan95's full-sized avatar
😆

Minh Nguyen minhnguyenvan95

😆
View GitHub Profile
@minhnguyenvan95
minhnguyenvan95 / GUIDE.md
Created September 4, 2022 12:28
How to get all Jetbrains products for FREE! | Working (2022) | Full Guide
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
@minhnguyenvan95
minhnguyenvan95 / gitlab-project-sync.sh
Created March 23, 2022 09:47
gitlab mirror script
# fetch all branches # From: http://stackoverflow.com/questions/10312521/how-to-fetch-all-git-branches
#!/bin/bash
sync_gitlab() {
ORIGIN=$1
MIRROR_REMOTE=$2
WORKDIR=$3
if [[ ! -e $WORKDIR ]]; then
echo "project not exist: cloning mirror"
@minhnguyenvan95
minhnguyenvan95 / clean_code.md
Created March 21, 2022 04:19 — forked from wojteklu/clean_code.md
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@minhnguyenvan95
minhnguyenvan95 / gist:64a94ca24f18ede804ddca3921953752
Created March 18, 2022 03:05
zabbix Error connecting to database alma linux
https://techviewleo.com/how-to-install-zabbix-lts-on-rocky-linux-almalinux/
To allow the zabbix backend to connect to its front end, set SELinux to permissive or disable it:
sudo setenforce 0
sudo sed -i 's/SELINUX=enforcing/SELINUX=permissive/g' /etc/selinux/config
@minhnguyenvan95
minhnguyenvan95 / kong-stack.yaml
Last active March 23, 2020 06:44
k8s kong stack with out bounds forward-proxy app for test
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
labels:
app: kong-data
name: kong-data
spec:
accessModes:
- ReadWriteOnce
resources:
@minhnguyenvan95
minhnguyenvan95 / 2019-https-localhost.md
Created March 19, 2020 06:02 — forked from cecilemuller/2019-https-localhost.md
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).

@minhnguyenvan95
minhnguyenvan95 / 2019-https-localhost.md
Created March 19, 2020 06:02 — forked from cecilemuller/2019-https-localhost.md
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).

@minhnguyenvan95
minhnguyenvan95 / README.md
Last active September 8, 2021 03:13
kong + konga docker-compose

Keybase proof

I hereby claim:

  • I am mrga96 on github.
  • I am mrga96 (https://keybase.io/mrga96) on keybase.
  • I have a public key ASBp9FiOfEt-CUoFOIjl1QIj8a3ZitGf8wZnA5x1FpoU6Ao

To claim this, I am signing this object: