Skip to content

Instantly share code, notes, and snippets.

View sistematico's full-sized avatar
🎯
Focusing

Lucas Brum sistematico

🎯
Focusing
View GitHub Profile

Next.js Starters

A list of CLI generators, starter kits / boilerplates and toolkits to kick start your Next.js apps.

  • What is included in this list:
    • Has ~1K+ Github stars
    • Actively maintained / up to date
    • Includes a style / css solution or UI Framework
    • Includes a database
  • Includes authentication / authorization
@yorickdowne
yorickdowne / friday.md
Last active April 18, 2025 08:33
Debian 13 trixie upgrade

Debian 13

This is a placeholder for instructions when Debian 13 is released in August 2025

To start, read the official release notes.

If your install fits into "vanilla Debian plus maybe a handful of 3rd-party repos", then this guide for a simple upgrade to Debian 13 "trixie" from Debian 12 "bookworm" can be helpful. 3rd-party repos are handled with a find command.

Note upgrade is only supported from Debian 12 to Debian 13. If you are on Debian 11, upgrade to Debian 12 first. Then once on Debian 12, you can upgrade to Debian 13.

@ThimoDEV
ThimoDEV / clear-planetscale-db-drizzle.ts
Created November 6, 2023 09:59
A simple script to clear all the data of your planetscale DB (force-reset from PrismaORM)
// db.ts
import * as schema from "./schema"
export const db = drizzle(connection, { schema })
//reset.ts
async function reset() {
const tableSchema = db._.schema
if (!tableSchema) {
throw new Error("No table schema found")
@ysc3839
ysc3839 / README.md
Last active November 21, 2024 15:12
Systemd timer for lego

Systemd timer for lego

Place lego.service and lego.service in /etc/systemd/system. Place config in /var/lib/lego and nginx-example.com.sh in /var/lib/lego/scripts. You should modify config and nginx-example.com.sh. Finally execute sudo systemctl enable lego.timer.

Lego's files are stored in /var/lib/lego. You need to create this directory and use lego ... run to create acme account.

I'm using DNS challenge and didn't test HTTP challenge. Please tell me if it works.

@emersonbroga
emersonbroga / JsonHelper.js
Created September 30, 2021 02:48
Json Helper
const fs = require('fs');
const JSONWrite = (filePath, data, encoding = 'utf-8') => {
const promiseCallback = (resolve, reject) => {
fs.writeFile(filePath, JSON.stringify(data, null, 2), encoding, (err) => {
if (err) {
reject(err);
return;
}
resolve(true);
@danielwetan
danielwetan / nodejs-cicd-github-actions.md
Last active April 13, 2025 18:55
Deploy Node.js to VPS using Github Actions

Deploy Node.js to VPS using Github Actions

Steps to deploy Node.js to VPS using PM2 and Github Actions

1. Clone repo to VPS folder

diff --git a/config.def.h b/config.def.h
index 1c0b587..12a99d7 100644
--- a/config.def.h
+++ b/config.def.h
@@ -1,8 +1,15 @@
/* See LICENSE file for copyright and license details. */
+#define FORCE_VSPLIT 1 /* nrowgrid layout: force two clients to always split vertically */
+
/* appearance */
diff --git a/config.def.h b/config.def.h
index 1c0b587..73da874 100644
--- a/config.def.h
+++ b/config.def.h
@@ -12,10 +12,12 @@ static const char col_gray2[] = "#444444";
static const char col_gray3[] = "#bbbbbb";
static const char col_gray4[] = "#eeeeee";
static const char col_cyan[] = "#005577";
+static const char col_red[] = "#ff0000";
static const char *colors[][3] = {
@uelsson
uelsson / files.js
Last active April 24, 2023 11:29
Node.js - Como listar arquivos com fs, path
// Vídeo do código: https://youtu.be/Eeqyi6W4CqY
const fs = require('fs');
const path = require('path');
var raiz = './arquivos';
var data = {};
var aux = 0;
function listarArquivos(base) {