Skip to content

Instantly share code, notes, and snippets.

View JamesTheHacker's full-sized avatar

0xDEADBEEF JamesTheHacker

  • United Kingdom
View GitHub Profile
default: [SUCCESS]: Magento installation complete.
default: [SUCCESS]: Magento Admin URI: /admin_ysf082
default: Nothing to import.
default: Enabled developer mode.
default: <warning>Warning from repo.magento.com: You haven't provided your Magento authentication keys. For instructions, visit https://devdocs.magento.com/guides/v2.3/install-gde/prereq/connect-auth.html</warning>
default: [SUCCESS]: Magento installation complete.
default: [SUCCESS]: Magento Admin URI: /admin_ysf082
default: Nothing to import.
default: Enabled developer mode.
default: <warning>Warning from repo.magento.com: You haven't provided your Magento authentication keys. For instructions, visit https://devdocs.magento.com/guides/v2.3/install-gde/prereq/connect-auth.html</warning>
# Change permissions for webroot directory
chown "${user}":www-data "${webroot}"
# Create auth.json required for magento installation
sudo -u "${user}" bash -c "mkdir ${home}/.composer"
sudo -u "${user}" bash -c "tee ${home}/.composer/auth.json" > /dev/null <<ILOVEBASH
{
"github-oauth": {
"github.com": "${github_pa_token}"
},
#include <stdio.h>
#include <Windows.h>
/*
* Small utility function to print the values from MEMORY_BASIC_INFORMATION64 struct
*/
void PrintMemoryBasicInformation64(MEMORY_BASIC_INFORMATION64 *mbi)
{
printf("Base Address: %p\n", mbi->BaseAddress);
printf("Allocation Base Address: %p\n", mbi->AllocationBase);
#include <stdio.h>
#include <Windows.h>
int main(int argc, char** argv)
{
int pid = 10964;
DWORD_PTR addr = 0x7FF7BD730000;
/*
* Get a handle for process with specific process id
#include <stdio.h>
#include <Windows.h>
int main(int argc, char** argv)
{
int pid = 10964;
DWORD_PTR addr = 0x7FF7BD730000;
return 0;
}
@JamesTheHacker
JamesTheHacker / provision.sh
Last active December 2, 2018 22:24
A bash script to provision a small node server
#!/bin/bash
UNPRIVILAGED_USER=roger_the_dodger
CERTBOT_EMAIL=your@email.here
APP_DIR=$UNPRIVILAGED_USER_HOME/api
PM2=$APP_DIR/node_modules/pm2/bin/pm2
UNPRIVILAGED_USER_HOME=/home/$UNPRIVILAGED_USER
NODE_VERSION=https://deb.nodesource.com/setup_10.x
# Update before downloading Node install script
@JamesTheHacker
JamesTheHacker / keywords.php
Created October 28, 2018 20:15
Scraping Google Suggestions with PHP
<?php
/*
* This script was created by James Jeffery for use in the following video: https://youtu.be/KNMTmiZQPZU
* This script is completely free - as in free beer :)
*/
if (!isset($argv[1]) || empty($argv[1])) {
exit ("You must provide a keyword");
}
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 {
faGlobe,
faMars,
faVenus,
faCameraRetro,
faPlus
import React from 'react'
export default ({
error,
icon,
label,
placeholder
}) => (
<div className="field">
<label className="label">{label}</label>