Skip to content

Instantly share code, notes, and snippets.

View jjsquady's full-sized avatar
🎯
Focusing

Jorge Gonçalves Junior jjsquady

🎯
Focusing
View GitHub Profile
@jjsquady
jjsquady / nextjs-deploy.md
Last active May 2, 2024 08:20
Deploying NEXTJS site with nginx + pm2

How to setup next.js app on nginx with letsencrypt

next.js, nginx, reverse-proxy, ssl

1. Install nginx and letsencrypt

$ sudo apt-get update
$ sudo apt-get install nginx letsencrypt

Also enable nginx in ufw

@jjsquady
jjsquady / 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:
@jjsquady
jjsquady / Traccar_Docker_Install.md
Last active April 5, 2024 04:20
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:

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/
@jjsquady
jjsquady / mysql-sail.md
Last active March 9, 2024 16:50
Laravel Sail - GRANT ALL PRIVILEGES to user

Run this command in sail project folder:

docker-compose exec mysql bash

execute the mysql -u root -p command

provide the default password password

then executes

@jjsquady
jjsquady / README.md
Created June 29, 2017 08:37 — forked from oodavid/README.md
Deploy your site with git

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/
@jjsquady
jjsquady / .htaccess
Created July 7, 2016 01:15
Arquivo .htaccess para hospedagem compartilhada (Laravel)
RewriteEngine On
RewriteBase /
# Rewrite to pulic
RewriteCond %{HTTP_HOST} ^example.com$ [NC,OR]
RewriteCond %{HTTP_HOST} ^example.com$
RewriteCond %{REQUEST_URI} !public/
RewriteRule (.*) /public/$1 [L]
# Redirect www to domain
@jjsquady
jjsquady / 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
@jjsquady
jjsquady / 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:

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