Skip to content

Instantly share code, notes, and snippets.

View wolf-mtwo's full-sized avatar

Rolf Mtwo wolf-mtwo

  • Jalasoft
  • Cbba, Bolivia
View GitHub Profile
@wolf-mtwo
wolf-mtwo / API.md
Last active August 29, 2015 14:07 — forked from iros/API.md

Title

<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method:

git
cd d:
cd n
cd wayra/
sudo npm install -g meanio@latest
si tiene error dos veces
mean init wayra-attendance
cd wayra-attendace
//To run Q.js examples:
// 1. Open a new browser tab in Chrome and turn on developer toolbar.
// 2. Copy/Paste this gist in the console and hit enter to run all the snippets.
// Based on the inspiration from samples @ https://github.com/kriskowal/q
////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////
@wolf-mtwo
wolf-mtwo / Ubuntu 14 - Command list.md
Last active August 29, 2015 14:09
Easy commands Ubuntu 14

donot ask for password

sudo visudo
wolf  ALL=(ALL) NOPASSWD: ALL

cron

// export VISUAL=vim
// crontab -e
// */1 * * * * mongo test /wolf/demo.js >> /wolf/change.log
@wolf-mtwo
wolf-mtwo / CentOS 5 - Command list.md
Last active August 29, 2015 14:09
Easy Commands CentOS 5

CHMOD

$ chmod 777 folder
$ chmod 777 1.txt
$ chmod -R 0777 /mydirectory
# drwxrwxrwx - folder
# -R recursive
@wolf-mtwo
wolf-mtwo / Special characters.md
Last active August 29, 2015 14:09
Caracteres especiales, acentos, signos de interrogacion

Special characters

  • @ = alt + 64
  • ~ = alt gr + +
  • \ = alt + 92 OR alt gr + '

Html entities

* á á
@wolf-mtwo
wolf-mtwo / sublime.md
Last active August 14, 2017 02:07
SUBLIME TEXT

SUBLIME TEXT ATAJOS, TRUCOS

Atajos

  • Ctrl + click inserta múltiples cursores.
  • Ctrl + D, próxima ocurrencia.
  • Ctrl + L, selecciona la próxima linea.
  • Ctrl + P, navegar por el source del archivos.
  • Ctrl + R, metodos/funciones del documento.
  • Ctrl + G, lleva an una line de codigo.
@wolf-mtwo
wolf-mtwo / aggregate.md
Last active August 29, 2015 14:10
MONGO
/* 0 */
{
    "_id" : ObjectId("54ba5cb66d1a62a80d3ed4f7"),
    "schedule" : ObjectId("54b592f211c7b1280663d0a3"),
    "group" : ObjectId("54b575ea0ae9f21c1b5bc3d2"),
    "participant" : ObjectId("54ba59a0f31d635819bb9024"),
    "status" : "10",
    "created" : ISODate("2015-01-17T12:59:34.510Z"),
    "__v" : 0
@wolf-mtwo
wolf-mtwo / config.md
Last active October 3, 2020 15:51
CONFIG
@wolf-mtwo
wolf-mtwo / coffee.md
Last active August 29, 2015 14:10
Coffeescript
deferred = Q.defer()
 func (error, value) ->
  if error
   deferred.reject error
   return
 deferred.resolve value
deferred.promise