Skip to content

Instantly share code, notes, and snippets.

View solomonjames's full-sized avatar

James Solomon solomonjames

View GitHub Profile
@solomonjames
solomonjames / setup-test-tld.bash
Last active May 21, 2018 21:10
Setup a lcoal TLD responder
!#/bin/bash
# Reference: https://passingcuriosity.com/2013/dnsmasq-dev-osx/
set -e
brew up && brew install dnsmasq
echo "address=/test/127.0.0.1" >> /usr/local/etc/dnsmasq.conf
window.alert = function() {};
var customUsername = "POOOOP";
var postMessage = 'POOOOOOP';
var spamEvent = jQuery.Event("submit");
//spamEvent.keyCode = 13;
GhostPost.username = customUsername;