Skip to content

Instantly share code, notes, and snippets.

View Spriz's full-sized avatar

Mikkel Bonde Wiuff Spriz

  • Apacta.com
  • Aalborg, Denmark
  • 21:47 (UTC +02:00)
View GitHub Profile
@Spriz
Spriz / gist:8f7fea16d6f5d1e567bd54df60fb2e80
Created April 23, 2019 21:18 — forked from rctphone/gist:62f75cf2f0293bdc9dd27eebac1d5c61
How to solve "APFS inverter failed to invert the volume" error
After cloning APFS drives using Disk Utility it usually ends with a volume containing ContainerToInvert file with the size of a cloned partition.
Don't be afraid, using the following steps you can mount this file as APFS container and get all partitions.
1. Requirements
We need FUSE and xmount installed
2. Terminal
Open Terminal app and type the following:
$ sudo mkdir /Volumes/apfs_image/
$query->leftJoinWith('TicketExecutors')
->where(['TicketExecutors.id' => $options['request']['restrictByUserId']])
->leftJoinWith('TicketOwners')
->orWhere(['TicketOwners.id' => $options['request']['restrictByUserId']]);
<?php
namespace App\Controller\Component;
use Cake\Controller\Component\PaginatorComponent;
use Cake\Datasource\RepositoryInterface;
use Cake\Network\Exception\NotFoundException;
use Cake\ElasticSearch\Query;
class ElasticPaginatorComponent extends PaginatorComponent
@Spriz
Spriz / src\Pdf\Engine\TexToPdfEngine.php
Created December 10, 2015 15:28 — forked from burzum/src\Pdf\Engine\TexToPdfEngine.php
src/Pdf/Engine/TexToPdfEngine.php
<?php
namespace App\Pdf\Engine;
use CakePdf\Pdf\CakePdf;
use CakePdf\Pdf\Engine\AbstractPdfEngine;
use Cake\Core\Exception\Exception;
use Cake\Utility\Text;
/**
* TexToPdfEngine for the CakePdf Plugin