Skip to content

Instantly share code, notes, and snippets.

View jonasmartinsdev's full-sized avatar

Jonas Martins jonasmartinsdev

View GitHub Profile
@UbuntuEvangelist
UbuntuEvangelist / How To Install PHP (8.2, 8.1, 7.4) on Ubuntu 22.04
Last active August 15, 2025 19:57
Install PHP (8.2, 8.1, 7.4) on Ubuntu 22.04
sudo apt update && sudo apt upgrade
sudo apt install software-properties-common ca-certificates lsb-release apt-transport-https
LC_ALL=C.UTF-8 sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install php8.1
# Check active php version php -v
php -v
# Check system php version
php --version
# To install another php version same machine
// AdminJS locales https://github.com/SoftwareBrothers/adminjs
const commonProps = {
status: "Situação",
createdAt: "Criação",
updatedAt: "Atualização",
};
const translations = {
actions: {
@nikolasburk
nikolasburk / nextjs-and-prisma.md
Last active July 1, 2023 22:59
Fullstack Apps with Next.js and Prisma (PostgreSQL, MySQL & SQLite)

🚀 Fullstack Apps with Next.js and Prisma

Next.js blurs the lines between client and server. It supports pre-rendering pages at build time (SSG) or request time (SSR). Prisma is the perfect companion if you need to work with a database in a Next.js app.

Here is a list of example apps that are based on Next.js and use Prisma on the server to access data from a database:

✍️ Language 🤖 Server 🔐 Authentication 🔗 URL
TypeScript API Routes Yes (via NextAuth.js) URL
TypeScript API Routes No
@diego3g
diego3g / settings.json
Last active October 11, 2025 23:50
VSCode Settings (Updated)
{
"workbench.startupEditor": "newUntitledFile",
"editor.fontSize": 16,
"editor.lineHeight": 1.8,
"javascript.suggest.autoImports": true,
"javascript.updateImportsOnFileMove.enabled": "always",
"editor.rulers": [
80,
120
],