Skip to content

Instantly share code, notes, and snippets.

@domrim
domrim / phpldapadmin.conf
Last active January 22, 2017 17:14
nginx config for phpldapadmin in subdir of main-page. ssl-conf were made in the main part. php5handler goes on the php5-fpm socket. works also for phpmyadmin.
location /phpldapadmin {
root /usr/share/;
index index.php index.html index.htm;
location ~ ^/phpldapadmin/(.+\.php)$ {
try_files $uri =404;
root /usr/share/;
fastcgi_pass php5handler;
fastcgi_index index.php;
fastcgi_param HTTPS on;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

Keybase proof

I hereby claim:

  • I am domrim on github.
  • I am dominikr (https://keybase.io/dominikr) on keybase.
  • I have a public key ASAgmK5B95NLwQPsaEwf-15LP3RpJxaiT9pSnJ3ewod7lwo

To claim this, I am signing this object:

@domrim
domrim / variable_loader.py
Last active July 28, 2022 00:05
Ansible lookup plugin for os dependent variable loading
DOCUMENTATION = """
lookup: variable_loader
author: Dominik Rimpf <[email protected]>
short_description: tries to find variable files dependent on node operating system
description:
- this lookup checks for files in 'role_path/vars/' and returns the full path to the first combination found.
notes:
- If no arguments are passed following default list is used:
- "{{ ansible_distribution }}_{{ ansible_distribution_major_version }}.yml"
- "{{ ansible_distribution }}.yml"

openpgp4fpr:B04D6CEF0D2EA4E16A9A29104E16E0BA61183E1A