Skip to content

Instantly share code, notes, and snippets.

View tainguyenbp's full-sized avatar
🏠
Working from home

bm8 bmFtZQ tainguyenbp

🏠
Working from home
View GitHub Profile
@tainguyenbp
tainguyenbp / vsftpd.sh
Created November 13, 2022 15:22 — forked from CloudLinuxDeveloper/vsftpd.sh
How to Installing (vsftpd) an FTP server on Ubuntu
vsftpd [Very Secure File Transfer Protocol Daemon] is a popular FTP server for Ubuntu. we will install and configure vsftpd on Ubuntu 18.04 / 19.10.
*** Install vsftpd
sudo apt update && sudo apt install vsftpd
*** Once installed, check the status of vsftpd
@tainguyenbp
tainguyenbp / cheatsheet-elasticsearch.md
Created August 5, 2021 16:12 — forked from ruanbekker/cheatsheet-elasticsearch.md
Elasticsearch Cheatsheet : Example API usage of using Elasticsearch with curl
@tainguyenbp
tainguyenbp / workflow.md
Created April 22, 2021 07:17
Versioning and Git Workflow

Semantic Versioning

Details:

Versions are denoted using a standard triplet of integers: MAJOR.MINOR.PATCH. The basic intent is that MAJOR versions are incompatible, large-scale upgrades of the API. MINOR versions retain source and binary compatibility with older minor versions, and changes in the PATCH level are perfectly compatible, forwards and backwards.

Install a 3-Node Kubernetes Cluster on Centos 7

This setup uses 3 machines:

  1. Centos7
  2. 100GB HDD
  3. 32 GB RAM
  4. 8 CPU

All Machines

@tainguyenbp
tainguyenbp / nginx.conf
Created September 11, 2020 16:44 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@tainguyenbp
tainguyenbp / Documentation.md
Created September 10, 2020 09:12 — forked from KartikTalwar/Documentation.md
Rsync over SSH - (40MB/s over 1GB NICs)

The fastest remote directory rsync over ssh archival I can muster (40MB/s over 1gb NICs)

This creates an archive that does the following:

rsync (Everyone seems to like -z, but it is much slower for me)

  • a: archive mode - rescursive, preserves owner, preserves permissions, preserves modification times, preserves group, copies symlinks as symlinks, preserves device files.
  • H: preserves hard-links
  • A: preserves ACLs
@tainguyenbp
tainguyenbp / docker-compose.yml
Created August 31, 2020 09:39 — forked from rafaelsoaresbr/docker-compose.yml
gitlab-ce/gitlab-runner docker-compose.yml
version: "3.3"
services:
gitlab-ce:
image: 'gitlab/gitlab-ce:latest'
restart: always
hostname: 'rafaelsoares.ddns.net'
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://rafaelsoares.ddns.net:9080'