π
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
#!/bin/bash | |
lftp -u login,pass ftp://[email protected] <<EOF | |
mget -d -O /local/path/to/save/to /remote/path/to/dir/*.BIN | |
EOF |
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
app.filter['sprintf'] = function () { | |
return function (str, number) { | |
function parse(str) { | |
var args = [].slice.call(arguments, 1), | |
i = 0; | |
str = str.replace(/{(\d+)}/g, function (a, number) { | |
return typeof args[number] != 'undefined' | |
? args[number] |
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
/* repeat X times to get (table cardinality)^X number of rows in it */ | |
INSERT IGNORE INTO table_to_flood (a,b) SELECT FLOOR(RAND()*100000), UUID() FROM table_to_flood; |
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
final class Loader{ | |
// spl_autoload_register([$this, 'loadClass'], true, $prepend); | |
public function findFile($class){ | |
//... | |
/* autoload core without namespace classes */ | |
if (is_file($location = ROOTPATH . 'application/core/' . $class . EXT)) { | |
return $location; | |
} | |
/* autoload library classes */ | |
if (is_file($location = ROOTPATH . 'application/libraries/' . $class . EXT)) { |
OlderNewer