by Tim Speckhals
The Purpose of the 1-Route Protocol is to allow unreachable locations to be reached anyways using a proxy server.
<?php | |
// Your configuration starts here. | |
// Testing. 'true' = Don't actually edit files and only output the name changes. | |
$testing = false; | |
// Folders. 'true' = Rename folders and files. | |
$folders = true; | |
// Recursive. 'true' = Also rename files in sub-directories. |
<?php | |
// This changes the error handler to a more helping one. | |
// You must/can prepend this script - Help: http://stackoverflow.com/a/35298767/4796321 | |
function h_error($severity, $message, $file, $line) | |
{ | |
if (!(error_reporting() & $severity)) | |
{ | |
return; | |
} |
<?//noshort | |
/* This is a little script built for php on linux to short your PHP Scripts, | |
* it is not, it will never and it is not trying to be perfect, | |
* but it might still help you with your code golfes! | |
*******************************************************/ | |
if(empty($argv[1])) | |
{ | |
echo "Syntax: php shorten.php <file>\n"; |
<?php | |
date_default_timezone_set("Etc/Utc"); | |
$offset = -24; | |
$output = fopen("output.srt", "w"); | |
foreach(file("input.srt") as $line) | |
{ | |
$line = trim($line); |
A list for quickly reporting false positives.
Product(s) | Company | Web | Info | |
---|---|---|---|---|
Ad-Aware | Lavasoft | Up to 20 MB | malware.labs@adaware.com | |
Antiy-AVL | Antiy Labs | Unknown | submit@antiy.com | |
Avast! Antivirus | ALWIL | Up to 50 MB | Unknown | |
AVG | AVG Technologies | Up to 20 MB | Unknown |
<?php | |
if(!isset($argv[1])) | |
{ | |
die("Syntax: php fac.php <num>\n"); | |
} | |
$start_time = microtime(true); | |
$fac = $one = gmp_init("1"); | |
$i = gmp_init("1"); | |
$limit = gmp_init($argv[1]); | |
do |
<?php | |
if(empty($argv[1])) | |
{ | |
die("Syntax: php {$argv[0]} <file>"); | |
} | |
$json = json_decode(file_get_contents($argv[1]), true); | |
if($json == NULL) | |
{ | |
die("ERROR: Invalid JSON."); | |
} |
<?php | |
/** | |
* Generates a Minecraft-style SHA1 hash. | |
* @param string $str | |
* @return string | |
*/ | |
function mcsha1($str) | |
{ | |
$gmp = gmp_import(sha1($str, true)); | |
if(gmp_cmp($gmp, gmp_init("0x8000000000000000000000000000000000000000")) >= 0) |
REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /F /V PATH /T REG_SZ /D "YOUR_PATH_FOLDER;%PATH%" | |
:: Setting a temporary dummy variable so setx will broadcast WM_SETTINGCHANGE so the PATH change is reflected without needing a restart. | |
SETX /m DUMMY "" | |
REG DELETE "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /F /V DUMMY |