Skip to content

Instantly share code, notes, and snippets.

@afanjul
afanjul / gist:63186b08cd349135f35e
Created January 8, 2015 19:36
Plantilla popup con imagen
<p>Únete a nuestra newsletter y recibe inmediatamente un cupón descuento del 5% para cualquier producto de nuestra tienda.</p>
<p><img src="http://placehold.it/350x100" width="100%"></p>
@afanjul
afanjul / Abanca.txt
Last active March 21, 2017 18:24
Formulario Registro Palbin
<form class="landing-registration-form-inner form-inline" inline="1" id="landing-registration-form" action="https://www.palbin.com/register/expressRegistration" method="post">
<fieldset>
<div class="form-inputs">
<div class="row-fluid control-group">
<input class="span12 account-shop-name" data-placement="left" placeholder="Nombre de la Tienda" name="Account[shop_name]" id="Account_shop_name" type="text" maxlength="255"> <span class="help-block error" id="Account_shop_name_em_" style="display: none"></span> </div>
<div class="row-fluid control-group input-append input-prepend subdomain init-hidden">
<div class="input-prepend input-append"><span class="add-on">http://</span>
<input class="span6 subdomain-input account-id" data-placement="left" placeholder="Subdominio" name="Account[accountID]" id="Account_accountID" type="text" maxlength="45"><span class="add-on">palbin.com</span></div> <span class="help-block error" id="Ac
@afanjul
afanjul / install-docker-inside-lxc.txt
Last active June 14, 2023 18:08
Install Docker inside LXC container - Proxmox VE
1.Add “aufs” or “overlay” (or both) to /etc/modules-load.d/modules.conf in your PVE host and reboot. Check it with lsmod | grep -E 'overlay|aufs'
2.Use a LXC image with unprivilege features (you can check them here: https://uk.images.linuxcontainers.org/)
3.Create the container with unprivilege option, and “keyctl=1, nesting=1” features (Options section in proxmox).
4.Maybe you would want to mount an external point into /var/lib/docker (Resources section in proxmox)
5.Check this link (https://docs.docker.com/storage/storagedriver/overlayfs-driver/#configure-docker-with-the-overlay-or-overlay2-storage-driver) to change your storage-driver in docker to use aufs or overlay2.
6.Install portainer: https://portainer.readthedocs.io/en/latest/deployment.html
Voilá…
@afanjul
afanjul / GoogleBots-Ips.txt
Last active June 16, 2021 13:11
Google Bots known ips CIDR
216.239.32.0/19
64.233.160.0/19
66.249.80.0/20
72.14.192.0/18
209.85.128.0/17
66.102.0.0/20
74.125.0.0/16
64.18.0.0/20
207.126.144.0/20
173.194.0.0/16
@afanjul
afanjul / repartition-proxmox-rescue-mode.txt
Last active March 3, 2022 16:42
Repartition server after Proxmox image installation from rescue mode
We want to split a 8TB disks into:
-1TB RAID1 for root "/"
-1TB RAID1 for extra things "backups, templates, etc."
-6TB LVM-Thin (with LVM mirroring) for Containers and VM
Boot into rescue mode
#Active probes:
modprobe md
@afanjul
afanjul / b2b_pricing.md
Last active July 11, 2024 10:14
Comparativa entre implementación de precios dinámicos de producto

Opción 1: Listas de Precios

image

Descripción

En esta interfaz, el usuario crea "listas de precios", donde cada lista contiene productos específicos y se les puede configurar los siguientes parámetros:

  • Precio mínimo y máximo: Límites de precios para cada producto.
  • Intervalo de unidades: El número mínimo de unidades que deben comprarse en cada pedido (ej. de 10 en 10).