Copy the files above to /usr/local/bin and execute the command chown +x ss sp
For use it just:
starting a service ~> ss mongodb
stoping a service ~> sp service
| type IfStatNode struct { | |
| Condition Node | |
| ThenBranch Node | |
| ElseBranch Node | |
| } | |
| func (n *IfStatNode) Interpret(i *Interpreter) (Node, error) { | |
| conditionNode, err := n.Condition.Interpret(i) | |
| if err != nil { | |
| return nil, err |
| interface DHeap { | |
| heap: number[]; | |
| breadth: number; | |
| } | |
| export function buildDHeap(breadth: number): DHeap { | |
| return { | |
| heap: [], | |
| breadth, | |
| }; |
| .ngmp18 { | |
| background-color: #fff; | |
| overflow: hidden; | |
| width: 100%; | |
| height: 100%; | |
| position: relative; | |
| } | |
| .ngmp18__hw3 { | |
| color: #333; |
| ### Articles | |
| type Article { | |
| author: Profile! | |
| body: String! | |
| comments(first: Int, after: String): CommentsConnection | |
| createdAt: String! | |
| description: String! | |
| favorited: Boolean! | |
| favoritesCount: Int! | |
| slug: String! |
| ad.findUserAsync(login) | |
| .then(function(user){ | |
| return ad.authenticateAsync(user.mail, password); | |
| }) | |
| .then(function(auth){ | |
| if(!auth) res.status(403).send({"message": "user not authenticated"}); | |
| res.status(200).send({"message": "user authenticated","data": user}); | |
| }) | |
| .catch(function(err){ | |
| return next(err); |
| //item-order --> esse json que é enviado no POST | |
| { | |
| "order": 1, | |
| "product": 1, | |
| "price": 10, | |
| "quantity": 20 | |
| } | |
| // [POST] /item-order |
Just make your terminal using fullscreen with a single command.
To make this script works just follow the steps bellow.
fsfschown +x fs (in some cases sudo is required)./usr/local/bin with the command cp fs /usr/local/bin| // [GET] /category | |
| function list (request, reply) { | |
| this.model | |
| .scope({ | |
| method: ['user', request.auth.credentials.id] | |
| }) | |
| .findAndCountAll({ | |
| attributes: ['id', 'description'], | |
| order: 'description', | |
| offset: request.offset, |
| var Path = require('path'); | |
| var Request = require('request-promise'); | |
| var Webpack = require('webpack'); | |
| var _ = require('lodash'); | |
| var LIST_MODULES_URL = 'https://webtask.it.auth0.com/api/run/wt-tehsis-gmail_com-1?key=eyJhbGciOiJIUzI1NiIsImtpZCI6IjIifQ.eyJqdGkiOiJmZGZiOWU2MjQ0YjQ0YWYyYjc2YzAwNGU1NjgwOGIxNCIsImlhdCI6MTQzMDMyNjc4MiwiY2EiOlsiZDQ3ZDNiMzRkMmI3NGEwZDljYzgwOTg3OGQ3MWQ4Y2QiXSwiZGQiOjAsInVybCI6Imh0dHA6Ly90ZWhzaXMuZ2l0aHViLmlvL3dlYnRhc2tpby1jYW5pcmVxdWlyZS90YXNrcy9saXN0X21vZHVsZXMuanMiLCJ0ZW4iOiIvXnd0LXRlaHNpcy1nbWFpbF9jb20tWzAtMV0kLyJ9.MJqAB9mgs57tQTWtRuZRj6NCbzXxZcXCASYGISk3Q6c'; | |
| module.exports = Request.get(LIST_MODULES_URL, { json: true }).then(function (data) { | |
| var modules = data.modules; |