Skip to content

Instantly share code, notes, and snippets.

0xDEADBEEF JamesTheHacker

Block or report user

Report or block JamesTheHacker

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
View step1.c
#include <stdio.h>
#include <Windows.h>
int main(int argc, char** argv)
int pid = 10964;
DWORD_PTR addr = 0x7FF7BD730000;
return 0;
JamesTheHacker / keywords.php
Created Oct 28, 2018
Scraping Google Suggestions with PHP
View keywords.php
* This script was created by James Jeffery for use in the following video:
* This script is completely free - as in free beer :)
if (!isset($argv[1]) || empty($argv[1])) {
exit ("You must provide a keyword");
View index.js
import React from 'react';
import ReactDOM from 'react-dom';
import { library, dom } from '@fortawesome/fontawesome-svg-core'
import { faSnapchat } from "@fortawesome/free-brands-svg-icons"
import {
View IconInput.js
import React from 'react'
export default ({
}) => (
<div className="field">
<label className="label">{label}</label>
View UserController.php
namespace API\Controllers;
use Respect\Validation\Exceptions\NestedValidationException;
class User {
protected $userRepository;
protected $logger;
View gist:fe00c5e7c86aa1e64572b3052caf19f1
$container['errorHandler'] = function ($c) {
return function ($request, $response, $exception) use ($c) {
$c->logger->error('Application Error:', [$exception]);
return $c['response']
->withHeader('Content-Type', 'application/json')
'success' => false,
'error' => "Nope, that didn't work. Try again."
View a.php
public function add($request, $response, $args) {
$user = $request->getParsedBody();
if(!$user) {
throw new \Exception('Failed to add user: $user is null');
$validator = \API\Validators\UserRegistration::validate();
$this->logger->info('User:', [$user]);
View boop.js
import moment from 'moment'
import validate from 'validate.js'
import constraints from './validation'
import formDataJSON from 'formdata-json'
import { appendError, removeError } from '../bulma-form-error'
import addUser from './addUser'
import bulmaFatalError from '../bulma-fatal'
validate.extend(validate.validators.datetime, {
View partners-example.html
<section class="section partners">
<h2 class="section__heading">{{ $ }}</h2>
<p class="section__description">{{ $ }}</p>
<ul class="carousel partners__carousel">
{{ range $ }}
src="{{ .logo }}"
View file.lua
local Song = NI.DATA.StateHelper.getFocusSong(App)
local ScaleEngine = NI.DATA.getScaleEngine(App)
local Group = NI.DATA.StateHelper.getFocusGroup(App)
if ScaleEngine and Group then
Params =
not ScaleEngine:getChordModeIsChordSet() and ScaleEngine:getScaleBankParameter() or nil,
You can’t perform that action at this time.