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
function notFunny() { | |
function s(fn = () => {}) { | |
return () => { | |
const fnStr = fn.toString(); | |
console.log(fnStr); | |
const keywords = ['console', 'debugger']; | |
if (!keywords.find(key => fnStr.includes(key))) | |
throw new Error(`Uncaught ReferenceError: ${fn.toString().slice(0, 10)} is not defined`); | |
fn(); | |
} |
This file has been truncated, but you can view the full file.
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
*M-UNKNOWN MEXICAN TRUCKING COMPANY | |
8CON CONTSHIP CONTAINER LINE | |
99M UNKNOWN MEXICAN OVERLAND CARRIER | |
AAAB AAA MOTORS | |
AAAC AAACTION TRANSPORTATION INC | |
AAAD A A A DELIVERY INC | |
AAAG ATC LOGISTICS INC | |
AAAO AAMODT INC | |
AAAU ASIA CONTAINER LEASING CO LTD | |
AAAW AAA WALKER TRANSPORTATION SERVICES |
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 | |
function get_ip_address() { | |
$ip_keys = array('HTTP_CLIENT_IP', 'HTTP_X_FORWARDED_FOR', 'HTTP_X_FORWARDED', 'HTTP_X_CLUSTER_CLIENT_IP', 'HTTP_FORWARDED_FOR', 'HTTP_FORWARDED', 'REMOTE_ADDR'); | |
foreach ($ip_keys as $key) { | |
if (array_key_exists($key, $_SERVER) === true) { | |
foreach (explode(',', $_SERVER[$key]) as $ip) { | |
// trim for safety measures | |
$ip = trim($ip); | |
// attempt to validate IP | |
if (validate_ip($ip)) { |