Skip to content

Instantly share code, notes, and snippets.

View pedro-vasconcelos's full-sized avatar
💭
Coding...

Pedro Vasconcelos pedro-vasconcelos

💭
Coding...
View GitHub Profile
@pedro-vasconcelos
pedro-vasconcelos / gist:2d1a6197b80ff28f13bf0ec4d4a40aa0
Created October 10, 2022 14:31
Backup / Restore docker volume
docker run --rm -v $VOLUME:/$VOLUME alpine tar -czv --to-stdout -C /$VOLUME . > $VOLUME.tgz
cat $VOLUME.tgz | docker run --rm -i -v $VOLUME:/$VOLUME alpine tar xzf - -C /$VOLUME
docker volume create --name <new_volume>
docker run --rm -it -v <old_volume>:/from -v <new_volume>:/to alpine ash -c "cd /from ; cp -av . /to"
docker volume rm <old_volume>
@pedro-vasconcelos
pedro-vasconcelos / subscription_schedule.updated.json
Created April 10, 2022 11:08
stripe_event: subscription_schedule.updated
{
"id": "evt_1KmyWeLueXt1u2tdZoY8SJM0",
"object": "event",
"api_version": "2020-08-27",
"created": 1649588508,
"data": {
"object": {
"id": "sub_sched_1KmyWdLueXt1u2tdqnTEjx1V",
"object": "subscription_schedule",
"canceled_at": null,
@pedro-vasconcelos
pedro-vasconcelos / subscription_schedule.created,json
Created April 10, 2022 11:06
stripe_event: subscription_schedule.created
{
"id": "evt_1KmyWeLueXt1u2tdRPt7x5dZ",
"object": "event",
"api_version": "2020-08-27",
"created": 1649588507,
"data": {
"object": {
"id": "sub_sched_1KmyWdLueXt1u2tdqnTEjx1V",
"object": "subscription_schedule",
"canceled_at": null,
@pedro-vasconcelos
pedro-vasconcelos / payment_intent.payment_failed.json
Created April 10, 2022 00:02
stripe_event: payment_intent.payment_failed
{
"id": "evt_3KmoAvLueXt1u2td0sPVmWWM",
"object": "event",
"api_version": "2020-08-27",
"created": 1649548722,
"data": {
"object": {
"id": "pi_3KmoAvLueXt1u2td0TkYIlFO",
"object": "payment_intent",
"amount": 80,
@pedro-vasconcelos
pedro-vasconcelos / payment_intent.requires_action.json
Created April 9, 2022 23:14
stripe_event: payment_intent.requires_action
{
"id": "evt_3KmnTJLueXt1u2td0QCRNwcW",
"object": "event",
"api_version": "2020-08-27",
"created": 1649546018,
"data": {
"object": {
"id": "pi_3KmnTJLueXt1u2td0dWi1igs",
"object": "payment_intent",
"amount": 1699,
@pedro-vasconcelos
pedro-vasconcelos / invoice.payment_action_required.json
Created April 9, 2022 23:03
stripe_event: invoice.payment_action_required
{
"id": "evt_1KmnD1LueXt1u2td8vlmcTAh",
"object": "event",
"api_version": "2020-08-27",
"created": 1649545006,
"data": {
"object": {
"id": "in_1KmnCzLueXt1u2tdoXp43QHS",
"object": "invoice",
"account_country": "BG",
@pedro-vasconcelos
pedro-vasconcelos / invoice.payment_failed.json
Created April 9, 2022 23:01
stripe_event: invoice.payment_failed
{
"id": "evt_1KmnD1LueXt1u2tdrB6bNbyi",
"object": "event",
"api_version": "2020-08-27",
"created": 1649545006,
"data": {
"object": {
"id": "in_1KmnCzLueXt1u2tdoXp43QHS",
"object": "invoice",
"account_country": "BG",
@pedro-vasconcelos
pedro-vasconcelos / invoiceitem.created.json
Created April 9, 2022 18:01
stripe_event: invoiceitem.created
{
"id": "evt_1KmiQtLueXt1u2tdcZe8dDu3",
"object": "event",
"api_version": "2020-08-27",
"created": 1649526646,
"data": {
"object": {
"id": "ii_1KmiQqLueXt1u2tdLvfdRXxP",
"object": "invoiceitem",
"amount": -800,
@pedro-vasconcelos
pedro-vasconcelos / customer.subscription.updated.json
Created April 9, 2022 17:59
stripe_event: customer.subscription.updated
{
"id": "evt_1KmiQtLueXt1u2tdrR8CT1wy",
"object": "event",
"api_version": "2020-08-27",
"created": 1649526646,
"data": {
"object": {
"id": "sub_1KmiMILueXt1u2tdRpX4m04k",
"object": "subscription",
"application_fee_percent": null,