Skip to content

Instantly share code, notes, and snippets.

View marcorichetta's full-sized avatar
🏀
Ballin'

Marco Richetta marcorichetta

🏀
Ballin'
View GitHub Profile
@marcorichetta
marcorichetta / Matrix.html
Created March 18, 2018 19:50
Matrix-style page. Downloaded from Sololearn App.
<html>
<head>
<style>
/*basic reset */
*{
margin: 0;
padding: 0;
}
@marcorichetta
marcorichetta / layout.html
Created January 11, 2019 14:21
Layout to use mainly on Flask projects with bootstrap (JS included)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- BOOTSTRAP CSS -->
<link rel="stylesheet" type="text/css" media="screen" href="../static/bootstrap.min.css" />
@marcorichetta
marcorichetta / oop.py
Created March 21, 2019 19:59
OOP Corey Schafer Tutorial
class Empleado:
# Class variables
aumento = 1.10
numEmpleados = 0
def __init__(self, first, last, pay):
""" El método `__init__` se ejecuta cada vez que se crea un nuevo `Empleado` """
self.first = first
self.last = last
@marcorichetta
marcorichetta / split.py
Created June 24, 2019 13:20
Split a pdf file between provided pages.
from PyPDF2 import PdfFileReader, PdfFileWriter
def split(path, split_name, start_page, end_page):
# Create a FileReader instance
pdf = PdfFileReader(path)
# Create a FileWriter instance
pdf_writer = PdfFileWriter()
@marcorichetta
marcorichetta / LG-G6-Claro-Debloat.sh
Last active October 9, 2019 23:22
Script para desinstalar system apps innecesarias
pm uninstall -k --user 0 com.gameloft.android.gdc && # Claro Juegos
pm uninstall -k --user 0 com.portal && # Ideas Claro
pm uninstall -k --user 0 com.naranya.claroapps && # Claro apps
pm uninstall -k --user 0 com.claroColombia.contenedor && # Alguna mierda de Claro
####
pm uninstall -k --user 0 com.lge.sizechangable.weather && # Stock weather App
pm uninstall -k --user 0 com.lge.sizechangable.weather.platform && # Support for above
pm uninstall -k --user 0 com.lge.sizechangable.weather.theme.optimus && # Support for above
pm uninstall -k --user 0 com.lge.sizechangable.musicwidget.widget && # Music widget
pm uninstall -k --user 0 com.lge.theme.white && # White theme (just delete themes you're not gonna use)
@marcorichetta
marcorichetta / KDE.md
Last active December 28, 2019 00:29
KDE Installation on Manjaro
@marcorichetta
marcorichetta / Havoc-LG.md
Last active February 23, 2020 18:29
Havoc OS 3.0 installation on LG G6 H870AR
@marcorichetta
marcorichetta / TL-WR740N-v6.md
Last active March 23, 2020 22:20
Instalación de DDWRT/OpenWRT en router TPLink TL-WR740N v6
@marcorichetta
marcorichetta / readme.md
Created August 6, 2020 19:38
ModuleNotFoundError en python

Al obtener el error:

from main import app
E   ModuleNotFoundError: No module named 'main'
  1. Fijarse si existen __init__.py dentro de los directorios
  2. Agregar "." al path donde importamos from .main import app
  3. from os import sys => Ver sys.path por alguna mala configuración
@marcorichetta
marcorichetta / squash.md
Last active August 14, 2020 01:40
Squashing Django migrations