Skip to content

Instantly share code, notes, and snippets.

@ptsakyrellis
ptsakyrellis / httpd-redmine.vhost
Last active May 7, 2018 19:22
Redmine httpd config file example for a named virtual host
<VirtualHost redmine.domaine.fr>
# Name virtual host à adapter
ServerName redmine.domaine.fr
DocumentRoot /appli/redmineXX/public
# Chemin vers mod_passenger
LoadModule passenger_module /usr/local/rvm/gems/ruby-2.3.3/gems/passenger-5.1.1/buildout/apache2/mod_passenger.so
# Configuration mod_passenger
<IfModule mod_passenger.c>
sf4ldap:
command: [--copy-service]
image: osixia/openldap:1.3.0
volumes:
- ./docker/ldap/sf4app.schema:/container/service/slapd/assets/config/bootstrap/schema/sf4app.schema
ports:
- "389:389"
- "636:636"
expose:
- 389
attributetype ( 2.25.128424792425578037463837247958458780603.1
NAME 'myadditionnalAttr'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
attributetype ( 2.25.128424792425578037463837247958458780603.2
NAME 'myadditionnalAttr2'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
<?php
namespace MyApp\DataFixtures;
use Doctrine\Bundle\FixturesBundle\Fixture;
use Doctrine\Persistence\ObjectManager;
use Symfony\Component\Ldap\Entry;
use Symfony\Component\Ldap\Ldap;
class LdapUserFixtures extends Fixture
sf4ldap:
image: osixia/openldap:1.3.0
ports:
- "389:389"
- "636:636"
expose:
- 389
- 636
environment:
- LDAP_ADMIN_PASSWORD=myadminpasswd
dn: ou=People,dc=sf4app,dc=org
ou: People
objectClass: organizationalUnit
dn: cn=user1,ou=People,dc=sf4app,dc=org
myadditionnalAttr2: Value2
myadditionnalAttr: Value1
sn: My User1
mail: user1@sf4app.org
cn: user1
sf4ldap:
command: [--copy-service]
image: osixia/openldap:1.3.0
volumes:
- ./docker/ldap/sf4app.schema:/container/service/slapd/assets/config/bootstrap/schema/sf4app.schema
- ./docker/ldap/people.ldif:/container/service/slapd/assets/config/bootstrap/ldif/custom/people.ldif
ports:
- "389:389"
- "636:636"
expose:
@ptsakyrellis
ptsakyrellis / monotchap.css
Last active November 19, 2020 15:55
Monokai theme for tchap.gouv.Fr. Use with Stylus or Stylish extension for firefox.
@-moz-document domain("www.tchap.gouv.fr") {
body {
font-family: 'Calibri' !important;
background-color: #272822;
}
.dark-panel {
background-color: #272822;
}