This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fakeReferrer = "http://porzky.com" | |
var targetUrl = "http://keyworddomains.com" | |
var casper = require('casper').create(); | |
casper.start(fakeReferrer, function() { | |
this.echo(this.getCurrentUrl()); | |
}); | |
casper.then(function(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var system = require('system'); | |
// Exit in case of wrong parameter count. | |
if (system.args.length !== 3) { | |
console.log('Usage: scriptname targetUrl referrer'); | |
console.log('example: $> phantomjs fake-referrer.phantom.js http://example.com http://referrer.example.com'); | |
phantom.exit(); | |
} | |
// Set the important pieces |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var urls = [ | |
'http://keyworddomains.com', | |
'http://blog.keyworddomains.com', | |
'http://timer.keyworddomains.com' | |
]; | |
var page = require('webpage').create(); | |
function process(){ | |
if (urls.length == 0){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var page = require('webpage').create(); | |
page.onConsoleMessage = function (msg) { | |
console.log('From Page Console: '+msg); | |
}; | |
page.onInitialized = function() { | |
page.evaluate(function () { | |
"use strict"; | |
//The Referrer we want to set |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Bash Prompt | |
# export PS1="\[\033[0;32m\]\u@\[\033[0;34m\]\h \[\033[1;34m\]\w\[\033[0m\]$ " | |
export PS1='\[\033[01;32m\]\u\[\033[01;34m\] \w\[\033[31m\]$(git branch 2>/dev/null|cut -f2 -d\* -s)\n\[\033[1;37m\]➜\[\033[00m\] ' | |
# My Path | |
export PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin/whatweb:$PATH | |
# LS COLORS | |
export TERM="xterm-color" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install DNSmasq | |
brew install dnsmasq | |
# cp default config to the right place | |
cp /usr/local/Cellar/dnsmasq/2.63/dnsmasq.conf.example /usr/local/etc/dnsmasq.conf | |
# Daemonize | |
sudo cp /usr/local/Cellar/dnsmasq/2.63/homebrew.mxcl.dnsmasq.plist /Library/LaunchDaemons/ | |
# Add .dev to the resolver |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* | |
Original code from http://forgetmenotes.blogspot.com/2011/01/mac-outlook-2011-keyboard-shortcut-to.html | |
Adapted 2013 by Paul Porzky http://porzky.com | |
*) | |
on run {} | |
tell application "Microsoft Outlook" | |
-- listSelectedItems : a list of all items selected in Entourage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var casper = require('casper').create(); | |
/* var url = casper.cli.args[0]; */ | |
var url = 'http://kicker.de'; | |
var fn = url.replace(/[^a-z0-9]/gi, '').toLowerCase(); | |
// Settings | |
var targetWidth = 800; //final Image Size | |
var targetHeight = 600; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Return Random Float between min and max | |
function randomFloat($min = 0, $max = 1) { | |
return $min + mt_rand() / mt_getrandmax() * ($max - $min); | |
} | |
// returns normally distributed coordinates in a given range (0 to nMax) | |
function getClickCoordinates(&$x, &$y, $xMax = 100, $yMax = 100){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Sends a Short Message using the Twilio REST API | |
* | |
* It uses UrlFetchApp.fetch to send a POST request with Basic Authentication to the Messages list resource URI | |
* See https://www.twilio.com/docs/api/rest/sending-sms for documentation of the Twilio Api Call | |
* See https://developers.google.com/apps-script/reference/url-fetch/url-fetch-app for Documentation on UrlFetchApp | |
* | |
* Get Your Api Credentials from https://www.twilio.com/user/account/settings | |
* | |
* @param {String} to The Recipients Number e.g. '+1323452345' |
OlderNewer