Skip to content

Instantly share code, notes, and snippets.

View mateusfmello's full-sized avatar
🏠
Working from home

Mateus Fernandes de Mello mateusfmello

🏠
Working from home
View GitHub Profile
<?php
namespace App\EventSubscriber;
use function json_last_error;
use function json_last_error_msg;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\HttpKernel\Event\ControllerEvent;
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
use Symfony\Component\HttpKernel\KernelEvents;
[OCC::Application::setupLogging "################## Nextcloud locale:[pt_BR] ui_lang:[pt_BR] version:[2.6.0git] os:[Linux Mint 19.1]"
[OCC::Application::slotParseMessage Running for 4521.35 sec
[OCC::WebFlowCredentials::slotFinished request finished
[OCC::PUTFileJob::finished PUT of "https://storage.mfmello.com/remote.php/dav/files/mateus/Trabalhos/GRLog/Logístico/Sistema/www/vendor/symfony/web-profiler-bundle/Resources/views/Icon/redirect.svg" FINISHED WITH STATUS "OK" QVariant(int, 201) QVariant(QString, "Created")
[OCC::SyncJournalDb::setFileRecord Updating file record for path: "Trabalhos/GRLog/Log\xC3\xADstico/Sistema/www/vendor/symfony/web-profiler-bundle/Resources/views/Icon/redirect.svg" inode: 5112209 modtime: 1563979674 type: 0 etag: "463db74f15f23cd10a9fa249e5ff8681" fileId: "07991066ocp13awa03nu" remotePerm: "" fileSize: 596 checksum: "SHA1:b55557725a94f0cf522492c03bf8d8a348c534bf" e2eMangledName: ""
[OCC::PropagateItemJob::done Completed propagation of "Trabalhos/GRLog/Logístico/Sistema/www
@mateusfmello
mateusfmello / Error-import-container.txt
Created October 31, 2019 13:30
Error import container
[root@localhost ~]# docker run -v /root/south-america-latest.osm.pbf:/data.osm.pbf -v /root/south-america.poly:/data.poly -v openstreetmap-data:/var/lib/postgresql/12/main -v openstreetmap-rendered-tiles:/var/lib/mod_tile overv/openstreetmap-tile-server import
Unable to find image 'overv/openstreetmap-tile-server:latest' locally
latest: Pulling from overv/openstreetmap-tile-server
35c102085707: Pull complete
251f5509d51d: Pull complete
8e829fe70a46: Pull complete
6001e1789921: Pull complete
10b3be299f3e: Pull complete
03cb58c3f4d8: Pull complete
f6ce5baef70c: Pull complete
@mateusfmello
mateusfmello / mk-auth-requisicao-sms.php
Created May 27, 2022 23:20
Modelo de arquivo final gerado pelo MK Auth para fazer requisições de envio de mensagens, é necessário que o usuário informe apenas dois dados, URL do serivdor e Token de autorização da API.
#!/usr/bin/env /opt/mk-auth/hhvm/5-4-45/bin/php
<?php
# Sistema MK-AUTH - Padrão MK Auth
include('/opt/mk-auth/include/configure.php');
include('/opt/mk-auth/include/conexao.php');
# inicio - Dados dinâmicos
$urlServidor = [ URL SERVIDOR ];
@mateusfmello
mateusfmello / gist:050a2850d6e7a452adfcc76aaa58aaf0
Created August 13, 2022 17:37
Error selenium + VNC + traefik
14:22:43.899 INFO [ProxyNodeWebsockets.createWsEndPoint] - Establishing connection to ws://172.28.17.6:7900
14:22:44.196 WARN [NettyWebSocket.lambda$new$0] - Remotely closed
org.asynchttpclient.exception.RemotelyClosedException: Remotely closed
at org.asynchttpclient.exception.RemotelyClosedException.INSTANCE(Unknown Source)
14:22:44.197 WARN [ProxyNodeWebsockets$ForwardingListener.onError] - Error proxying websocket command
org.asynchttpclient.exception.RemotelyClosedException: Remotely closed
at org.asynchttpclient.exception.RemotelyClosedException.INSTANCE(Unknown Source)