Skip to content

Instantly share code, notes, and snippets.

View 1000miles's full-sized avatar
🐌
Edit status

Thuy Le 1000miles

🐌
Edit status
View GitHub Profile
@1000miles
1000miles / Heroku-CLI-Cheatsheet.md
Last active July 20, 2023 03:45
Most basic Heroku cli commands
@1000miles
1000miles / sql-mongo_comparison.md
Created September 7, 2019 15:47 — 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.

Mongoose Intro

  1. Install mongoose npm install mongoose

  2. require mongoose in the app.js => const mongoose = require("mongoose");

  3. Connect to database with mongoose => mongoose.connect("mongodb://localhost/mongoose-example")

  4. Create an overall schema => const Schema = new mongoose.Schema;

  5. Create a user schema with already instantiated Schema =>

    const userSchema = new mongoose.Schema({
@1000miles
1000miles / cheatsheet_vagrant.md
Last active August 16, 2017 14:44
Cheat Sheet (Vagrant)

Cheat Sheet (Vagrant)

provided by vagrantup.com

Vagrant commands

$ vagrant ...
@1000miles
1000miles / cheatsheet_chef_knife_kitchen_inspec_ohai.md
Last active January 18, 2019 20:07
Cheat Sheet (Chef-Knife-Kitchen-Inspec-Ohai)

Cheat Sheet (Chef, Knife, Kitchen, Inspec, Ohai)

provided by chef.io

Chef Development Kit commands

$ chef ...

Usage:

Keybase proof

I hereby claim:

  • I am 1000miles on github.
  • I am 1000miles (https://keybase.io/1000miles) on keybase.
  • I have a public key ASBs053fYNNPkfEBRd_pb2WmhhfX9Ca8BdfNuZAf_jgLQAo

To claim this, I am signing this object: