docker run \
--privileged \
-d \
--name vm-docker \
docker:18.09.7-dind
docker run \
--name vm \
-d \
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
FROM registry.jetbrains.team/p/prj/containers/projector-phpstorm | |
USER root | |
ENV DOCKER_HOST=tcp://docker:2375 | |
ENV PS1 '${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u\[\033[01;33m\]@\[\033[01;36m\]\h \[\033[01;33m\]\w \[\033[01;35m\]\$ \[\033[00m\]' | |
ENV DOCKERVERSION=20.10.3 | |
RUN apt-get update && \ | |
apt-get install -y curl git vim && \ |
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
$mediaId = Uuid::randomHex(); | |
$mediaRepository->create([['id' => $mediaId]], Context::createDefaultContext()); | |
$request = new Request(); | |
$request->headers->set('content_type', 'application/json'); | |
$request->query->set('extension', 'png'); | |
$request->request->set('url', 'https://placekitten.com/200/287'); | |
$mediaFile = $mediaService->fetchFile($request); | |
$fileSaver->persistFileToMedia( |
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 ShyimDatabaseEntitiesGenerator\Models\Emotion; | |
use ShyimDatabaseEntitiesGenerator\Models\AbstractEntity; | |
/** | |
* Entity for table s_emotion | |
*/ | |
class Emotion extends AbstractEntity |
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
us.zipcode NOT IN (18565,25845,25846,25847, 25849, 25859, 25863, 25869, 25929,25930,25931,25932,25933, 25938,25939,25940,25941,25942, 25946,25947, 25948, 25949, | |
25952,25953,25954,25955, 25961-25970, 25980, 25985,25986, 25988,25989,25990, 25992,25993,25994, 25996,25997, 25998, 25999, 26465, 26474, 26486, 26548, | |
26571, 26579, 26757, 27498, 83256) |
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
openssl genrsa -out ca.key 2048 | |
openssl req -new -x509 -sha256 -days 20000 -key ca.key -subj "/C=CN/ST=GD/L=SZ/O=Acme, Inc./CN=Acme Root CA" -out ca.crt | |
openssl req -newkey rsa:2048 -nodes -keyout server.key -subj "/C=CN/ST=GD/L=SZ/O=Acme, Inc./CN=*.somersets.de" -out server.csr | |
openssl x509 -req -sha256 -extfile <(printf "subjectAltName=DNS:dev.somersets.de") -days 365 -in server.csr -CA ca.crt -CAkey ca.key -CAcreateserial -out server.crt |
I hereby claim:
- I am shyim on github.
- I am shyim (https://keybase.io/shyim) on keybase.
- I have a public key whose fingerprint is 6996 4055 BFFD 0548 F25F A9F9 9BA8 CD75 FEAA C81D
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
<?php | |
namespace ShyimCron; | |
use Shopware\Components\Plugin; | |
use Shopware\Components\Plugin\Context\InstallContext; | |
use Shopware\Components\Plugin\Context\UninstallContext; | |
class ShyimCron extends Plugin { | |
public static function getSubscribedEvents() |