Skip to content

Instantly share code, notes, and snippets.

View lluis's full-sized avatar

Lluís Gili lluis

  • Aidí, Catalunya
View GitHub Profile
@lluis
lluis / gist:777758
Created January 13, 2011 11:53
catalan and spanish translations for Redmine Exception Handler plugin
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"
@lluis
lluis / apache_vhost.conf
Last active August 29, 2015 13:57
make owncloud multi-virtualhost
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 / webserver_setup_web.rb
Created January 11, 2019 10:07 — forked from descala/webserver_setup_web.rb
Script to setup a shared web hosting instance on Debian Stretch
#!/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