Skip to content

Instantly share code, notes, and snippets.

Bahi Hussein BahiHussein

Block or report user

Report or block BahiHussein

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@BahiHussein
BahiHussein / twittermare.js
Created Mar 12, 2019
Posting To Twitter Using Nightmare.JS
View twittermare.js
nightmare
/* navigate to twitter login page */
.goto('https://twitter.com/login')
/* select the email input dom element
using query selector and type email address */
.type('.js-username-field.email-input', 'YOUR EMAIL ADDRESS')
/* select password input dom element and
View gist:ffc52c15b3c1d1338d0a7a55c9f9bab9
With Sudo
$ curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
Without Sudo
$ cd Downloads
$ curl -sL https://deb.nodesource.com/setup_10.x > setup_10.x
$ chmod +x setup_10.x
# ./setup_10.x
Install NodeJS
View router-auth.js
var express = require('express');
var router = express.Router();
var User = require('../../models/users.js');
var config = require('../../config/config.js');
var Say = require('../../config/say.js');
var Check = require('../../helpers/check.js');
var Regex = require('../../config/regex.js');
router.post('/signin', function(req, res, next){
View check.js
var Say = require('../config/say.js');
module.exports = {
init: function(req){
req.errors = [];
},
required: function(req, array){
You can’t perform that action at this time.