Skip to content

Instantly share code, notes, and snippets.

View alejobit's full-sized avatar

Manuel Mendoza alejobit

View GitHub Profile
{
"version": 1,
"notes": "",
"documentation": "\"This file is a QMK Configurator export. You can import this at <https://config.qmk.fm>. It can also be used directly with QMK's source code.\n\nTo setup your QMK environment check out the tutorial: <https://docs.qmk.fm/#/newbs>\n\nYou can convert this file to a keymap.c using this command: `qmk json2c {keymap}`\n\nYou can compile this keymap using this command: `qmk compile {keymap}`\"\n",
"keyboard": "preonic/rev3_drop",
"keymap": "draculad",
"layout": "LAYOUT_ortho_5x12",
"layers": [
[
"KC_GRV",
@alejobit
alejobit / DatabaseHandler.php
Last active March 12, 2024 15:33
Symfony Monolog database handler
<?php
namespace App\Monolog;
use App\Entity\Client;
use App\Entity\Log;
use App\Entity\User;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\ORMException;
use Monolog\Handler\AbstractProcessingHandler;
@alejobit
alejobit / gist:2586ac2f83e1a4a23b7b296a8fcebbe3
Created September 5, 2018 01:40
nginx-proxy + letsencrypt-nginx-proxy-companion
docker run -d -p 80:80 -p 443:443 \
--name nginx-proxy \
-v /opt/nginx/certs:/etc/nginx/certs:ro \
-v /etc/nginx/vhost.d \
-v /usr/share/nginx/html \
-v /var/run/docker.sock:/tmp/docker.sock:ro \
--label com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy \
jwilder/nginx-proxy:alpine
docker run -d \