Version | API |
---|---|
7.3 |
20180731 |
7.4 |
20190902 |
8.0 |
20200930 |
8.1 |
20210902 |
8.2 |
20220829 |
8.3 |
20230831 |
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
<script> | |
(function(key) { | |
var script = document.createElement('script'); | |
script.src = 'https://static.leaddyno.com/js'; | |
script.async = true; | |
script.onload = function () { | |
LeadDyno.key = key; | |
LeadDyno.recordVisit(); | |
LeadDyno.autoWatch(); | |
}; |
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
cd ./wordpress | |
wget https://objectcache.pro/plugin/redis-cache-pro.zip?token=0000000000 | unzip | |
cp redis-cache-pro/stubs/mu-plugin.php wp-content/mu-plugins/redis-cache-pro.php | |
mv redis-cache-pro wp-content/mu-plugins | |
rm redis-cache-pro.zip | |
read -r -d '' WP_REDIS_CONFIG <<- EOM |
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
<?php | |
var_dump('PhpRedis: '. phpversion('redis')); | |
$redis = new RedisCluster( | |
null, | |
[ | |
'tls://127.0.0.1:7001', | |
'tls://127.0.0.1:7002', | |
], |
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
/** | |
* Time-to-live in seconds for cached requests. | |
*/ | |
const cacheTtl = 300; | |
/** | |
* List of request paths to cache. | |
*/ | |
const cachedPaths = [ |
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
<?php | |
resolve(EngineManager::class)->extend('elasticsearch', function ($app) { | |
return new ElasticsearchEngine( | |
ElasticBuilder::create()->setHosts(config('scout.elasticsearch.hosts'))->build() | |
); | |
}); |
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
<?php | |
use Aws\S3\S3Client; | |
use ZipStream\ZipStream; // https://github.com/maennchen/ZipStream-PHP | |
use GuzzleHttp\Client as HttpClient; | |
protected function streamAsZip($files) | |
{ | |
$s3 = S3Client::factory('...'); | |
$zip = new ZipStream("foobar.zip"); |
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
<?php | |
namespace App\Providers; | |
use Auth; | |
use App\Support\EloquentUserProvider; | |
class AuthServiceProvider extends ServiceProvider | |
{ | |
public function boot(GateContract $gate) |
I hereby claim:
- I am tillkruss on github.
- I am tillkruss (https://keybase.io/tillkruss) on keybase.
- I have a public key whose fingerprint is 6490 DEB6 8D18 F0A3 49BD CB9C 8874 10C6 42BC 23BB
To claim this, I am signing this object:
NewerOlder