Skip to content

Instantly share code, notes, and snippets.

@lineharo
lineharo / popup.js
Last active July 28, 2019 16:36
Popup window with HTML+CSS+JS (pug, stylus, jquery)
$('button[data-popup]').click(function(){
$('.popup[data-popup="' + $(this).data('popup') + '"]').fadeIn('fast');
});
$('.popup .close').click(function() {
$(this).parent().parent().fadeOut('fast');
});
$( '.popup' ).mousedown(function(e) {
if (!$(e.target).closest('.window').length ) {
@lineharo
lineharo / gist:be84e6a9309c035ec79c4219adc36966
Created April 25, 2020 18:49
Install VestaCP(nginx+apache, vsftpd, exim+devocot, DNS named, MySQL) + PHP-7.4 on Ubuntu 18.04 LTS
sudo apt-get update
sudo apt-get install -y vim git curl wget unzip zip gcc build-essential make
sudo apt-get install software-properties-common
curl -O http://vestacp.com/pub/vst-install.sh
bash vst-install.sh --nginx yes --apache yes --phpfpm no --named yes --remi yes --vsftpd yes --proftpd no --iptables yes --fail2ban yes --quota no --exim yes --dovecot yes --spamassassin no --clamav no --softaculous no --mysql yes --postgresql no