- 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 | |
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) |
<?php | |
interface Command | |
{ | |
public function execute(); | |
} | |
class TaskList | |
{ | |
private $tasks = []; |
<?php | |
namespace App\Http\Controllers; | |
use App\Curse; | |
use Illuminate\Http\Request; | |
use App\Aggragable\Indexable; | |
class CurseController extends Controller | |
{ | |
private $model = Curse::class; |
import React, {useEffect, useState} from "react"; | |
import {Switch} from '@headlessui/react' | |
export type SwitcherType = { | |
label?: string | |
state: boolean, | |
getState?: (param: boolean | undefined) => void | |
} | |
const Switcher: React.FunctionComponent<SwitcherType> = (props: SwitcherType) => { | |
const {label, state = false, getState = null} = props |
const { Api,TelegramClient } = require("telegram"); | |
const { StringSession, StoreSession} = require("telegram/sessions"); | |
const input = require("input"); | |
const { NewMessage } = require('telegram/events') | |
const util = require('util') | |
const apiId = 0; | |
const apiHash = "0"; | |
const stringSession = new StoreSession("telegram_session"); | |
(async () => { |