Skip to content

Instantly share code, notes, and snippets.

@afanjul
afanjul / install-docker-inside-lxc.txt
Last active Jun 18, 2020
Install Docker inside LXC container - Proxmox VE
View install-docker-inside-lxc.txt
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 / Abanca.txt
Last active Mar 21, 2017
Formulario Registro Palbin
View Abanca.txt
<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 / gist:63186b08cd349135f35e
Created Jan 8, 2015
Plantilla popup con imagen
View gist:63186b08cd349135f35e
<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>
You can’t perform that action at this time.