- Trocar o
www.mywebsite.com
pelo endereço do site em produção; - Incluir isso no início do seu script.
Se passar o parâmetro ?development
na URL, ele ignora e mostra os console.log()
.
<?php | |
use Illuminate\Support\ServiceProvider; | |
use Illuminate\Database\Eloquent\Builder; | |
use Illuminate\Support\Arr; | |
class AppServiceProvider extends ServiceProvider | |
{ | |
// ... |
#!/bin/sh | |
# ---- Config | |
ENV_NAME="Homologação" | |
TAG_SUFFIX="homolog" | |
PROJECT_NAME="Scania Journey Event" | |
PROJECT_PATH_HOST="/home/lfalmeida/Projects/GitHooks/prod/" | |
PROJECT_PATH_DOCKER="/src/projeto" | |
SLACK_WEBHOOK="" | |
ENABLE_SLACK_POST=0 |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Title</title> | |
</head> | |
<body> | |
<div class="card"> | |
card 1 |
openssl genrsa 2048 > private.pem | |
openssl req -x509 -new -key private.pem -out public.pem | |
openssl pkcs12 -export -in public.pem -inkey private.pem -out mycert.pfx |
<?php | |
interface Visitor { | |
public function visit(Visitable $visitable); | |
} | |
interface Visitable { | |
public function accept(Visitor $visitor); | |
} | |
class Visitante implements Visitor { |
#!/bin/bash | |
TARGET="/var/www/" | |
GIT_DIR="/home/git/laravel.git" | |
BRANCH="master" | |
GREEN='\033[0;32m' # green, in true | |
NC='\033[0m' # No Color | |
BLUE='\033[0;34m' | |
while read oldrev newrev ref |
const { Boom } = require('@hapi/boom') | |
const { default: makeWASocket, delay, DisconnectReason, fetchLatestBaileysVersion, isJidBroadcast, makeCacheableSignalKeyStore, makeInMemoryStore, useMultiFileAuthState } = require('@adiwajshing/baileys') | |
const P = require("pino"); | |
let MAIN_LOGGER = P({ timestamp: () => `,"time":"${new Date().toJSON()}"` }); | |
const logger = MAIN_LOGGER.child({}); | |
logger.level = 'trace' | |
const useStore = !process.argv.includes('--no-store') | |
const doReplies = !process.argv.includes('--no-reply') |
<?php | |
#[Attribute] | |
class Validacao { | |
public function __construct( | |
public string $regra, | |
public int $valor | |
){} | |
public function validate(int $value) |