Skip to content

Instantly share code, notes, and snippets.

View jjcodes78's full-sized avatar
🎯
Focusing

Jorge Gonçalves Junior jjcodes78

🎯
Focusing
View GitHub Profile

Using Batocera for a Visual Pinball Cabinet

Disclaimer

The multi-monitor support information below is based on personal experimentation and is not supported by the Batocera team. Please do not contact them for assistance with this setup.

Initial Setup

  1. Download the latest Batocera beta at: https://mirrors.o2switch.fr/batocera/x86_64/beta/last/
@jjcodes78
jjcodes78 / WSL2_VPN_Workaround_Instructions.md
Created December 21, 2022 18:45 — forked from machuu/WSL2_VPN_Workaround_Instructions.md
Workaround for WSL2 network broken on VPN

Overview

Internet connection and DNS routing are broken from WSL2 instances, when some VPNs are active. The workaround breaks down into two problems:

  1. Network connection to internet
  2. DNS in WSL2

This problem is tracked in multiple microsoft/WSL issues including, but not limited to:

@jjcodes78
jjcodes78 / Traccar_Docker_Install.md
Last active July 25, 2024 13:50
Traccar Docker + PostgreSQL

Install Traccar with Docker + PostgreSQL

Create a new folder traccar on your preference.

Create a file named docker-compose.yml into this traccar folder and put the content bellow:

version: '3.9'

services:

Disable Device Enrollment Program (DEP) notification on macOS Monterey.md

NB! command-R is replaced with holding the power button on M1 macs.

With full reinstall (recommended)

   a. Boot into recovery using command-R during reboot, wipe the harddrive using Disk Utility, and select reinstall macOS

   b. Initial installation will run for approximately 1 hour, and reboot once

@jjcodes78
jjcodes78 / kafka-centos-8.md
Last active May 26, 2022 14:32
Install Apache Kafka - CentOS 8

Passos para instalar Apache Kafka no CentOS 8 com DOCKER

Requerimentos de mémoria mínimo: 1.0 Gb (recomendado 2gb - POC) / 4gb-8gb em produção

Modificar os arquivos em /etc/yum.repos.d

Pré update:

sudo sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
@jjcodes78
jjcodes78 / docker-compose.yml
Last active August 15, 2023 01:51
Laravel Stack - MySQL + Redis + Mellisearch + Minio + Mailhog + RabbitMQ + PostgreSQL + MongoDB + Mongo Express
# For more information: https://laravel.com/docs/sail
version: '3.9'
services:
mongo:
image: mongo
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: admin
@jjcodes78
jjcodes78 / docker-compose.yml
Created April 24, 2022 06:27
Grafana Stack (Grafana + Prometheus + Loki + Promtail + Node Exporter)
version: '3.8'
networks:
monitoring:
driver: bridge
volumes:
prometheus_data: {}
services:
apt remove apache2 -y
apt purge apache2 -y
apt install software-properties-common -y
add-apt-repository ppa:ondrej/php
apt update
apt install php8.0 php8.0-fpm php8.0-zip \
php8.0-xml php8.0-intl php8.0-sqlite3 php8.0-mysql \
php8.0-curl php8.0-mbstring php8.0-common php8.0-gd -y
@jjcodes78
jjcodes78 / phpsite.md
Last active February 8, 2022 06:35
PHP NGINX

PHP SITE with NGINX

Config file

server {

  listen <PORT>;
  root <PATH>/public;
 index index.php;
@jjcodes78
jjcodes78 / rabbitmq-install.sh
Created January 25, 2022 03:11
Script para instalar RabbitMQ no ubuntu
#!/usr/bin/sh
sudo apt-get install curl gnupg apt-transport-https -y
## Team RabbitMQ's main signing key
curl -1sLf "https://keys.openpgp.org/vks/v1/by-fingerprint/0A9AF2115F4687BD29803A206B73A36E6026DFCA" | sudo gpg --dearmor | sudo tee /usr/share/keyrings/com.rabbitmq.team.gpg > /dev/null
## Cloudsmith: modern Erlang repository
curl -1sLf https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/gpg.E495BB49CC4BBE5B.key | sudo gpg --dearmor | sudo tee /usr/share/keyrings/io.cloudsmith.rabbitmq.E495BB49CC4BBE5B.gpg > /dev/null
## Cloudsmith: RabbitMQ repository
curl -1sLf https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-server/gpg.9F4587F226208342.key | sudo gpg --dearmor | sudo tee /usr/share/keyrings/io.cloudsmith.rabbitmq.9F4587F226208342.gpg > /dev/null