This file contains hidden or 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
y="at | |
ch | |
de"; \ | |
x=" | |
Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.96 Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html) | |
Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html) | |
Googlebot/2.1 (+http://www.google.com/bot.html) | |
"; \ | |
IFS="\n"; readarray -t countries <<<"$y";\ | |
readarray -t userAgents <<<"$x"; IFS=""; \ for y in ${userAgents[@]}; do for x in ${countries[@]}; do url="https://www.aboutyou.${x}/"; printf "\n$url with $y\n"; curl -sIL -H "user-agent: $y" $url 2>&1 | egrep 'HTTP/1.1|Location|Failed'; done; done; |
This file contains hidden or 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 | |
/** | |
* Determine if the model or given attribute(s) have been modified. | |
* | |
* @param Model $m | |
* @param array|string|null $attributes | |
* @return bool | |
*/ | |
function _is_dirty(Model $m, $attributes = null){ |
This file contains hidden or 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 | |
/** CAUTION!!! | |
* You need to have a webserver running on localhost to make this work! | |
*/ | |
use GuzzleHttp\Client; | |
use GuzzleHttp\Event\AbstractRetryableEvent; | |
use GuzzleHttp\Message\Request; | |
use GuzzleHttp\Pool; |
NewerOlder