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 declare(strict_types=1); | |
| namespace MyApp\Adapter\Repository\Couchbase; | |
| use CouchbaseException; | |
| use MyApp\Exception\DocumentIsLockedException; | |
| class CartRepository | |
| { | |
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 declare(strict_types=1); | |
| namespace MyApp\Adapter\Repository\Couchbase; | |
| use CouchbaseException; | |
| class LockableRepository | |
| { | |
| // .... |
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 declare(strict_types=1); | |
| namespace MyApp\Adapter\Repository\Couchbase; | |
| use MyApp\Exception\DocumentIsLockedException; | |
| class LockHandler | |
| { | |
| // ... |
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 declare(strict_types=1); | |
| namespace MyApp\Adapter\Couchbase; | |
| use CouchbaseException; | |
| /** Releases all couchbase locks that are tracked. */ | |
| class LockReleaser | |
| { | |
| // ... |
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
| // ==UserScript== | |
| // @name Couchbase authentication fix | |
| // @description Fixes couchbase's inability to save password. | |
| // @include http://couch.local.*.com/ui/index.html* | |
| // @include http://couch*.*.aws.*.com:*/ui/index.html* | |
| // @version 1.0 | |
| // ==/UserScript== | |
| function fixAutoComplete () { | |
| setTimeout(function () { |
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
| # https://www.gnu.org/software/gettext/manual/html_node/envsubst-Invocation.html | |
| envsubst < /etc/nginx/conf.d/mysite.template > /etc/nginx/conf.d/default.conf |
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 | |
| # find what process is using a port | |
| lsof -i :8080 |
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
| $options = array_filter($this->updateData, array($this, 'isValidEvent')); |
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 | |
| require_once dirname(__DIR__) . '/QueueProcessAbstract.php'; | |
| abstract class Solr_QueueIndexAbstract extends QueueProcessAbstract | |
| { | |
| /** @var string */ | |
| private $core = 'default'; | |
| public function __construct() |
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
| /** | |
| * Submit the art advisory brief form with a random email variant | |
| * Use this to bookmarkletize it https://ted.mielczarek.org/code/mozilla/bookmarklet.html | |
| */ | |
| // first part of your email | |
| var myname = 'mike.funk'; | |
| // skip most things | |
| $('#a01-0').click(); |