Skip to content

Instantly share code, notes, and snippets.

View LuigiImVector's full-sized avatar
:octocat:
I do things

ImVector LuigiImVector

:octocat:
I do things
View GitHub Profile
@LuigiImVector
LuigiImVector / tutorial.md
Created July 27, 2022 18:01
Setup custom domain using Netlify and Register.it

Register.it and Netlify: Add custom domain

  1. "Add domain alias" and write the domain (Netlify)

  2. Go to "Configura DNS" (Register.it)

  3. Add this records:

    1. domain-name 900 A 75.2.60.5
    2. domain-name 900 A website-ip

    To find the website-ip:

import telebot
from telebot import types
from flask import Flask, request
import requests
import psycopg2
import re
import os
import sqlite3
@LuigiImVector
LuigiImVector / main.py
Last active January 3, 2022 00:46
Telegram bot of F.P.B. - Concept
import telebot # https://github.com/eternnoir/pyTelegramBotAPI
import requests
bot = telebot.TeleBot('BOT_TOKEN_HERE') # Create a bot on t.me/BotFather
r = requests.get('https://raw.githubusercontent.com/EbookFoundation/free-programming-books/master/books/free-programming-books-it.md')
f = r.text
f = f.splitlines()
@LuigiImVector
LuigiImVector / sqlite.md
Last active September 12, 2021 15:31
Setup SQLite in Android [Java]

Setup SQLite

MainActivity file:

package com.example.formandsql;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;