Skip to content

Instantly share code, notes, and snippets.

Avatar

Mike Funk mikedfunk

View GitHub Profile
View UserServiceBad.php
<?php
declare(strict_types=1);
namespace SaatchiArt\BentoBoxDDD\Domain\Users;
use SaatchiArt\BentoBoxDDD\Domain\Artworks\ArtworkService;
use SaatchiArt\BentoBoxDDD\SecondaryAdapters\Repositories\UserRepository;
final class UserService
View UserService.php
<?php
declare(strict_types=1);
namespace SaatchiArt\BentoBoxDDD\Services\UserActions;
use SaatchiArt\BentoBoxDDD\Services\UserActions\SecondaryAdapters\Repositories\UserRepositoryInterface as UserRepository;
final class UserService
{
View keybase.md

Keybase proof

I hereby claim:

  • I am mikedfunk on github.
  • I am mikedfunk (https://keybase.io/mikedfunk) on keybase.
  • I have a public key ASAEZAylS80Q6A2JT9tOWkVAa_B8fUGx_xSpbAc5ba5XRgo

To claim this, I am signing this object:

View CartRepository.php
<?php declare(strict_types=1);
namespace MyApp\Adapter\Repository\Couchbase;
use CouchbaseException;
use MyApp\Exception\DocumentIsLockedException;
class CartRepository
{
View LockableRepository.php
<?php declare(strict_types=1);
namespace MyApp\Adapter\Repository\Couchbase;
use CouchbaseException;
class LockableRepository
{
// ....
View LockHandler.php
<?php declare(strict_types=1);
namespace MyApp\Adapter\Repository\Couchbase;
use MyApp\Exception\DocumentIsLockedException;
class LockHandler
{
// ...
View LockReleaser.php
<?php declare(strict_types=1);
namespace MyApp\Adapter\Couchbase;
use CouchbaseException;
/** Releases all couchbase locks that are tracked. */
class LockReleaser
{
// ...
View couchbase-userscript.user.js
// ==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 () {
View envsubst.sh
# 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