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 / pip.md
Created August 27, 2020 22:40
pip-tools

pip-tools ❤️

(Cómo no te encontré antes?)

  1. Crear requirements.in con las dependencias principales

    pip-compile requirements.in genera el requirements.txt con las dependencias principales más las dependencias transitivas de las principales

    The logical dependencies of your application, i.e. the packages you directly import. In our example, flask and dateutil. The pinned transitive dependencies. That is, all of flask’s dependencies (and their dependencies, and so on), pinned to a particular version.

@marcorichetta
marcorichetta / migrations.md
Created August 22, 2020 14:56
Migraciones Django

Restricciones en la BD

  • Más restrictrivo > Más permisivo
    • Es más fácil quitar una restricción que agregarla.
  • Por defecto tus fields deberían tener null=False. (Esto es el default en Django)
  • ForeignKeys on_delete=models.PROTECT. No queres perder info por un CASCADE mal puesto.
@marcorichetta
marcorichetta / squash.md
Last active August 14, 2020 01:40
Squashing Django migrations
@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 / ExtensionsProvider.md
Last active December 14, 2020 21:09
Change OpenVSX for MS Marketplace as extensions provider
find /usr/share/ -name "product.json"

# cd into vscodum directory
cd /usr/share/vscodium-bin/resources/app

nano product.json
@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 / postgresql-manjaro.md
Last active April 18, 2024 03:10
Install PostgreSQL on Manjaro and set it up for Django
@marcorichetta
marcorichetta / Havoc-LG.md
Last active February 23, 2020 18:29
Havoc OS 3.0 installation on LG G6 H870AR
@marcorichetta
marcorichetta / Manjaro.md
Last active December 3, 2022 23:41
Manjaro KDE Installation on Lenovo Ideapad 330S-15ARR

Booting Manjaro

  1. Download latest Manjaro Architect iso
  2. Burn the iso to a usb following the steps from the Manjaro wiki
  3. On Lenovo BIOS
    1. Disable Secure boot
    2. Set USB boot configuration on UEFI only.
    3. Save changes and press F12 to choose from boot menu.
  4. On Manjaro GRUB menu, add the ivrs_ioapic[32]=00:14.0 grub parameter. Source
@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)