Skip to content

Instantly share code, notes, and snippets.

View insinfo's full-sized avatar

Isaque Neves insinfo

  • Prefeitura de Rio das Ostras
  • Rio de Janeiro - Brasil
View GitHub Profile

Tutorial: migrar uma aplicação Python/Flask do Supabase para uma VPS Hostinger com Coolify


1. Resultado esperado

A arquitetura recomendada ao final da migração será:

@insinfo
insinfo / tutorial_migracao_supabase_hostinger_coolify.md
Created July 31, 2026 18:57
migrar do Supabase para Hostinger VPS com Coolify

Tutorial: migrar do Supabase para Hostinger VPS com Coolify

Objetivo: sair do Supabase e rodar um portal de notícias full stack em uma VPS da Hostinger usando Coolify, PostgreSQL, backend Dart Shelf e frontend NgDart 8.

Cenário do projeto:

  • Backend: API REST em Dart com Shelf.
  • Frontend: NgDart 8 compilado como arquivos estáticos.
  • Acesso a dados: biblioteca eloquent.dart, compatível com PostgreSQL e MySQL.
  • Banco de origem: Supabase, baseado em PostgreSQL.
@insinfo
insinfo / vectorizer.ai free downloads.user.js
Created May 28, 2026 18:41 — forked from JTBrinkmann/vectorizer.ai free downloads.user.js
userscript to enable free downloads on vectorizer.ai
// ==UserScript==
// @name vectorizer.ai download patcher
// @match https://vectorizer.ai/*
// @version 1.0
// @description enables free downloads on vectorizer.ai, based on https://github.com/sanz-s/Vectorizer.ai-Unofficial-Downloader-2025/
// ==/UserScript==
const main = () => {
const SVG_NS = 'http://www.w3.org/2000/svg'
const SVG_XML_DECLARATION = '<?xml version="1.0" encoding="UTF-8"?>\n'
@insinfo
insinfo / serial_anual_func.sql
Last active June 21, 2024 01:26
create serial by year in postgresql
CREATE OR REPLACE FUNCTION serial_year_func()
RETURNS "pg_catalog"."trigger" AS $BODY$
DECLARE
current_year INT;
table_name TEXT;
id_field_name TEXT;
ano_field_name TEXT;
last_id INT;
_idIsNull boolean;
_anoIsNull boolean;
@insinfo
insinfo / object-fit-cover-video.js
Created January 22, 2024 22:40 — forked from dmail/object-fit-cover-video.js
object-fit:cover polyfill on video element using canvas
// http://stackoverflow.com/questions/21961839/simulation-background-size-cover-in-canvas
function drawImageProp(ctx, img, x, y, w, h, offsetX, offsetY) {
if (arguments.length === 2) {
x = y = 0;
w = ctx.canvas.width;
h = ctx.canvas.height;
}
// default offset is center
offsetX = typeof offsetX === "number" ? offsetX : 0.5;
@insinfo
insinfo / php_apache_mysql_win10.md
Created December 21, 2023 19:05 — forked from m-antoni/php_apache_mysql_win10.md
How to Setup PHP 7.2, Apache and MySQL in Windows 10

How to Setup PHP 7.2, Apache and MySQL in Windows 10

  1. First is to download php 7 to this website https://windows.php.net/download/

    • download VC15 x86 or x64 Thread Safe
    • download x86 for 32bit and x64 for 64bit system
  2. Make a directory and save it to this path C:/php

  3. Go to https://www.apachelounge.com/download/ to download the Apache server

  • Download Apache 2.4.39 Win64 or Apache 2.4.39 Win32
@insinfo
insinfo / ui_test.dart
Last active November 29, 2023 22:21
ui test in dart with puppeteer
import 'package:new_sali_core/new_sali_core.dart';
import 'package:puppeteer/puppeteer.dart';
import 'package:test/test.dart';
import 'dart:async';
import 'package:path/path.dart' as path;
/// add to pubspec.yaml
// dev_dependencies:
// angel3_hot: any
@insinfo
insinfo / g++ test
Created November 18, 2023 01:00 — forked from 13abylon/g++ test
// g++ test.cpp --std=c++11 -lpthread -O2
//#ifdef WIN32 <- stdafx breaks this ifdef...
//#include "stdafx.h"
//#endif
#include <iostream>
#include <atomic>
#include <thread>
#include <vector>
@insinfo
insinfo / statvfs-df.c
Last active November 29, 2023 23:14 — forked from vgerak/statvfs-df.c
Get disk usage with statvfs()
#include <limits.h>
#include <stdint.h>
#include <stdio.h>
#include <sys/statvfs.h>
#include <sys/types.h>
struct fs_usage {
uintmax_t fsu_blocksize; /* Size of a block. */
uintmax_t fsu_blocks; /* Total blocks. */
uintmax_t fsu_bfree; /* Free blocks available to superuser. */