This file contains 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
/* | |
Il server sia in grado di gestire un metodo get condizionale | |
sulla base dell'ultima data di modifica della risorsa. | |
Se la richiesta condizionale va a buon fine l'header | |
della risposta deve contenere almeno i campi Date, Content-Length | |
e Last-Modified correttamente determinati. | |
Altrimenti il corpo della risposta sara' vuoto e l'header | |
della risposta dovra' contenere soltanto Date e Last-Modified | |
Il server sara' in grado di gestire i seguenti casi |
This file contains 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 | |
/* | |
PHPTail class from: | |
https://github.com/taktos/php-tail | |
https://code.google.com/p/php-tail/ | |
*/ | |
class PHPTail { | |
/** | |
* Location of the log file we're tailing | |
* @var string |
This file contains 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 waitUntilPortIsListening($host, $port, $options = array('usleep' => 300000, 'limit' => 20)) { | |
$limit = array_key_exists('limit',$options)?$options['limit']:20; | |
$retries = 0; | |
while (true) { | |
$connection = @fsockopen($host, $port); | |
if (is_resource($connection)) { | |
echo "is listening\n"; |
This file contains 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 | |
# The file colornote.db is at this location: | |
# /data/data/com.socialnmobile.dictapps.notepad.color.note/databases/colornote.db | |
# this path is visible if your device is rooted and viewing as root with ES File Explorer for example | |
# see: | |
# https://nikiink.wordpress.com/2015/05/28/evernote-importing-from-lg-memo-and-from-colornote/ | |
# | |
$db = new SQLite3("colornote.db"); | |
$query = "SELECT * FROM notes"; |
This file contains 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 | |
# The lg memo db file richnote is at this location: | |
# /storage/sdcard0/Memo/backup.nrt | |
# this file is created after making a backup and this is a zip file, | |
# the file richnote is inside the zip | |
# see: | |
# https://nikiink.wordpress.com/2015/05/28/evernote-importing-from-lg-memo-and-from-colornote/ | |
# | |
$db = new SQLite3("richnote"); |
NewerOlder