Skip to content

Instantly share code, notes, and snippets.

View ibrunotome's full-sized avatar
👨‍💻
Up and running...

Bruno Tomé ibrunotome

👨‍💻
Up and running...
View GitHub Profile
<template>
<section>
<ul class="grid grid-cols-4 justify-center gap-2">
<li v-for="(post, index) in posts"
:key="post.code"
:style="`background-image: url(${post.thumbnail})`"
class="bg-cover w-full aspect-h-4 aspect-w-4 rounded-md">
<input id="selectedPosts"
v-model="selectedPosts"
:title="post.code"
package p
import (
"encoding/json"
"io/ioutil"
"log"
"net/http"
"os"
"time"
)
@ibrunotome
ibrunotome / cloudbuild.yaml
Created February 22, 2019 02:36
Cloud Build example settings for serverless functions
steps:
- name: 'gcr.io/cloud-builders/gsutil'
args: ['cp', '${_EXAMPLE}', '.env.yaml']
id: 'setenv'
- name: 'gcr.io/cloud-builders/gcloud'
waitFor: ['setenv']
args:
- functions
- deploy
- myNodeJsMethod
@ibrunotome
ibrunotome / cloudbuild.yaml
Last active February 23, 2022 15:50
Cloud Build example settings for a Laravel application
steps:
- name: 'gcr.io/cloud-builders/gsutil'
args:
- cp
- .env.testing
- .env
- name: 'docker/compose:1.23.1'
args:
- run
- app
@ibrunotome
ibrunotome / cloudbuild.yaml
Last active February 22, 2019 02:23
Cloud Build example settings for a Nuxt.js application
steps:
- name: 'gcr.io/cloud-builders/gsutil'
args:
- cp
- ${_PRODUCTION_CONFIG}
- config/production.json
- name: 'gcr.io/cloud-builders/npm'
args:
- install
- name: 'gcr.io/cloud-builders/npm'
@ibrunotome
ibrunotome / laravel-ddd-approach.md
Last active August 25, 2023 23:25
A Domain Driven Design (DDD) approach to the Laravel Framework
/app
├── /Application
|  ├── /Exceptions
|  ├── /Middlewares
|  ├── /Providers
|  ├── /Requests
├── /Domain
|  ├── /MyDomainA
| | ├── /Contracts
@ibrunotome
ibrunotome / PdfCarne.php
Created April 7, 2018 10:56
Layout carnê para o laravel-boleto.
<?php
namespace App\Transformers;
use Eduardokum\LaravelBoleto\Boleto\Render\AbstractPdf;
use Eduardokum\LaravelBoleto\Contracts\Boleto\Boleto as BoletoContract;
use Eduardokum\LaravelBoleto\Contracts\Boleto\Render\Pdf as PdfContract;
use Eduardokum\LaravelBoleto\Util;
class PdfCarne extends AbstractPdf implements PdfContract
@ibrunotome
ibrunotome / laravel-echo-server.json
Last active May 30, 2018 14:12
laravel-echo-server.json
{
"authHost": "http://localhost",
"authEndpoint": "/broadcasting/auth",
"clients": [],
"database": "redis",
"databaseConfig": {
"redis": {},
"sqlite": {
"databasePath": "/database/laravel-echo-server.sqlite"
}
@ibrunotome
ibrunotome / supervisord.service
Last active March 17, 2020 11:59 — forked from mozillazg/supervisord.service
Install and configure supervisord on centos 7.
[Unit]
Description=supervisord - Supervisor process control system for UNIX
Documentation=http://supervisord.org
After=network.target
[Service]
Type=forking
ExecStart=/bin/supervisord -c /etc/supervisor/supervisord.conf
ExecReload=/bin/supervisorctl reload
ExecStop=/bin/supervisorctl shutdown