Skip to content

Instantly share code, notes, and snippets.

View vantm's full-sized avatar
🐛

Van Tran vantm

🐛
View GitHub Profile
@vantm
vantm / nginx.conf
Created November 29, 2019 06:43 — forked from jnovack/nginx.conf
nginx Reverse SSL Proxy
# /etc/nginx/nginx.conf
# ...
http {
# ...
include /etc/nginx/sites-enabled/*.conf
}
@vantm
vantm / sql-mongo_comparison.md
Created October 15, 2019 10:22 — forked from aponxi/sql-mongo_comparison.md
MongoDb Cheat Sheets

SQL to MongoDB Mapping Chart

SQL to MongoDB Mapping Chart

In addition to the charts that follow, you might want to consider the Frequently Asked Questions section for a selection of common questions about MongoDB.

Executables

The following table presents the MySQL/Oracle executables and the corresponding MongoDB executables.

@vantm
vantm / README-Template.md
Created October 15, 2019 10:17 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@vantm
vantm / README.md
Created October 15, 2019 09:57 — forked from estebistec/README.md
This minimal setup allows you to run nginx using the current folder as the doc-root. NOTE: python's simplehttpserver may be good enough for you. This is just a nice simple nginx setup.
  1. Get all of these files into the target folder
  2. Run the following commands:
chmod +x *.sh
./nginx-start.sh
@vantm
vantm / 1_kubernetes_on_macOS.md
Created October 15, 2019 09:56 — forked from kevin-smets/1_kubernetes_on_macOS.md
Local Kubernetes setup on macOS with minikube on VirtualBox and local Docker registry

Requirements

Minikube requires that VT-x/AMD-v virtualization is enabled in BIOS. To check that this is enabled on OSX / macOS run:

sysctl -a | grep machdep.cpu.features | grep VMX

If there's output, you're good!

Prerequisites

@vantm
vantm / difference.js
Created October 15, 2019 09:55 — forked from Yimiprod/difference.js
Deep diff between two object, using lodash
/**
* Deep diff between two object, using lodash
* @param {Object} object Object compared
* @param {Object} base Object to compare with
* @return {Object} Return a new object who represent the diff
*/
function difference(object, base) {
function changes(object, base) {
return _.transform(object, function(result, value, key) {
if (!_.isEqual(value, base[key])) {