download and install Solr from http://lucene.apache.org/solr/.
you can access Solr admin from your browser: http://localhost:8983/solr/
use the port number used in installation.
xhost +si:localuser:root |
download and install Solr from http://lucene.apache.org/solr/.
you can access Solr admin from your browser: http://localhost:8983/solr/
use the port number used in installation.
<?php | |
/** | |
* Trait helps to allow for some limited overloading of | |
* methods in the class this is attached to. | |
*/ | |
trait Overloader { | |
/** | |
* Where the magic happens |
<?php | |
/** | |
* Return the number of pages of a PDF. | |
* | |
* Imagick::pingImage() takes too much when dealing with big files. | |
* | |
* Command to execute: | |
* | |
* gs -q -dNODISPLAY -c "(%s) (r) file runpdfbegin pdfpagecount = quit" |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Single and Double Click</title> | |
<link rel="stylesheet" type="text/css" href="style.css"> | |
</head> | |
<body> | |
<div id="the_div"></div> | |
<span>Double click the block</span> |
I hereby claim:
To claim this, I am signing this object:
<?php | |
# Nginx doesn't have PATH_INFO | |
if (!isset($_SERVER['PATH_INFO'])) { | |
$_SERVER['PATH_INFO'] = substr($_SERVER["ORIG_SCRIPT_FILENAME"], strlen($_SERVER["SCRIPT_FILENAME"])); | |
} | |
$request = substr($_SERVER['PATH_INFO'], 1); | |
$file = $request; | |
$fp = @fopen($file, 'rb'); |
<?php | |
if( ! function_exists('_format_size')) | |
{ | |
/** | |
* Return formatted bytes. | |
* | |
* @see http://www.iec.ch/si/binary.htm | |
* @param integer $bytes | |
* @param integer $kilo 1000, 1024 |
watch -n 2 'ps -opid,pri,%cpu,%mem,user,args -p `pgrep php`' |
<div> | |
Helloz | |
</div> |