/**
* Create paragraphs from text with line spacing
* Borrowed from Wordpress.
*
* @param string $pee The string
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 443 ssl; | |
server_name snowden.example.net; | |
root /privacy/matters; | |
index index.html; | |
ssl on; | |
ssl_certificate ssl/example.net/snowden.crt.pem; | |
ssl_certificate_key ssl/example.net/snowden.key.pem; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/zsh | |
# | |
## Get password from an encrypted .netrc file | |
# | |
# Copyright 2013 hellekin <hellekin@cepheide.org> | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GNU GENERAL PUBLIC LICENSE | |
Version 2, June 1991 | |
Copyright (C) 1989, 1991 Free Software Foundation, Inc., | |
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | |
Everyone is permitted to copy and distribute verbatim copies | |
of this license document, but changing it is not allowed. | |
Preamble |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Explanation of the setup: | |
- a frontend server runs Nginx | |
- a backend server runs the PHP application | |
In the original setup, both are virtual machines on the same host, and we can mount parts of the piwik to the frontend. YMMV (the security.limit_extensions would include also .js and .css without that possibility) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- sh-mode -*- | |
# | |
## ZSH PROMPT | |
# | |
# {{{ PROMPT SETTINGS | |
PROMPT_SUBST=1 # Enable prompt expansion | |
PROMPT_BANG=1 # Enable ! as history event number | |
PROMPT_PERCENT=1 # Enable % parameter expansion |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# ZSH Raster -- Spice up your .zshrc | |
# | |
# {{{ Copyright 2011 Hellekin O. Wolf <hellekinλcepheide*org> | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# == Mail::Address extensions | |
# | |
# Add support for local extension: user+extension@domain.tld | |
# | |
module Mail | |
class Address | |
def local_user | |
local.to_s.split('+', 2).first | |
end |