Skip to content

Instantly share code, notes, and snippets.

@tpharaoh
tpharaoh / Caddyfile
Created November 23, 2021 10:18
caddyfile with mercure and php support
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
}
@tpharaoh
tpharaoh / gist:edafa78e5f7d000abd10af955ef52ef0
Created February 23, 2021 15:34
Home.vue (ionic starter)
<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">
<?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;
@tpharaoh
tpharaoh / docker_compose.yml
Created June 1, 2020 18:38
my base docker
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 March 29, 2019 20:14
vuejs laravel stripe checkout.js payment
<template>
<div>
<div ref="card"></div>
<form action="/subscription" method="POST" id='myPaymentForm'>
<input type="hidden" name="_token" :value="token">
</form>
</div>