Skip to content

Instantly share code, notes, and snippets.

View makitocode's full-sized avatar
🐕

Miguel González makitocode

🐕
View GitHub Profile
@makitocode
makitocode / mongoQuery
Last active May 1, 2018 19:11
Mongodb commands
$mongo // -> go to mongo shell
$show dbs // -> show dbs
$use DATABASE_NAME // -> go to DATABASE_NAME
//GET records from TABLE_NAME
$show tables // -> show tables on DATABASE_NAME
$db.TABLE_NAME.find().pretty() // -> Show records on TABLE_NAME as a json file
$db.TABLE_NAME.find() // -> show all records no pretty - just one line.
//DELETE all records from
@makitocode
makitocode / gitConfig-local
Last active January 9, 2019 21:48
Setup git configuration
/*
LOCAL
*/
//Setup email
$ git config user.email "miguel@exmaple.io"
//Setup name
$ git config user.name "Miguel Angel González"
//Setup username
$ git config user.username "m4kito"
//Setup git colors
@makitocode
makitocode / FirebaseTools
Created January 11, 2019 17:45
Commands to create, copy, deploy projects on Firebase
//Install Firebase Tools
$ npm install firebase-tools -g
@makitocode
makitocode / uninstall nodejs MACOS
Last active January 23, 2019 23:16 — forked from nicerobot/README.md
Mac OS X uninstall script for packaged install of node.js
To run this, you can try:
curl -ksO https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh
chmod +x ./uninstall-node.sh
./uninstall-node.sh
rm uninstall-node.sh
@makitocode
makitocode / npm
Created January 23, 2019 23:39
util npm Scripts
::::: Install packages
//Install Global package
$ npm install -g {packageName}
//Install local package
$ npm install {packageName}
//Install and save local package
@makitocode
makitocode / docker-help.md
Created January 20, 2020 20:35 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info