Skip to content

Instantly share code, notes, and snippets.

@tpharaoh
tpharaoh / Caddyfile
Created Nov 23, 2021
caddyfile with mercure and php support
View Caddyfile
root@caddyMerc:/etc/caddy# more Caddyfile
# Learn how to configure the Mercure.rocks Hub on https://mercure.rocks/docs/hub/config
{
# Debug mode (disable it in production!)
{$DEBUG}
# HTTP/3 support
servers {
protocol {
experimental_http3
}
View gist:edafa78e5f7d000abd10af955ef52ef0
<template>
<ion-page>
<ion-content :fullscreen="true" scroll-y="false">
<div id="container">
<strong>Ready to create an app?</strong>
<ion-slides pager="true">
<ion-slide>
<ion-card style="border-radius: 25px">
View gist:00d77cc7bba9bdc46b9deb80e346d1f8
<?php
namespace App\Command;
use App\Entity\DeviceType;
use App\Message\DeviceFailedProvisionMessage;
use App\Message\DeviceProvisionedMessage;
use App\Message\SaveDeviceSettingMessage;
use App\Message\SaveTelemetryDataMessage;
use App\Repository\DeviceRepository;
View docker_compose.yml
version: '3'
services:
database:
image: postgres:11-alpine
environment:
POSTGRES_USER: test
POSTGRES_PASSWORD: test
POSTGRESDB: test
ports: [5432:5432]
mercure:
@tpharaoh
tpharaoh / payment.vue
Created Mar 29, 2019
vuejs laravel stripe checkout.js payment
View payment.vue
<template>
<div>
<div ref="card"></div>
<form action="/subscription" method="POST" id='myPaymentForm'>
<input type="hidden" name="_token" :value="token">
</form>
</div>