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 | |
class Test | |
{ | |
} | |
Route::get('/', function (){ | |
$output = ''; | |
$count = 10000; |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>NFC Test</title> | |
</head> | |
<body> | |
<button id="scan" style="display: none;">Scan</button> |
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
# list all indexes | |
curl 'localhost:9200/_cat/indices?v' | |
# dump the index definition into a file | |
curl 'localhost:9200/{index}/_mapping?pretty' > ~/es_schema.json | |
# dump the index into a file | |
curl -XPOST 'localhost:9200/{index}/_search?pretty' \ | |
-H "Content-Type: application/json" \ | |
-d '{"size": 10000, "query": { "match_all": {} }}' > ~/es_data.json |
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
$startedAt = microtime(true); | |
... | |
// in milliseconds | |
$elapsed = (microtime(true) - $startedAt) * 1000; |