- Puphpet
- Vagrant
- Handling provisioning of virtual machines with static files
- Virtualbox
- "Backend" that runs the virtual machines started by Vagrant - should not be used directly for anything
- Remember also "VirtualBox Oracle VM VirtualBox Extension Pack" from the download page
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 | |
private function fillVendorProductsData(ConsoleIo $io) | |
{ | |
$client = Typesense::getTypesenseClient(true); | |
/** @var \App\Model\Table\VendorProductsTable $table */ | |
$table = $this->getTableLocator()->get('VendorProducts'); | |
$collection = $client->getCollections()['vendor_products']; | |
assert($collection instanceof \Typesense\Collection); |
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
//If inputData.rawMessage does not contain "just signed" - abort | |
if (!inputData.rawMessage.includes("just signed")) { | |
return; | |
} | |
const emojis = [ | |
"rocket", | |
"success", | |
"tada", | |
"v", |
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
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/ |
I hereby claim:
- I am spriz on github.
- I am spriz (https://keybase.io/spriz) on keybase.
- I have a public key whose fingerprint is 2857 1F5B 8277 0A10 409E 9226 8E67 364C A349 43ED
To claim this, I am signing this object:
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
$query->leftJoinWith('TicketExecutors') | |
->where(['TicketExecutors.id' => $options['request']['restrictByUserId']]) | |
->leftJoinWith('TicketOwners') | |
->orWhere(['TicketOwners.id' => $options['request']['restrictByUserId']]); |
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 | |
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 |
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 | |
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 |