View QuasarStripeJs.vue
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
<template> | |
<div id="payment-form"> | |
<div class="q-mt-md q-mb-md text-negative" v-if="submissionError"> | |
<div id="card-errors" role="alert">{{ submissionError }}</div> | |
</div> | |
<q-field label="Card Number" | |
stack-label | |
class="q-mb-md" |
View docker-compose.sh
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
# DOCKER COMPOSE | |
#################################################################### | |
docker-compose exec {CONTAINER_ID} sh |
View Money.php
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\Entity\Embeddable; | |
use App\Model\Intl\MoneyInterface; | |
use Brick\Math\BigNumber; | |
use Brick\Math\Exception\NumberFormatException; | |
use Brick\Math\RoundingMode; | |
use Brick\Money\Context\CustomContext; | |
use Doctrine\ORM\Mapping as ORM; |
View .env
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
APP_COOKIE_DOMAIN=.example.test | |
CORS_ALLOW_ORIGIN=^https?://app.example.test(:[0-9]+)?$ |
View Account.php
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\Entity; | |
use App\Model\Account\MembershipInterface; | |
use App\Model\Resource\TimestampableTrait; | |
use App\Model\Resource\ToggleableTrait; | |
use App\Model\Resource\UuidTrait; | |
use App\Model\User\UserInterface; | |
use Doctrine\Common\Collections\Collection; |
View SuperAdminGroupContextBuilder.php
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\Serializer\ApiPlatform; | |
use ApiPlatform\Core\Serializer\SerializerContextBuilderInterface; | |
use Psr\Log\LoggerAwareInterface; | |
use Psr\Log\LoggerAwareTrait; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface; | |
use App\Entity\User; |
View rabbitmq-ubuntu-16.04.sh
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
sudo apt-get update | |
sudo apt-get upgrade | |
#Instruct apt to trust packages signed by rabbitmq signing key | |
wget -O - "https://github.com/rabbitmq/signing-keys/releases/download/2.0/rabbitmq-release-signing-key.asc" | sudo apt-key add - | |
#Enable apt HTTPS Transport | |
sudo apt-get install apt-transport-https | |
#Add the apt repository to the source list directory |
View deliver_sm_thrower.py
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 twisted.internet import defer, reactor | |
from jasmin.vendor.smpp.pdu.operations import DeliverSM | |
from jasmin.queues.configs import AmqpConfig | |
from jasmin.queues.factory import AmqpFactory | |
from jasmin.routing.jasminApi import SmppServerSystemIdConnector | |
from jasmin.routing.content import RoutedDeliverSmContent | |
from jasmin.queues.test.test_amqp import waitFor | |
@defer.inlineCallbacks | |
def connect_and_publish(pdu, dc): |
View deliver_sm.py
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
"""Convert submit_sm to deliver_sm and reinject it back in rabbitmq | |
as coming from connector's CID same as submit_sm's uid | |
Design is diagrammed here: https://sketchboard.me/nAvXcoQqcbIt#/""" | |
import cPickle as pickle | |
import logging | |
import uuid | |
import pika | |
from datetime import datetime |
View Vagrantfile
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
$script = <<SCRIPT | |
# Set up the repository | |
echo “Update the apt package index...” | |
sudo apt-get update -y | |
sudo apt-get install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ |
NewerOlder