Skip to content

Instantly share code, notes, and snippets.

Avatar

Lluís Gili lluis

  • Vilafranca del Penedès, Catalunya
View GitHub Profile
@lluis
lluis / webserver_setup_web.rb
Created Jan 11, 2019 — forked from descala/webserver_setup_web.rb
Script to setup a shared web hosting instance on Debian Stretch
View webserver_setup_web.rb
#!/usr/bin/ruby
# Script to setup a shared web hosting instance on Debian Stretch
# with SFTP, Apache, MariaDB, LetsEncrypt
# * Run this to install required packages
#
# apt install pwgen ruby mariadb-client mariadb-server php7.0 php7.0-mysql \
# apache2 libapache2-mod-php7.0 phpmyadmin libapache2-mpm-itk
# a2enmod rewrite
@lluis
lluis / apache_vhost.conf
Last active Aug 29, 2015
make owncloud multi-virtualhost
View apache_vhost.conf
DocumentRoot /var/www/owncloud
<Directory /var/www/owncloud/>
AllowOverride All
<FilesMatch ".+\.ph(p[345]?|t|tml)$">
SetHandler application/x-httpd-php
</FilesMatch>
</Directory>
<Directory /var/www/owncloud.domain.net/htdocs/owncloud>
Order allow,deny
@lluis
lluis / gist:777758
Created Jan 13, 2011
catalan and spanish translations for Redmine Exception Handler plugin
View gist:777758
diff --git a/config/locales/ca.yml b/config/locales/ca.yml
new file mode 100644
index 0000000..fd62e25
--- /dev/null
+++ b/config/locales/ca.yml
@@ -0,0 +1,7 @@
+ca:
+ exception_handler_label_email_recipients: "Email dels destinataris"
+ exception_handler_label_separate_multiple_emails_with_commas: "Per introduïr múltiples adreces, separeu amb comes"
+ exception_handler_label_sender_address: "Remitent"