Skip to content

Instantly share code, notes, and snippets.

View JamesTheHacker's full-sized avatar

0xDEADBEEF JamesTheHacker

  • United Kingdom
View GitHub Profile
// ==UserScript==
// @name Facebook Mass Group Invite
// @namespace http://tampermonkey.net/
// @homepage http://cyberpunks.co.uk/facebook-mass-invite-tampermonkey.html
// @version 1.0
// @description Scrapes targeted ID's from a Facebook group members page, or group discussion, and invite them to your own group.
// @author James Jeffery
// @match https://www.facebook.com/*
// @grant none
// @require https://code.jquery.com/jquery-3.0.0.min.js
#!/usr/bin/python
# -*- coding: utf-8 -*-
import argparse
import json
from login import login, getEnv
from pyquery import PyQuery as pq
import re
import requests
import sys
@JamesTheHacker
JamesTheHacker / Event.js
Created August 22, 2016 22:23
Promise based Facebook Event ID scraper
'use strict'
let Promise = require('bluebird')
let _ = require('lodash')
class Event {
constructor(session) {
this.session = session;
this.scrapedIDs = [];
}
<?php
// {NONE, LIKE, LOVE, WOW, HAHA, SAD, ANGRY, THANKFUL}
require __DIR__ . '/vendor/autoload.php';
use Intervention\Image\ImageManagerStatic as Image;
$pageID = '';
$accessToken = '';
$userValidation->is_used = 1;
$userValidation->verified_at = $carbon::now();
$userValidation->user->update([
'email_verified' => 1
]);
$userValidation->save();
object(StudentApp\Models\MobileVerification)#101 (23) {
["table":protected]=>
string(19) "mobile_verification"
["connection":protected]=>
NULL
["primaryKey":protected]=>
string(2) "id"
["keyType":protected]=>
string(3) "int"
["perPage":protected]=>
/*
* Email Verification
*/
$container['EmailService'] = function($c) {
return new \StudentApp\Services\EmailService($c);
};
/*
* Email Verification
*/
$container['EmailService'] = function($c) {
return new \StudentApp\Services\EmailService($c);
};
// Replace with this
$container['\StudentApp\Services\EmailService::class'] = function($c) {
return new \StudentApp\Services\EmailService();
};
<?php
namespace StudentApp\Services;
class EmailService extends Service
{
public function sendPasswordResetToken($code, $email, $firstname, $lastname)
{
/*
* Load the HTML from templates file
<?php
namespace StudentApp\Services\Email;
abstract class EmailService
{
protected $emailService;
protected $template;
protected $logger;